antigravity-mobile-proxy 0.1.2 → 0.1.4
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/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/required-server-files.json +5 -2
- package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/[filename]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/[convId]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/[filename]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/active/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/artifacts/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/artifacts/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/action/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/action/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/approve/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/history/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/history/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/mode/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/new/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/new/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/reject/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/state/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/chat/state/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js +7 -3
- package/.next/standalone/.next/server/app/api/v1/chat/stream/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/conversations/active/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/conversations/route.js +7 -3
- package/.next/standalone/.next/server/app/api/v1/conversations/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/conversations/select/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/debug/dom/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/debug/scrape/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/health/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/health/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-start/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/windows/cdp-status/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/close/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/close/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/open/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/open/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js +2 -2
- package/.next/standalone/.next/server/app/api/v1/windows/recent/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/windows/select/route.js +6 -2
- package/.next/standalone/.next/server/app/api/v1/windows/select/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/debug/page.js +1 -1
- package/.next/standalone/.next/server/app/debug/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/debug/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page.js +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0d31b133._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__133ac672._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__151eca3a._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1535be2d._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ee7d416._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__25f5f8ec._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__26662154._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2f4a0b79._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__2ec5ba30._.js → [root-of-the-server]__3fe6d12c._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4b17d628._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4c540a38._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8d2624da._.js → [root-of-the-server]__4d161104._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__53c4f34d._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__68965284._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f5ebbc3._.js +7 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8f8bd59f._.js +20 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9166d84a._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__94275f7f._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__c34d50c8._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__8fdd2340._.js → [root-of-the-server]__c696771d._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__0bd52b41._.js → [root-of-the-server]__cd7ccfdd._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d5818e20._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__360475ac._.js → [root-of-the-server]__db7b3604._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__eeb89c13._.js → [root-of-the-server]__dc1db6cb._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4effd91a._.js → [root-of-the-server]__e9181374._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__eb9ef4db._.js +3 -0
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__4448d3d4._.js → [root-of-the-server]__ec32b318._.js} +2 -2
- package/.next/standalone/.next/server/chunks/{[root-of-the-server]__7f18ffd0._.js → [root-of-the-server]__f54bea3d._.js} +2 -2
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fabd57e0._.js +3 -0
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__fd0215df._.js +3 -0
- package/.next/standalone/.next/server/chunks/lib_cdp_connection_ts_075c799e._.js +41 -0
- package/.next/standalone/.next/server/chunks/node_modules_151ca6ae._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_1f8a2929._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_2d9a2f12._.js +4 -0
- package/.next/standalone/.next/server/chunks/node_modules_3b486fee._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_64199bef._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_@puppeteer_browsers_lib_esm_main_83020de3.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_f81d3958._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_next_1402a1da._.js +2 -2
- package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0272adf7.js +5 -0
- package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0b1e64d7.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_yargs_helpers_helpers_mjs_abe15519._.js +3 -0
- package/.next/standalone/.next/server/chunks/node_modules_yargs_index_mjs_c4f6f97b._.js +56 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__703e5e24._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__edab6069._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/components_chat-container_tsx_fcbc457f._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/node_modules_63dba3f8._.js +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/app/api/v1/chat/stream/route.ts +2 -2
- package/.next/standalone/app/api/v1/conversations/route.ts +6 -1
- package/.next/standalone/app/globals.css +6 -0
- package/.next/standalone/components/agent-message.tsx +4 -5
- package/.next/standalone/components/chat-container.tsx +0 -2
- package/.next/standalone/components/message-list.tsx +2 -6
- package/.next/standalone/diag.js +72 -0
- package/.next/standalone/hooks/use-chat.ts +18 -1
- package/.next/standalone/lib/scraper/agent-state.ts +43 -17
- package/.next/standalone/lib/scraper/chat-history.ts +4 -0
- package/.next/standalone/lib/scraper/workspace-filter.ts +209 -0
- package/.next/standalone/lib/sse/diff-states.ts +18 -3
- package/.next/standalone/next.config.js +19 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
- package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
- package/.next/standalone/node_modules/next/dist/build/generate-build-id.js +5 -1
- package/.next/standalone/package-lock.json +140 -129
- package/.next/standalone/package.json +4 -3
- package/.next/standalone/scripts/patch-next.js +69 -0
- package/.next/standalone/server.js +1 -1
- package/.next/standalone/tsconfig.json +14 -4
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/.next/static/chunks/{54866979a976deea.css → 073aeeb732614ba1.css} +1 -1
- package/.next/static/chunks/0b8f1079dec6b3ad.js +1 -0
- package/package.json +4 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__08f06ee9._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__15c96786._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__19ee93c1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__324dc867._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__38025e07._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a837477._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__4f9fdc77._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__556e6cd5._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6479a312._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__693625a1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__6ec98c1f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__7f696ede._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__8aa4aa02._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d217c47._.js +0 -7
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e54cdc1._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__a73e4e4f._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__cd1b9505._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__d850c12e._.js +0 -3
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__ef121746._.js +0 -3
- package/.next/standalone/.next/server/chunks/_7273dcfc._.js +0 -3
- package/.next/standalone/.next/server/chunks/_8dd0f398._.js +0 -5
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__4fe85c38._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__85930638._.js +0 -3
- package/.next/standalone/next.config.ts +0 -10
- package/.next/standalone/node_modules/@puppeteer/browsers/package.json +0 -125
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/asyncify-helpers.js +0 -53
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context-asyncify.js +0 -58
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/context.js +0 -691
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/debug.js +0 -6
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/deferred-promise.js +0 -96
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/errors.js +0 -58
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/esmHelpers.js +0 -19
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/emscripten-module.WASM_RELEASE_SYNC.js +0 -387
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/generated/ffi.WASM_RELEASE_SYNC.js +0 -71
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/index.js +0 -128
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/lifetime.js +0 -227
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/memory.js +0 -41
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-asyncify.js +0 -97
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module-test.js +0 -77
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/module.js +0 -302
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime-asyncify.js +0 -49
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/runtime.js +0 -300
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types-ffi.js +0 -38
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/types.js +0 -58
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/variants.js +0 -169
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.js +0 -12
- package/.next/standalone/node_modules/@tootallnate/quickjs-emscripten/package.json +0 -60
- package/.next/standalone/node_modules/agent-base/dist/helpers.js +0 -66
- package/.next/standalone/node_modules/agent-base/dist/index.js +0 -178
- package/.next/standalone/node_modules/agent-base/package.json +0 -46
- package/.next/standalone/node_modules/ast-types/def/babel-core.js +0 -256
- package/.next/standalone/node_modules/ast-types/def/babel.js +0 -11
- package/.next/standalone/node_modules/ast-types/def/core.js +0 -298
- package/.next/standalone/node_modules/ast-types/def/es-proposals.js +0 -33
- package/.next/standalone/node_modules/ast-types/def/es2020.js +0 -16
- package/.next/standalone/node_modules/ast-types/def/es6.js +0 -210
- package/.next/standalone/node_modules/ast-types/def/es7.js +0 -34
- package/.next/standalone/node_modules/ast-types/def/esprima.js +0 -49
- package/.next/standalone/node_modules/ast-types/def/flow.js +0 -292
- package/.next/standalone/node_modules/ast-types/def/jsx.js +0 -103
- package/.next/standalone/node_modules/ast-types/def/type-annotations.js +0 -40
- package/.next/standalone/node_modules/ast-types/def/typescript.js +0 -344
- package/.next/standalone/node_modules/ast-types/fork.js +0 -52
- package/.next/standalone/node_modules/ast-types/gen/namedTypes.js +0 -6
- package/.next/standalone/node_modules/ast-types/lib/equiv.js +0 -154
- package/.next/standalone/node_modules/ast-types/lib/node-path.js +0 -411
- package/.next/standalone/node_modules/ast-types/lib/path-visitor.js +0 -343
- package/.next/standalone/node_modules/ast-types/lib/path.js +0 -331
- package/.next/standalone/node_modules/ast-types/lib/scope.js +0 -318
- package/.next/standalone/node_modules/ast-types/lib/shared.js +0 -47
- package/.next/standalone/node_modules/ast-types/lib/types.js +0 -780
- package/.next/standalone/node_modules/ast-types/main.js +0 -53
- package/.next/standalone/node_modules/ast-types/package.json +0 -65
- package/.next/standalone/node_modules/b4a/index.js +0 -188
- package/.next/standalone/node_modules/b4a/package.json +0 -49
- package/.next/standalone/node_modules/basic-ftp/dist/Client.js +0 -782
- package/.next/standalone/node_modules/basic-ftp/dist/FileInfo.js +0 -92
- package/.next/standalone/node_modules/basic-ftp/dist/FtpContext.js +0 -365
- package/.next/standalone/node_modules/basic-ftp/dist/ProgressTracker.js +0 -72
- package/.next/standalone/node_modules/basic-ftp/dist/StringEncoding.js +0 -2
- package/.next/standalone/node_modules/basic-ftp/dist/StringWriter.js +0 -23
- package/.next/standalone/node_modules/basic-ftp/dist/index.js +0 -28
- package/.next/standalone/node_modules/basic-ftp/dist/netUtils.js +0 -66
- package/.next/standalone/node_modules/basic-ftp/dist/parseControlResponse.js +0 -66
- package/.next/standalone/node_modules/basic-ftp/dist/parseList.js +0 -79
- package/.next/standalone/node_modules/basic-ftp/dist/parseListDOS.js +0 -52
- package/.next/standalone/node_modules/basic-ftp/dist/parseListMLSD.js +0 -187
- package/.next/standalone/node_modules/basic-ftp/dist/parseListUnix.js +0 -155
- package/.next/standalone/node_modules/basic-ftp/dist/transfer.js +0 -318
- package/.next/standalone/node_modules/basic-ftp/package.json +0 -52
- package/.next/standalone/node_modules/buffer-crc32/index.js +0 -111
- package/.next/standalone/node_modules/buffer-crc32/package.json +0 -39
- package/.next/standalone/node_modules/cliui/build/lib/index.js +0 -287
- package/.next/standalone/node_modules/cliui/build/lib/string-utils.js +0 -27
- package/.next/standalone/node_modules/cliui/index.mjs +0 -13
- package/.next/standalone/node_modules/cliui/package.json +0 -83
- package/.next/standalone/node_modules/data-uri-to-buffer/dist/common.js +0 -54
- package/.next/standalone/node_modules/data-uri-to-buffer/dist/node.js +0 -26
- package/.next/standalone/node_modules/data-uri-to-buffer/package.json +0 -48
- package/.next/standalone/node_modules/debug/package.json +0 -64
- package/.next/standalone/node_modules/debug/src/browser.js +0 -272
- package/.next/standalone/node_modules/debug/src/common.js +0 -292
- package/.next/standalone/node_modules/debug/src/index.js +0 -10
- package/.next/standalone/node_modules/debug/src/node.js +0 -263
- package/.next/standalone/node_modules/degenerator/dist/compile.js +0 -107
- package/.next/standalone/node_modules/degenerator/dist/degenerator.js +0 -156
- package/.next/standalone/node_modules/degenerator/dist/index.js +0 -19
- package/.next/standalone/node_modules/degenerator/package.json +0 -42
- package/.next/standalone/node_modules/end-of-stream/index.js +0 -96
- package/.next/standalone/node_modules/end-of-stream/package.json +0 -37
- package/.next/standalone/node_modules/escalade/package.json +0 -74
- package/.next/standalone/node_modules/escodegen/escodegen.js +0 -2667
- package/.next/standalone/node_modules/escodegen/package.json +0 -63
- package/.next/standalone/node_modules/esprima/dist/esprima.js +0 -6709
- package/.next/standalone/node_modules/esprima/package.json +0 -112
- package/.next/standalone/node_modules/estraverse/estraverse.js +0 -805
- package/.next/standalone/node_modules/estraverse/package.json +0 -40
- package/.next/standalone/node_modules/esutils/lib/ast.js +0 -144
- package/.next/standalone/node_modules/esutils/lib/code.js +0 -135
- package/.next/standalone/node_modules/esutils/lib/keyword.js +0 -165
- package/.next/standalone/node_modules/esutils/lib/utils.js +0 -33
- package/.next/standalone/node_modules/esutils/package.json +0 -44
- package/.next/standalone/node_modules/events-universal/default.js +0 -1
- package/.next/standalone/node_modules/events-universal/package.json +0 -39
- package/.next/standalone/node_modules/extract-zip/LICENSE +0 -23
- package/.next/standalone/node_modules/extract-zip/cli.js +0 -19
- package/.next/standalone/node_modules/extract-zip/index.js +0 -173
- package/.next/standalone/node_modules/extract-zip/package.json +0 -80
- package/.next/standalone/node_modules/extract-zip/readme.md +0 -57
- package/.next/standalone/node_modules/fast-fifo/fixed-size.js +0 -39
- package/.next/standalone/node_modules/fast-fifo/index.js +0 -48
- package/.next/standalone/node_modules/fast-fifo/package.json +0 -28
- package/.next/standalone/node_modules/fd-slicer/index.js +0 -296
- package/.next/standalone/node_modules/fd-slicer/package.json +0 -36
- package/.next/standalone/node_modules/get-stream/buffer-stream.js +0 -52
- package/.next/standalone/node_modules/get-stream/index.js +0 -60
- package/.next/standalone/node_modules/get-stream/package.json +0 -50
- package/.next/standalone/node_modules/get-uri/dist/data.js +0 -43
- package/.next/standalone/node_modules/get-uri/dist/file.js +0 -57
- package/.next/standalone/node_modules/get-uri/dist/ftp.js +0 -93
- package/.next/standalone/node_modules/get-uri/dist/http-error.js +0 -15
- package/.next/standalone/node_modules/get-uri/dist/http.js +0 -191
- package/.next/standalone/node_modules/get-uri/dist/https.js +0 -16
- package/.next/standalone/node_modules/get-uri/dist/index.js +0 -57
- package/.next/standalone/node_modules/get-uri/dist/notfound.js +0 -16
- package/.next/standalone/node_modules/get-uri/dist/notmodified.js +0 -17
- package/.next/standalone/node_modules/get-uri/package.json +0 -58
- package/.next/standalone/node_modules/has-flag/index.js +0 -8
- package/.next/standalone/node_modules/has-flag/package.json +0 -46
- package/.next/standalone/node_modules/http-proxy-agent/dist/index.js +0 -148
- package/.next/standalone/node_modules/http-proxy-agent/package.json +0 -47
- package/.next/standalone/node_modules/https-proxy-agent/dist/index.js +0 -180
- package/.next/standalone/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -101
- package/.next/standalone/node_modules/https-proxy-agent/package.json +0 -50
- package/.next/standalone/node_modules/ip-address/dist/address-error.js +0 -12
- package/.next/standalone/node_modules/ip-address/dist/common.js +0 -46
- package/.next/standalone/node_modules/ip-address/dist/ip-address.js +0 -35
- package/.next/standalone/node_modules/ip-address/dist/ipv4.js +0 -360
- package/.next/standalone/node_modules/ip-address/dist/ipv6.js +0 -1003
- package/.next/standalone/node_modules/ip-address/dist/v4/constants.js +0 -8
- package/.next/standalone/node_modules/ip-address/dist/v6/constants.js +0 -76
- package/.next/standalone/node_modules/ip-address/dist/v6/helpers.js +0 -45
- package/.next/standalone/node_modules/ip-address/dist/v6/regular-expressions.js +0 -95
- package/.next/standalone/node_modules/ip-address/package.json +0 -78
- package/.next/standalone/node_modules/lru-cache/index.js +0 -1227
- package/.next/standalone/node_modules/lru-cache/package.json +0 -96
- package/.next/standalone/node_modules/ms/index.js +0 -162
- package/.next/standalone/node_modules/ms/package.json +0 -38
- package/.next/standalone/node_modules/netmask/lib/netmask.js +0 -208
- package/.next/standalone/node_modules/netmask/package.json +0 -36
- package/.next/standalone/node_modules/once/once.js +0 -42
- package/.next/standalone/node_modules/once/package.json +0 -33
- package/.next/standalone/node_modules/pac-proxy-agent/dist/index.js +0 -238
- package/.next/standalone/node_modules/pac-proxy-agent/package.json +0 -58
- package/.next/standalone/node_modules/pac-resolver/dist/dateRange.js +0 -73
- package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainIs.js +0 -30
- package/.next/standalone/node_modules/pac-resolver/dist/dnsDomainLevels.js +0 -28
- package/.next/standalone/node_modules/pac-resolver/dist/dnsResolve.js +0 -32
- package/.next/standalone/node_modules/pac-resolver/dist/index.js +0 -87
- package/.next/standalone/node_modules/pac-resolver/dist/ip.js +0 -50
- package/.next/standalone/node_modules/pac-resolver/dist/isInNet.js +0 -42
- package/.next/standalone/node_modules/pac-resolver/dist/isPlainHostName.js +0 -23
- package/.next/standalone/node_modules/pac-resolver/dist/isResolvable.js +0 -23
- package/.next/standalone/node_modules/pac-resolver/dist/localHostOrDomainIs.js +0 -40
- package/.next/standalone/node_modules/pac-resolver/dist/myIpAddress.js +0 -50
- package/.next/standalone/node_modules/pac-resolver/dist/shExpMatch.js +0 -41
- package/.next/standalone/node_modules/pac-resolver/dist/timeRange.js +0 -92
- package/.next/standalone/node_modules/pac-resolver/dist/util.js +0 -22
- package/.next/standalone/node_modules/pac-resolver/dist/weekdayRange.js +0 -91
- package/.next/standalone/node_modules/pac-resolver/package.json +0 -47
- package/.next/standalone/node_modules/pend/index.js +0 -55
- package/.next/standalone/node_modules/pend/package.json +0 -18
- package/.next/standalone/node_modules/progress/index.js +0 -1
- package/.next/standalone/node_modules/progress/lib/node-progress.js +0 -236
- package/.next/standalone/node_modules/progress/package.json +0 -26
- package/.next/standalone/node_modules/proxy-agent/dist/index.js +0 -138
- package/.next/standalone/node_modules/proxy-agent/package.json +0 -60
- package/.next/standalone/node_modules/proxy-from-env/index.js +0 -108
- package/.next/standalone/node_modules/proxy-from-env/package.json +0 -34
- package/.next/standalone/node_modules/pump/index.js +0 -86
- package/.next/standalone/node_modules/pump/package.json +0 -30
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/package.json +0 -1
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Browser.js +0 -204
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/BrowserContext.js +0 -182
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/CDPSession.js +0 -68
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/DeviceRequestPrompt.js +0 -34
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Dialog.js +0 -90
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandle.js +0 -1406
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/ElementHandleSymbol.js +0 -10
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Frame.js +0 -904
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPRequest.js +0 -461
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/HTTPResponse.js +0 -56
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Input.js +0 -211
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/JSHandle.js +0 -227
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js +0 -1511
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Realm.js +0 -44
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/Target.js +0 -49
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/WebWorker.js +0 -106
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/api.js +0 -22
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/api/locators/locators.js +0 -769
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/bidi/BrowserConnector.js +0 -83
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Accessibility.js +0 -591
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Binding.js +0 -162
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BluetoothEmulation.js +0 -26
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js +0 -327
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserConnector.js +0 -26
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/BrowserContext.js +0 -192
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpPreloadScript.js +0 -39
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/CdpSession.js +0 -129
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js +0 -244
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Coverage.js +0 -372
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/DeviceRequestPrompt.js +0 -151
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Dialog.js +0 -23
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ElementHandle.js +0 -206
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/EmulationManager.js +0 -458
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExecutionContext.js +0 -457
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ExtensionTransport.js +0 -175
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js +0 -358
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManager.js +0 -455
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameManagerEvents.js +0 -24
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/FrameTree.js +0 -91
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPRequest.js +0 -195
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/HTTPResponse.js +0 -126
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Input.js +0 -499
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorld.js +0 -157
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/IsolatedWorlds.js +0 -20
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/JSHandle.js +0 -101
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/LifecycleWatcher.js +0 -174
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkEventManager.js +0 -162
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/NetworkManager.js +0 -601
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Page.js +0 -1011
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/PredefinedNetworkConditions.js +0 -69
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Target.js +0 -243
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManageEvents.js +0 -7
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/TargetManager.js +0 -320
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Tracing.js +0 -110
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/WebWorker.js +0 -73
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/cdp.js +0 -43
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/utils.js +0 -216
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +0 -54
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +0 -129
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +0 -39
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CSSQueryHandler.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js +0 -133
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +0 -78
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/CustomQueryHandler.js +0 -114
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +0 -109
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Device.js +0 -1604
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +0 -94
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +0 -128
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +0 -75
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/GetQueryHandler.js +0 -70
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/HandleIterator.js +0 -142
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/LazyArg.js +0 -23
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManagerEvents.js +0 -21
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +0 -58
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PQueryHandler.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PSelectorParser.js +0 -100
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/PierceQueryHandler.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +0 -98
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +0 -225
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/ScriptInjector.js +0 -51
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +0 -69
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +0 -24
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TextQueryHandler.js +0 -15
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +0 -39
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +0 -394
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/WaitTask.js +0 -197
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/XPathQueryHandler.js +0 -21
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/common.js +0 -35
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/common/util.js +0 -375
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +0 -24
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/generated/injected.js +0 -9
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index-browser.js +0 -11
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/index.js +0 -8
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js +0 -41
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +0 -14
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/AsyncIterableUtil.js +0 -29
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js +0 -105
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/ErrorLike.js +0 -41
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Function.js +0 -70
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/Mutex.js +0 -46
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/assert.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/decorators.js +0 -232
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/disposable.js +0 -342
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/encoding.js +0 -63
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/incremental-id-generator.js +0 -18
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/util.js +0 -13
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/puppeteer/util/version.js +0 -10
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/mitt/mitt.js +0 -44
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/parsel-js/parsel-js.js +0 -196
- package/.next/standalone/node_modules/puppeteer-core/lib/esm/third_party/rxjs/rxjs.js +0 -2887
- package/.next/standalone/node_modules/puppeteer-core/package.json +0 -169
- package/.next/standalone/node_modules/semver/functions/clean.js +0 -8
- package/.next/standalone/node_modules/semver/functions/compare-build.js +0 -9
- package/.next/standalone/node_modules/semver/functions/compare-loose.js +0 -5
- package/.next/standalone/node_modules/semver/functions/diff.js +0 -60
- package/.next/standalone/node_modules/semver/functions/inc.js +0 -21
- package/.next/standalone/node_modules/semver/functions/major.js +0 -5
- package/.next/standalone/node_modules/semver/functions/minor.js +0 -5
- package/.next/standalone/node_modules/semver/functions/patch.js +0 -5
- package/.next/standalone/node_modules/semver/functions/prerelease.js +0 -8
- package/.next/standalone/node_modules/semver/functions/rcompare.js +0 -5
- package/.next/standalone/node_modules/semver/functions/rsort.js +0 -5
- package/.next/standalone/node_modules/semver/functions/sort.js +0 -5
- package/.next/standalone/node_modules/semver/functions/valid.js +0 -8
- package/.next/standalone/node_modules/semver/index.js +0 -91
- package/.next/standalone/node_modules/semver/ranges/gtr.js +0 -6
- package/.next/standalone/node_modules/semver/ranges/intersects.js +0 -9
- package/.next/standalone/node_modules/semver/ranges/ltr.js +0 -6
- package/.next/standalone/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/.next/standalone/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/.next/standalone/node_modules/semver/ranges/min-version.js +0 -63
- package/.next/standalone/node_modules/semver/ranges/outside.js +0 -82
- package/.next/standalone/node_modules/semver/ranges/simplify.js +0 -49
- package/.next/standalone/node_modules/semver/ranges/subset.js +0 -249
- package/.next/standalone/node_modules/semver/ranges/to-comparators.js +0 -10
- package/.next/standalone/node_modules/semver/ranges/valid.js +0 -13
- package/.next/standalone/node_modules/smart-buffer/build/smartbuffer.js +0 -1233
- package/.next/standalone/node_modules/smart-buffer/build/utils.js +0 -108
- package/.next/standalone/node_modules/smart-buffer/package.json +0 -79
- package/.next/standalone/node_modules/socks/build/client/socksclient.js +0 -793
- package/.next/standalone/node_modules/socks/build/common/constants.js +0 -108
- package/.next/standalone/node_modules/socks/build/common/helpers.js +0 -167
- package/.next/standalone/node_modules/socks/build/common/receivebuffer.js +0 -43
- package/.next/standalone/node_modules/socks/build/common/util.js +0 -25
- package/.next/standalone/node_modules/socks/build/index.js +0 -18
- package/.next/standalone/node_modules/socks/package.json +0 -58
- package/.next/standalone/node_modules/socks-proxy-agent/dist/index.js +0 -195
- package/.next/standalone/node_modules/socks-proxy-agent/package.json +0 -142
- package/.next/standalone/node_modules/source-map/lib/array-set.js +0 -121
- package/.next/standalone/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/.next/standalone/node_modules/source-map/lib/base64.js +0 -67
- package/.next/standalone/node_modules/source-map/lib/binary-search.js +0 -111
- package/.next/standalone/node_modules/source-map/lib/mapping-list.js +0 -79
- package/.next/standalone/node_modules/source-map/lib/quick-sort.js +0 -114
- package/.next/standalone/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/.next/standalone/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/.next/standalone/node_modules/source-map/lib/source-node.js +0 -413
- package/.next/standalone/node_modules/source-map/lib/util.js +0 -488
- package/.next/standalone/node_modules/source-map/package.json +0 -73
- package/.next/standalone/node_modules/source-map/source-map.js +0 -8
- package/.next/standalone/node_modules/streamx/index.js +0 -1184
- package/.next/standalone/node_modules/streamx/package.json +0 -34
- package/.next/standalone/node_modules/supports-color/index.js +0 -135
- package/.next/standalone/node_modules/supports-color/package.json +0 -53
- package/.next/standalone/node_modules/tar-stream/constants.js +0 -14
- package/.next/standalone/node_modules/tar-stream/extract.js +0 -406
- package/.next/standalone/node_modules/tar-stream/headers.js +0 -321
- package/.next/standalone/node_modules/tar-stream/index.js +0 -2
- package/.next/standalone/node_modules/tar-stream/pack.js +0 -287
- package/.next/standalone/node_modules/tar-stream/package.json +0 -42
- package/.next/standalone/node_modules/text-decoder/index.js +0 -64
- package/.next/standalone/node_modules/text-decoder/lib/pass-through-decoder.js +0 -19
- package/.next/standalone/node_modules/text-decoder/lib/utf8-decoder.js +0 -185
- package/.next/standalone/node_modules/text-decoder/package.json +0 -39
- package/.next/standalone/node_modules/tslib/package.json +0 -47
- package/.next/standalone/node_modules/tslib/tslib.js +0 -484
- package/.next/standalone/node_modules/wrappy/package.json +0 -29
- package/.next/standalone/node_modules/wrappy/wrappy.js +0 -33
- package/.next/standalone/node_modules/ws/lib/buffer-util.js +0 -131
- package/.next/standalone/node_modules/ws/lib/constants.js +0 -19
- package/.next/standalone/node_modules/ws/lib/event-target.js +0 -292
- package/.next/standalone/node_modules/ws/lib/extension.js +0 -203
- package/.next/standalone/node_modules/ws/lib/limiter.js +0 -55
- package/.next/standalone/node_modules/ws/lib/permessage-deflate.js +0 -528
- package/.next/standalone/node_modules/ws/lib/receiver.js +0 -706
- package/.next/standalone/node_modules/ws/lib/sender.js +0 -602
- package/.next/standalone/node_modules/ws/lib/stream.js +0 -161
- package/.next/standalone/node_modules/ws/lib/subprotocol.js +0 -62
- package/.next/standalone/node_modules/ws/lib/validation.js +0 -152
- package/.next/standalone/node_modules/ws/lib/websocket-server.js +0 -554
- package/.next/standalone/node_modules/ws/lib/websocket.js +0 -1393
- package/.next/standalone/node_modules/ws/package.json +0 -69
- package/.next/standalone/node_modules/ws/wrapper.mjs +0 -8
- package/.next/standalone/node_modules/y18n/build/lib/index.js +0 -174
- package/.next/standalone/node_modules/y18n/build/lib/platform-shims/node.js +0 -19
- package/.next/standalone/node_modules/y18n/index.mjs +0 -8
- package/.next/standalone/node_modules/y18n/package.json +0 -70
- package/.next/standalone/node_modules/yargs/build/lib/argsert.js +0 -62
- package/.next/standalone/node_modules/yargs/build/lib/command.js +0 -449
- package/.next/standalone/node_modules/yargs/build/lib/completion-templates.js +0 -48
- package/.next/standalone/node_modules/yargs/build/lib/completion.js +0 -243
- package/.next/standalone/node_modules/yargs/build/lib/middleware.js +0 -88
- package/.next/standalone/node_modules/yargs/build/lib/parse-command.js +0 -32
- package/.next/standalone/node_modules/yargs/build/lib/typings/common-types.js +0 -9
- package/.next/standalone/node_modules/yargs/build/lib/usage.js +0 -584
- package/.next/standalone/node_modules/yargs/build/lib/utils/apply-extends.js +0 -59
- package/.next/standalone/node_modules/yargs/build/lib/utils/is-promise.js +0 -5
- package/.next/standalone/node_modules/yargs/build/lib/utils/levenshtein.js +0 -34
- package/.next/standalone/node_modules/yargs/build/lib/utils/maybe-async-result.js +0 -17
- package/.next/standalone/node_modules/yargs/build/lib/utils/obj-filter.js +0 -10
- package/.next/standalone/node_modules/yargs/build/lib/utils/process-argv.js +0 -17
- package/.next/standalone/node_modules/yargs/build/lib/utils/set-blocking.js +0 -12
- package/.next/standalone/node_modules/yargs/build/lib/utils/which-module.js +0 -10
- package/.next/standalone/node_modules/yargs/build/lib/validation.js +0 -305
- package/.next/standalone/node_modules/yargs/build/lib/yargs-factory.js +0 -1512
- package/.next/standalone/node_modules/yargs/build/lib/yerror.js +0 -9
- package/.next/standalone/node_modules/yargs/helpers/helpers.mjs +0 -10
- package/.next/standalone/node_modules/yargs/index.mjs +0 -8
- package/.next/standalone/node_modules/yargs/lib/platform-shims/esm.mjs +0 -73
- package/.next/standalone/node_modules/yargs/package.json +0 -123
- package/.next/standalone/node_modules/yargs-parser/build/lib/index.js +0 -62
- package/.next/standalone/node_modules/yargs-parser/build/lib/string-utils.js +0 -65
- package/.next/standalone/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +0 -40
- package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser-types.js +0 -12
- package/.next/standalone/node_modules/yargs-parser/build/lib/yargs-parser.js +0 -1045
- package/.next/standalone/node_modules/yargs-parser/package.json +0 -92
- package/.next/standalone/node_modules/yauzl/LICENSE +0 -21
- package/.next/standalone/node_modules/yauzl/README.md +0 -658
- package/.next/standalone/node_modules/yauzl/index.js +0 -796
- package/.next/standalone/node_modules/yauzl/package.json +0 -40
- package/.next/static/chunks/75f35cd5abea89f2.js +0 -1
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/comparator.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/range.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/classes/semver.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/cmp.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/coerce.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/compare.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/eq.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gt.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/gte.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lt.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/lte.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/neq.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/parse.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/functions/satisfies.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/constants.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/debug.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/identifiers.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/lrucache.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/parse-options.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/internal/re.js +0 -0
- /package/.next/standalone/node_modules/{semver → sharp/node_modules/semver}/package.json +0 -0
- /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_buildManifest.js +0 -0
- /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{dBszpiWXsbEAjYrgq1Nuz → standalone-build}/_ssgManifest.js +0 -0
package/.next/standalone/.next/server/chunks/ssr/components_chat-container_tsx_fcbc457f._.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[72079,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d="/api/v1",e="/api/v1";function f({conversations:a,activeConversation:d,onSelect:e}){let[f,g]=(0,c.useState)(!1),h=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let a=a=>{h.current&&!h.current.contains(a.target)&&g(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),(0,b.jsxs)("div",{ref:h,className:`conv-selector-wrapper ${f?"open":""}`,children:[(0,b.jsxs)("button",{className:"conv-selector-btn",onClick:()=>g(!f),title:"Switch conversation",children:[(0,b.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,b.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),(0,b.jsx)("span",{children:d?.title?.substring(0,22)||"No conversation"}),(0,b.jsx)("svg",{className:"chevron",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,b.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,b.jsxs)("div",{className:`conv-dropdown ${f?"open":""}`,children:[(0,b.jsx)("div",{className:"conv-dropdown-header",children:"Conversations"}),(0,b.jsxs)("div",{className:"conv-dropdown-list",children:[a.map((a,c)=>{let f=a.title||a.id.substring(0,20)+"…",h=a.id&&a.id.length>5?a.id.substring(0,8):"",i=a.files?.slice(0,3)||[],j=a.files?a.files.length-3:0;return(0,b.jsxs)("button",{className:`conv-item ${a.title===d?.title?"active":""}`,onClick:()=>{a.title!==d?.title&&e(a.title),g(!1)},children:[(0,b.jsxs)("div",{className:"conv-item-header",children:[(0,b.jsx)("span",{className:`conv-item-dot ${a.active?"active":""}`}),(0,b.jsx)("span",{className:"conv-item-title",children:f}),h&&(0,b.jsx)("span",{className:"conv-item-id",children:h})]}),a.mtime&&(0,b.jsx)("span",{className:"conv-item-time",children:function(a){if(!a)return"";let b=new Date(a),c=Math.floor((Date.now()-b.getTime())/6e4);if(c<1)return"Just now";if(c<60)return`${c}m ago`;let d=Math.floor(c/60);if(d<24)return`${d}h ago`;let e=Math.floor(d/24);return`${e}d ago`}(a.mtime)}),a.files&&a.files.length>0&&(0,b.jsxs)("div",{className:"conv-item-files",children:[i.map((a,c)=>(0,b.jsx)("span",{className:"conv-item-file-badge",children:a.name},c)),j>0&&(0,b.jsxs)("span",{className:"conv-item-file-badge",children:["+",j]})]})]},`conv-${c}`)}),0===a.length&&(0,b.jsx)("div",{className:"conv-dropdown-empty",children:"No conversations found"})]})]})]})}function g({statusState:a,statusText:d,windows:e,conversations:g,activeConversation:h,cdpStatus:i,recentProjects:j,onSelectWindow:k,onSelectConversation:l,onNewChat:m,onToggleArtifacts:n,onStartCdp:o,onOpenWindow:p,onCloseWindow:q}){let[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(""),[v,w]=(0,c.useState)(!1),[x,y]=(0,c.useState)(!1),[z,A]=(0,c.useState)(null),B=(0,c.useRef)(null),C=(0,c.useRef)(null);(0,c.useEffect)(()=>{let a=a=>{B.current&&!B.current.contains(a.target)&&s(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),(0,c.useEffect)(()=>{if(z){let a=setTimeout(()=>A(null),4e3);return()=>clearTimeout(a)}},[z]);let D=async()=>{y(!0),A(null);try{let a=await o(".",!1);A({text:a.message||(a.success?"CDP started!":"Failed to start CDP"),type:a.success?"success":"error"})}catch{A({text:"Failed to start CDP server",type:"error"})}finally{y(!1)}},E=async a=>{a.preventDefault();let b=t.trim();if(b&&!v){w(!0),A(null);try{let a=await p(b);A({text:a.message||(a.success?"Window opened!":"Failed to open"),type:a.success?"success":"error"}),a.success&&u("")}catch{A({text:"Failed to open window",type:"error"})}finally{w(!1)}}},F=async(a,b)=>{if(b.stopPropagation(),!window.confirm(`Close window "${e[a]?.title||a}"?`))return;let c=await q(a);A({text:c.message||(c.success?"Closed!":"Failed to close"),type:c.success?"success":"error"})};return(0,b.jsxs)("header",{className:"header",children:[(0,b.jsx)("div",{className:"header-left",children:(0,b.jsx)("div",{className:"logo",children:(0,b.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"url(#header-gradient)",strokeWidth:"1.5",children:[(0,b.jsx)("defs",{children:(0,b.jsxs)("linearGradient",{id:"header-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,b.jsx)("stop",{offset:"0%",style:{stopColor:"#6366f1"}}),(0,b.jsx)("stop",{offset:"100%",style:{stopColor:"#a855f7"}})]})}),(0,b.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,b.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"}),(0,b.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})})}),(0,b.jsxs)("div",{className:"header-right",children:[(0,b.jsx)(f,{conversations:g,activeConversation:h,onSelect:l}),(0,b.jsxs)("div",{ref:B,className:`window-selector-wrapper ${r?"open":""}`,children:[(0,b.jsxs)("button",{className:"window-selector-btn",onClick:()=>s(!r),title:"Manage Antigravity windows",children:[(0,b.jsx)("span",{className:`cdp-indicator ${i.active?"active":"inactive"}`}),(0,b.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"}),(0,b.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),(0,b.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]}),(0,b.jsx)("span",{style:{maxWidth:"120px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"bottom"},children:e.find(a=>a.active)?.title||"Windows"}),(0,b.jsx)("svg",{className:"chevron",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,b.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,b.jsxs)("div",{className:`window-dropdown ${r?"open":""}`,children:[(0,b.jsxs)("div",{className:"wm-cdp-status",children:[(0,b.jsxs)("div",{className:"wm-cdp-info",children:[(0,b.jsx)("span",{className:`wm-cdp-dot ${i.active?"active":"inactive"}`}),(0,b.jsx)("span",{children:i.active?`CDP Active \xb7 ${i.windowCount} window${1!==i.windowCount?"s":""}`:"CDP Inactive"})]}),!i.active&&(0,b.jsxs)("button",{className:"wm-cdp-start-btn",onClick:D,disabled:x,title:"Start Antigravity with CDP",children:[x?(0,b.jsx)("span",{className:"wm-spinner"}):(0,b.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,b.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})}),x?"Starting...":"Start CDP"]})]}),(0,b.jsx)("div",{className:"window-dropdown-header",children:"Open Windows"}),e.map(a=>(0,b.jsxs)("div",{className:`window-item ${a.active?"active":""}`,children:[(0,b.jsxs)("button",{className:"window-item-select",onClick:()=>{k(a.index),s(!1)},children:[(0,b.jsx)("span",{className:"window-dot"}),(0,b.jsx)("span",{className:"window-item-title",children:a.title})]}),(0,b.jsx)("button",{className:"window-item-close",onClick:b=>F(a.index,b),title:`Close "${a.title}"`,children:(0,b.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,b.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,b.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},a.index)),0===e.length&&(0,b.jsx)("div",{style:{padding:"12px",color:"var(--text-muted)",fontSize:"12px"},children:"No windows detected"}),j.length>0&&(0,b.jsxs)("div",{className:"wm-recent-section",children:[(0,b.jsx)("div",{className:"wm-recent-header",children:"Recent Projects"}),j.map(a=>(0,b.jsxs)("button",{className:"wm-recent-item",onClick:async()=>{w(!0),A(null);try{let b=await p(a.path);A({text:b.message||(b.success?"Opened!":"Failed"),type:b.success?"success":"error"})}catch{A({text:"Failed to open",type:"error"})}finally{w(!1)}},disabled:v,title:a.path,children:[(0,b.jsx)("svg",{className:"wm-recent-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,b.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),(0,b.jsxs)("div",{className:"wm-recent-info",children:[(0,b.jsx)("span",{className:"wm-recent-name",children:a.name}),(0,b.jsx)("span",{className:"wm-recent-path",children:a.path})]})]},a.path))]}),(0,b.jsxs)("div",{className:"wm-open-section",children:[(0,b.jsx)("div",{className:"wm-open-label",children:"Open New Window"}),(0,b.jsxs)("form",{className:"wm-open-form",onSubmit:E,children:[(0,b.jsx)("input",{ref:C,type:"text",className:"wm-open-input",value:t,onChange:a=>u(a.target.value),placeholder:"/path/to/project",disabled:v}),(0,b.jsx)("button",{type:"submit",className:"wm-open-btn",disabled:v||!t.trim(),title:"Open directory in Antigravity",children:v?(0,b.jsx)("span",{className:"wm-spinner"}):(0,b.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,b.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,b.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]})]}),z&&(0,b.jsx)("div",{className:`wm-action-message ${z.type}`,children:z.text})]})]}),(0,b.jsx)("button",{className:"icon-btn",onClick:n,title:"Artifacts","aria-label":"Artifacts",children:(0,b.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,b.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,b.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,b.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,b.jsx)("polyline",{points:"10 9 9 9 8 9"})]})}),(0,b.jsx)("button",{className:"icon-btn",onClick:m,title:"New Chat","aria-label":"New Chat",children:(0,b.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,b.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]})]})}function h({onQuickPrompt:a}){return(0,b.jsxs)("div",{className:"welcome-screen",children:[(0,b.jsx)("div",{className:"welcome-icon",children:(0,b.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"url(#gradient)",strokeWidth:"1.5",children:[(0,b.jsx)("defs",{children:(0,b.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,b.jsx)("stop",{offset:"0%",style:{stopColor:"#6366f1"}}),(0,b.jsx)("stop",{offset:"100%",style:{stopColor:"#a855f7"}})]})}),(0,b.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,b.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"}),(0,b.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})}),(0,b.jsx)("h2",{children:"Antigravity Agent"}),(0,b.jsx)("p",{children:"Ask anything. The agent has access to your IDE — files, terminal, search, and more."}),(0,b.jsxs)("div",{className:"quick-prompts",children:[(0,b.jsx)("button",{className:"quick-prompt",onClick:()=>a("What files are in the current workspace?"),children:"📁 List workspace files"}),(0,b.jsx)("button",{className:"quick-prompt",onClick:()=>a("Explain the architecture of this project"),children:"🏗️ Explain architecture"}),(0,b.jsx)("button",{className:"quick-prompt",onClick:()=>a("Help me debug the most recent error"),children:"🐛 Debug last error"})]})]})}function i({content:a}){return(0,b.jsx)("div",{className:"user-message",children:(0,b.jsx)("div",{className:"message-content",children:a})})}let j={command:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>',file:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>',search:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',read:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',browser:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',mcp:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v6M12 22v-6M4.93 4.93l4.24 4.24M14.83 14.83l4.24 4.24M2 12h6M22 12h-6M4.93 19.07l4.24-4.24M14.83 9.17l4.24-4.24"/><circle cx="12" cy="12" r="4"/></svg>'};function k({data:a}){let c,d=(c=(a.status||"").toLowerCase()).startsWith("running")||c.startsWith("editing")||c.startsWith("creating")||c.startsWith("search")?"running":c.startsWith("ran")||c.startsWith("edited")||c.startsWith("created")||c.startsWith("read")||c.startsWith("viewed")||c.startsWith("analyzed")||c.startsWith("wrote")||c.startsWith("replaced")||c.startsWith("deleted")?"done":c.includes("error")||c.includes("fail")?"error":c.startsWith("mcp")?"mcp":"running",e=j[a.type]||j.file;return(0,b.jsxs)("div",{className:`tool-call-card ${d}`,"data-tool-index":a.index,children:[(0,b.jsxs)("div",{className:"tool-header",children:[(0,b.jsx)("span",{className:"tool-icon",dangerouslySetInnerHTML:{__html:e}}),(0,b.jsx)("span",{className:"tool-status-text",children:a.status}),a.path&&(0,b.jsx)("span",{className:"tool-path",title:a.path,children:a.path})]}),a.command&&(0,b.jsx)("div",{className:"tool-command",children:(0,b.jsx)("code",{children:a.command})}),(a.additions||a.deletions)&&(0,b.jsxs)("div",{className:"tool-file-changes",children:[a.additions&&(0,b.jsx)("span",{className:"tool-additions",children:a.additions}),a.deletions&&(0,b.jsx)("span",{className:"tool-deletions",children:a.deletions})]}),a.exitCode&&(0,b.jsx)("div",{className:"tool-exit-code",children:a.exitCode}),a.terminalOutput&&(0,b.jsx)("div",{className:"tool-terminal",children:a.terminalOutput}),a.footerButtons&&a.footerButtons.length>0&&(0,b.jsx)("div",{className:"tool-footer-actions",children:a.footerButtons.map((c,d)=>(0,b.jsx)("button",{className:"tool-footer-btn",onClick:async()=>{try{await fetch("/api/v1/chat/action",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolId:a.id,buttonText:c})})}catch{}},children:c},d))})]})}function l({time:a}){return(0,b.jsxs)("div",{className:"thinking-block",children:[(0,b.jsx)("span",{className:"thinking-icon",children:"💭"}),(0,b.jsx)("span",{children:a})]})}function m({onApprove:a,onReject:c}){return(0,b.jsxs)("div",{className:"hitl-dialog",children:[(0,b.jsx)("div",{className:"hitl-label",children:"⚠️ Needs Approval"}),(0,b.jsx)("div",{className:"hitl-context",children:"The agent needs your permission to proceed."}),(0,b.jsxs)("div",{className:"hitl-actions",children:[(0,b.jsx)("button",{className:"hitl-approve-btn",onClick:a,children:"✓ Approve"}),(0,b.jsx)("button",{className:"hitl-reject-btn",onClick:c,children:"✕ Reject"})]})]})}function n(){return(0,b.jsxs)("div",{className:"typing-indicator",children:[(0,b.jsx)("div",{className:"typing-dot"}),(0,b.jsx)("div",{className:"typing-dot"}),(0,b.jsx)("div",{className:"typing-dot"})]})}function o({content:a,steps:c,isStreaming:d,onApprove:e,onReject:f,onRetry:g}){return(0,b.jsxs)("div",{className:`agent-message ${d?"streaming":""}`,children:[(0,b.jsxs)("div",{className:"agent-steps",children:[c.map((a,c)=>{switch(a.type){case"thinking":return(0,b.jsx)(l,{time:a.data.time},`step-${c}`);case"tool_call":return(0,b.jsx)(k,{data:a.data},`step-${c}`);case"hitl":return(0,b.jsx)(m,{onApprove:e,onReject:f},`step-${c}`);case"file_change":return(0,b.jsxs)("div",{className:"file-change-indicator",children:[(0,b.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,b.jsx)("polyline",{points:"14 2 14 8 20 8"})]}),(0,b.jsx)("span",{className:"file-change-name",children:a.data.fileName})]},`step-${c}`);case"error":return(0,b.jsxs)("div",{className:"error-banner",children:[(0,b.jsxs)("div",{style:{marginBottom:!d&&g?"8px":"0"},children:["⚠️ ",String(a.data.message)]}),!d&&g&&(0,b.jsx)("button",{className:"px-3 py-1 bg-red-100 text-red-800 rounded hover:bg-red-200 transition-colors text-sm font-medium",onClick:g,children:"Try Again"})]},`step-${c}`);default:return null}}),d&&(0,b.jsx)(n,{})]}),a&&(0,b.jsx)("div",{className:"agent-response",dangerouslySetInnerHTML:{__html:a}})]})}function p({messages:a,currentSteps:c,currentResponse:d,isStreaming:e,onApprove:f,onReject:g,onRetry:h}){return(0,b.jsxs)(b.Fragment,{children:[a.map((a,c)=>"user"===a.role?(0,b.jsx)(i,{content:a.content},`msg-${c}`):(0,b.jsx)(o,{content:a.content,steps:a.steps||[],isStreaming:!1,onApprove:f,onReject:g,onRetry:h},`msg-${c}`)),e&&(0,b.jsx)(o,{content:d,steps:c,isStreaming:!0,onApprove:f,onReject:g,onRetry:h})]})}function q({onSend:a,isStreaming:d,currentMode:e,onToggleMode:f}){let[g,h]=(0,c.useState)(""),i=(0,c.useRef)(null);return(0,c.useEffect)(()=>{i.current?.focus()},[]),(0,b.jsxs)("footer",{className:"input-area",children:[(0,b.jsxs)("div",{className:"input-wrapper",children:[(0,b.jsxs)("button",{className:`mode-toggle ${e}`,onClick:f,title:`Mode: ${"planning"===e?"Planning":"Fast"} — Click to switch`,"aria-label":`Switch mode (currently ${e})`,type:"button",children:[(0,b.jsx)("span",{className:"mode-icon",children:"planning"===e?"📋":"⚡"}),(0,b.jsx)("span",{className:"mode-label",children:"planning"===e?"Plan":"Fast"})]}),(0,b.jsx)("textarea",{ref:i,value:g,onChange:a=>{h(a.target.value);let b=a.target;b.style.height="auto",b.style.height=Math.min(b.scrollHeight,150)+"px"},onKeyDown:b=>{"Enter"===b.key&&(!b.shiftKey||b.ctrlKey||b.metaKey)&&(b.preventDefault(),!d&&g.trim()&&(a(g),h(""),i.current&&(i.current.style.height="auto")))},placeholder:"Ask the Antigravity agent...",rows:1,"aria-label":"Chat message input",enterKeyHint:"send",autoComplete:"off"}),(0,b.jsx)("button",{className:"send-btn",onClick:()=>{!d&&g.trim()&&(a(g),h(""),i.current&&(i.current.style.height="auto"))},disabled:d||!g.trim(),"aria-label":"Send message",children:(0,b.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),(0,b.jsx)("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]}),(0,b.jsxs)("div",{className:"input-hint",children:[(0,b.jsx)("span",{children:"Enter to send · Shift+Enter for new line · Ctrl+N for new chat"}),(0,b.jsx)("span",{id:"model-info"})]})]})}function r({open:a,onClose:d,activeConversation:e,files:f}){let[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(!1),m=async a=>{if(e){l(!0),h(a);try{let b=await fetch(`/api/v1/artifacts/active/${encodeURIComponent(a)}`),c=await b.text();j(c)}catch(a){j(`Error loading file: ${a.message}`)}finally{l(!1)}}};return(0,b.jsxs)("div",{className:`artifact-panel ${a?"open":""}`,children:[(0,b.jsxs)("div",{className:"artifact-panel-header",children:[(0,b.jsx)("button",{className:"icon-btn",onClick:d,title:"Close panel",children:(0,b.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,b.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,b.jsx)("h3",{children:"Artifacts"})]}),e?(0,b.jsxs)("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--border-subtle)",background:"rgba(99,102,241,0.04)"},children:[(0,b.jsx)("div",{style:{fontSize:"13px",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title||"Untitled"}),(0,b.jsxs)("div",{style:{fontSize:"10px",fontFamily:"'JetBrains Mono', monospace",color:"var(--text-muted)"},children:[f.length," file",1!==f.length?"s":""]})]}):(0,b.jsx)("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-muted)",fontSize:"13px"},children:"No active conversation"}),g?(0,b.jsxs)("div",{className:"artifact-viewer",children:[(0,b.jsxs)("div",{className:"artifact-viewer-header",children:[(0,b.jsx)("button",{className:"artifact-back-btn",onClick:()=>{h(null),j("")},children:"← Back"}),(0,b.jsx)("span",{className:"artifact-viewer-title",children:g})]}),(0,b.jsx)("div",{className:"artifact-viewer-body",children:k?(0,b.jsx)("div",{style:{color:"var(--text-muted)",padding:"16px"},children:"Loading..."}):g.endsWith(".md")?(0,b.jsx)("div",{className:"agent-response",dangerouslySetInnerHTML:{__html:i.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/`([^`]+)`/g,"<code>$1</code>").replace(/^- (.*$)/gim,"<li>$1</li>").replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br/>")}}):(0,b.jsx)("pre",{style:{margin:0,fontSize:"12px",lineHeight:1.6,color:"var(--text-secondary)",fontFamily:"'JetBrains Mono', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:i})})]}):(0,b.jsxs)("div",{className:"artifact-file-list",children:[f.map(a=>{var c,d;let e;return(0,b.jsxs)("button",{className:"artifact-file-item",onClick:()=>m(a.name),children:[(0,b.jsx)("span",{className:"artifact-file-icon",children:(c=a.name).endsWith(".md")?"📄":c.endsWith(".json")?"📋":c.endsWith(".ts")||c.endsWith(".tsx")?"📘":c.endsWith(".css")?"🎨":"📁"}),(0,b.jsxs)("div",{style:{flex:1,overflow:"hidden"},children:[(0,b.jsx)("div",{className:"artifact-file-name",children:a.name}),(0,b.jsx)("div",{style:{fontSize:"10px",color:"var(--text-muted)"},children:(e=new Date(a.mtime)).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})+" · "+e.toLocaleDateString()})]}),(0,b.jsx)("span",{className:"artifact-file-size",children:(d=a.size)<1024?`${d}B`:d<1048576?`${(d/1024).toFixed(1)}KB`:`${(d/1048576).toFixed(1)}MB`})]},a.name)}),0===f.length&&e&&(0,b.jsx)("div",{style:{textAlign:"center",padding:"24px",color:"var(--text-muted)",fontSize:"13px"},children:"No artifacts in this conversation"})]})]})}function s(){let a=function(){let[a,b]=(0,c.useState)([]),[f,g]=(0,c.useState)(!1),[h,i]=(0,c.useState)(!1),[j,k]=(0,c.useState)("Agent"),[l,m]=(0,c.useState)("connected"),[n,o]=(0,c.useState)(!0),[p,q]=(0,c.useState)([]),[r,s]=(0,c.useState)(""),[t,u]=(0,c.useState)("planning"),v=(0,c.useRef)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(""),y=(0,c.useRef)([]),z=(0,c.useCallback)(()=>{requestAnimationFrame(()=>{w.current?.scrollIntoView({behavior:"smooth"})})},[]),A=(0,c.useCallback)((a,b)=>{m(a),k(b)},[]),B=(0,c.useCallback)(async()=>{try{let a=await fetch(`${e}/chat/history`),c=await a.json();c.turns&&c.turns.length>0&&(o(!1),b(c.turns.map(a=>({role:a.role,content:a.content}))))}catch{}},[]),{artifactFiles:C,artifactPanelOpen:D,toggleArtifactPanel:E,openArtifactPanel:F,loadArtifacts:G}=function(a){let[b,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(!1),g=(0,c.useRef)(""),h=(0,c.useRef)(null),i=(0,c.useCallback)(async()=>{try{let a=await fetch("/api/v1/artifacts/active"),b=(await a.json()).files||[],c=JSON.stringify(b.map(a=>a.name+a.size+a.mtime));c!==g.current&&(g.current=c,d(b))}catch{}},[]),j=(0,c.useCallback)(()=>{f(a=>!a)},[]),k=(0,c.useCallback)(()=>{f(!0)},[]);return(0,c.useEffect)(()=>(e?(i(),h.current=setInterval(i,3e3)):h.current&&(clearInterval(h.current),h.current=null),()=>{h.current&&(clearInterval(h.current),h.current=null)}),[e,i]),(0,c.useEffect)(()=>{},[void 0,i]),{artifactFiles:b,artifactPanelOpen:e,toggleArtifactPanel:j,openArtifactPanel:k,loadArtifacts:i}}(),{windows:H,conversations:I,activeConversation:J,cdpStatus:K,recentProjects:L,loadWindows:M,selectWindow:N,loadConversations:O,selectConversation:P,checkCdpStatus:Q,startCdpServer:R,openNewWindow:S,closeWindowByIndex:T,loadRecentProjects:U}=function(a,b,e){let[f,g]=(0,c.useState)([]),[h,i]=(0,c.useState)([]),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)({active:!1,windowCount:0}),[n,o]=(0,c.useState)([]),p=(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/windows`),b=await a.json();g(b.windows||[])}catch{}},[]),q=(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/windows/cdp-status`),b=await a.json();return m({active:b.active,windowCount:b.windowCount,error:b.error}),b.active}catch{return m({active:!1,windowCount:0,error:"Failed to check"}),!1}},[]),r=(0,c.useCallback)(async(a,b)=>{try{let c=await fetch(`${d}/windows/cdp-start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectDir:a||".",killExisting:b||!1})}),e=await c.json();return e.success&&(await q(),await p()),e}catch(a){return{success:!1,message:a.message||"Failed to start CDP server"}}},[q,p]),s=(0,c.useCallback)(async a=>{try{let b=await fetch(`${d}/windows/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectDir:a})}),c=await b.json();return c.success&&(await p(),await q()),c}catch(a){return{success:!1,message:a.message||"Failed to open window"}}},[p,q]),t=(0,c.useCallback)(async a=>{try{let b=await fetch(`${d}/windows/close`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({index:a})}),c=await b.json();return c.success&&(await p(),await q()),c}catch(a){return{success:!1,message:a.message||"Failed to close window"}}},[p,q]),u=(0,c.useCallback)(async a=>{try{await fetch(`${d}/windows/select`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({index:a})}),await p()}catch{}},[p]),v=(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/conversations`),b=(await a.json()).conversations||[];i(b);let c=b.find(a=>a.active);c&&k(c)}catch{}},[]);return{windows:f,conversations:h,activeConversation:j,cdpStatus:l,recentProjects:n,loadWindows:p,selectWindow:u,loadConversations:v,selectConversation:(0,c.useCallback)(async c=>{try{let f=await fetch(`${d}/conversations/select`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:c})});if((await f.json()).success){b(!1);let f=0,g=async()=>{f++;try{let b=await fetch(`${d}/conversations`),g=(await b.json()).conversations||[],h=g.find(a=>a.active);if(h&&h.title===c||f>10){i(g),h&&k(h),await a(),e?.();return}}catch{}setTimeout(g,500)};g()}}catch{}},[a,b,e]),checkCdpStatus:q,startCdpServer:r,openNewWindow:s,closeWindowByIndex:t,loadRecentProjects:(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/windows/recent`),b=await a.json();o(b.recentProjects||[])}catch{}},[])}}(B,o,(0,c.useCallback)(()=>{F(),G()},[F,G])),V=(0,c.useCallback)(async()=>{try{let a=await fetch(`${e}/chat/mode`),b=await a.json();b.mode&&u(b.mode)}catch{}},[]),W=(0,c.useCallback)(async()=>{let a="planning"===t?"fast":"planning";u(a);try{let b=await fetch(`${e}/chat/mode`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:a})}),c=await b.json();c.mode&&u(c.mode)}catch{u(t)}},[t]),X=(0,c.useCallback)(async()=>{try{let a=await fetch(`${e}/health`),b=await a.json();i(b.connected),A(b.connected?"connected":"disconnected",b.connected?"Agent":"Disconnected")}catch{i(!1),A("disconnected","Offline")}},[A]),Y=(0,c.useCallback)(a=>{let{type:b,...c}=a;switch(b){case"thinking":case"tool_call":case"hitl":case"file_change":case"error":case"notification":q(a=>{let d=[...a,{type:b,data:c}];return y.current=d,d});break;case"response":s(c.content||""),x.current=c.content||"";break;case"status":A(c.isRunning?"streaming":"connected",c.isRunning?"Agent working...":"Agent");break;case"done":c.finalResponse&&(s(c.finalResponse),x.current=c.finalResponse),A("connected","Agent"),g(!1)}z()},[A,z]),Z=(0,c.useCallback)(async a=>{if(f||!a.trim())return;o(!1);let c=a.trim();b(a=>[...a,{role:"user",content:c}]),g(!0),q([]),s(""),x.current="",y.current=[],A("streaming","Agent typing...");let d=new AbortController;v.current=d;try{let a=(await fetch(`${e}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:c}),signal:d.signal})).body.getReader(),b=new TextDecoder,f="";for(;;){let{done:c,value:d}=await a.read();if(c)break;let e=(f+=b.decode(d,{stream:!0})).split("\n");for(let a of(f=e.pop(),e))if(a.startsWith("data: "))try{let b=JSON.parse(a.slice(6));Y(b)}catch{}}}catch(a){"AbortError"!==a.name&&(q(b=>[...b,{type:"error",data:{message:a.message}}]),A("error","Error"))}finally{let a=x.current,c=[...y.current];g(!1),v.current=null,(a||c.length>0)&&b(b=>[...b,{role:"agent",content:a,steps:c}]),A("connected","Agent")}},[f,Y,A]),$=(0,c.useCallback)(async()=>{v.current&&v.current.abort(),b([]),q([]),s(""),o(!0);try{let a=await fetch(`${e}/chat/new`,{method:"POST"});(await a.json()).success&&A("connected","New Chat")}catch{}},[A]),_=(0,c.useCallback)(async()=>{try{await fetch(`${e}/chat/approve`,{method:"POST"}),A("streaming","Agent")}catch{}},[A]),aa=(0,c.useCallback)(async()=>{try{await fetch(`${e}/chat/reject`,{method:"POST"})}catch{}},[]);return(0,c.useEffect)(()=>{X(),M(),B(),O(),G(),V(),Q(),U();let a=setInterval(X,3e4),b=setInterval(Q,15e3);return()=>{clearInterval(a),clearInterval(b)}},[X,M,B,O,G,V,Q,U]),(0,c.useEffect)(z,[a,p,r,z]),{messages:a,isStreaming:f,isConnected:h,statusText:j,statusState:l,showWelcome:n,currentSteps:p,currentResponse:r,windows:H,conversations:I,activeConversation:J,artifactFiles:C,artifactPanelOpen:D,currentMode:t,cdpStatus:K,recentProjects:L,sendMessage:Z,startNewChat:$,approve:_,reject:aa,selectWindow:N,selectConversation:P,toggleArtifactPanel:E,openArtifactPanel:F,toggleMode:W,startCdpServer:R,openNewWindow:S,closeWindowByIndex:T,messagesEndRef:w,setShowWelcome:o}}();return(0,c.useEffect)(()=>{let b=b=>{"n"===b.key&&(b.ctrlKey||b.metaKey)&&(b.preventDefault(),a.startNewChat())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsxs)("div",{className:"app-container",children:[(0,b.jsx)(g,{statusState:a.statusState,statusText:a.statusText,windows:a.windows,conversations:a.conversations,activeConversation:a.activeConversation,cdpStatus:a.cdpStatus,recentProjects:a.recentProjects,onSelectWindow:a.selectWindow,onSelectConversation:a.selectConversation,onNewChat:a.startNewChat,onToggleArtifacts:a.toggleArtifactPanel,onStartCdp:a.startCdpServer,onOpenWindow:a.openNewWindow,onCloseWindow:a.closeWindowByIndex}),(0,b.jsxs)("main",{className:"messages-area",role:"log","aria-live":"polite",children:[a.showWelcome?(0,b.jsx)(h,{onQuickPrompt:a.sendMessage}):(0,b.jsx)(p,{messages:a.messages,currentSteps:a.currentSteps,currentResponse:a.currentResponse,isStreaming:a.isStreaming,onApprove:a.approve,onReject:a.reject,onRetry:async()=>{try{await fetch("/api/v1/health"),window.location.reload()}catch{}}}),(0,b.jsx)("div",{ref:a.messagesEndRef})]}),(0,b.jsx)(q,{onSend:a.sendMessage,isStreaming:a.isStreaming,currentMode:a.currentMode,onToggleMode:a.toggleMode}),(0,b.jsx)(r,{open:a.artifactPanelOpen,onClose:a.toggleArtifactPanel,activeConversation:a.activeConversation,files:a.artifactFiles})]})}a.s(["default",()=>s],72079)}];
|
|
1
|
+
module.exports=[72079,a=>{"use strict";var b=a.i(87924),c=a.i(72131);let d="/api/v1",e="/api/v1";function f({conversations:a,activeConversation:d,onSelect:e}){let[f,g]=(0,c.useState)(!1),h=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let a=a=>{h.current&&!h.current.contains(a.target)&&g(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),(0,b.jsxs)("div",{ref:h,className:`conv-selector-wrapper ${f?"open":""}`,children:[(0,b.jsxs)("button",{className:"conv-selector-btn",onClick:()=>g(!f),title:"Switch conversation",children:[(0,b.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,b.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),(0,b.jsx)("span",{children:d?.title?.substring(0,22)||"No conversation"}),(0,b.jsx)("svg",{className:"chevron",width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,b.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,b.jsxs)("div",{className:`conv-dropdown ${f?"open":""}`,children:[(0,b.jsx)("div",{className:"conv-dropdown-header",children:"Conversations"}),(0,b.jsxs)("div",{className:"conv-dropdown-list",children:[a.map((a,c)=>{let f=a.title||a.id.substring(0,20)+"…",h=a.id&&a.id.length>5?a.id.substring(0,8):"",i=a.files?.slice(0,3)||[],j=a.files?a.files.length-3:0;return(0,b.jsxs)("button",{className:`conv-item ${a.title===d?.title?"active":""}`,onClick:()=>{a.title!==d?.title&&e(a.title),g(!1)},children:[(0,b.jsxs)("div",{className:"conv-item-header",children:[(0,b.jsx)("span",{className:`conv-item-dot ${a.active?"active":""}`}),(0,b.jsx)("span",{className:"conv-item-title",children:f}),h&&(0,b.jsx)("span",{className:"conv-item-id",children:h})]}),a.mtime&&(0,b.jsx)("span",{className:"conv-item-time",children:function(a){if(!a)return"";let b=new Date(a),c=Math.floor((Date.now()-b.getTime())/6e4);if(c<1)return"Just now";if(c<60)return`${c}m ago`;let d=Math.floor(c/60);if(d<24)return`${d}h ago`;let e=Math.floor(d/24);return`${e}d ago`}(a.mtime)}),a.files&&a.files.length>0&&(0,b.jsxs)("div",{className:"conv-item-files",children:[i.map((a,c)=>(0,b.jsx)("span",{className:"conv-item-file-badge",children:a.name},c)),j>0&&(0,b.jsxs)("span",{className:"conv-item-file-badge",children:["+",j]})]})]},`conv-${c}`)}),0===a.length&&(0,b.jsx)("div",{className:"conv-dropdown-empty",children:"No conversations found"})]})]})]})}function g({statusState:a,statusText:d,windows:e,conversations:g,activeConversation:h,cdpStatus:i,recentProjects:j,onSelectWindow:k,onSelectConversation:l,onNewChat:m,onToggleArtifacts:n,onStartCdp:o,onOpenWindow:p,onCloseWindow:q}){let[r,s]=(0,c.useState)(!1),[t,u]=(0,c.useState)(""),[v,w]=(0,c.useState)(!1),[x,y]=(0,c.useState)(!1),[z,A]=(0,c.useState)(null),B=(0,c.useRef)(null),C=(0,c.useRef)(null);(0,c.useEffect)(()=>{let a=a=>{B.current&&!B.current.contains(a.target)&&s(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]),(0,c.useEffect)(()=>{if(z){let a=setTimeout(()=>A(null),4e3);return()=>clearTimeout(a)}},[z]);let D=async()=>{y(!0),A(null);try{let a=await o(".",!1);A({text:a.message||(a.success?"CDP started!":"Failed to start CDP"),type:a.success?"success":"error"})}catch{A({text:"Failed to start CDP server",type:"error"})}finally{y(!1)}},E=async a=>{a.preventDefault();let b=t.trim();if(b&&!v){w(!0),A(null);try{let a=await p(b);A({text:a.message||(a.success?"Window opened!":"Failed to open"),type:a.success?"success":"error"}),a.success&&u("")}catch{A({text:"Failed to open window",type:"error"})}finally{w(!1)}}},F=async(a,b)=>{if(b.stopPropagation(),!window.confirm(`Close window "${e[a]?.title||a}"?`))return;let c=await q(a);A({text:c.message||(c.success?"Closed!":"Failed to close"),type:c.success?"success":"error"})};return(0,b.jsxs)("header",{className:"header",children:[(0,b.jsx)("div",{className:"header-left",children:(0,b.jsx)("div",{className:"logo",children:(0,b.jsxs)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"url(#header-gradient)",strokeWidth:"1.5",children:[(0,b.jsx)("defs",{children:(0,b.jsxs)("linearGradient",{id:"header-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,b.jsx)("stop",{offset:"0%",style:{stopColor:"#6366f1"}}),(0,b.jsx)("stop",{offset:"100%",style:{stopColor:"#a855f7"}})]})}),(0,b.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,b.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"}),(0,b.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})})}),(0,b.jsxs)("div",{className:"header-right",children:[(0,b.jsx)(f,{conversations:g,activeConversation:h,onSelect:l}),(0,b.jsxs)("div",{ref:B,className:`window-selector-wrapper ${r?"open":""}`,children:[(0,b.jsxs)("button",{className:"window-selector-btn",onClick:()=>s(!r),title:"Manage Antigravity windows",children:[(0,b.jsx)("span",{className:`cdp-indicator ${i.active?"active":"inactive"}`}),(0,b.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"}),(0,b.jsx)("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),(0,b.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"21"})]}),(0,b.jsx)("span",{style:{maxWidth:"120px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",verticalAlign:"bottom"},children:e.find(a=>a.active)?.title||"Windows"}),(0,b.jsx)("svg",{className:"chevron",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,b.jsx)("polyline",{points:"6 9 12 15 18 9"})})]}),(0,b.jsxs)("div",{className:`window-dropdown ${r?"open":""}`,children:[(0,b.jsxs)("div",{className:"wm-cdp-status",children:[(0,b.jsxs)("div",{className:"wm-cdp-info",children:[(0,b.jsx)("span",{className:`wm-cdp-dot ${i.active?"active":"inactive"}`}),(0,b.jsx)("span",{children:i.active?`CDP Active \xb7 ${i.windowCount} window${1!==i.windowCount?"s":""}`:"CDP Inactive"})]}),!i.active&&(0,b.jsxs)("button",{className:"wm-cdp-start-btn",onClick:D,disabled:x,title:"Start Antigravity with CDP",children:[x?(0,b.jsx)("span",{className:"wm-spinner"}):(0,b.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,b.jsx)("polygon",{points:"5 3 19 12 5 21 5 3"})}),x?"Starting...":"Start CDP"]})]}),(0,b.jsx)("div",{className:"window-dropdown-header",children:"Open Windows"}),e.map(a=>(0,b.jsxs)("div",{className:`window-item ${a.active?"active":""}`,children:[(0,b.jsxs)("button",{className:"window-item-select",onClick:()=>{k(a.index),s(!1)},children:[(0,b.jsx)("span",{className:"window-dot"}),(0,b.jsx)("span",{className:"window-item-title",children:a.title})]}),(0,b.jsx)("button",{className:"window-item-close",onClick:b=>F(a.index,b),title:`Close "${a.title}"`,children:(0,b.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,b.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,b.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},a.index)),0===e.length&&(0,b.jsx)("div",{style:{padding:"12px",color:"var(--text-muted)",fontSize:"12px"},children:"No windows detected"}),j.length>0&&(0,b.jsxs)("div",{className:"wm-recent-section",children:[(0,b.jsx)("div",{className:"wm-recent-header",children:"Recent Projects"}),j.map(a=>(0,b.jsxs)("button",{className:"wm-recent-item",onClick:async()=>{w(!0),A(null);try{let b=await p(a.path);A({text:b.message||(b.success?"Opened!":"Failed"),type:b.success?"success":"error"})}catch{A({text:"Failed to open",type:"error"})}finally{w(!1)}},disabled:v,title:a.path,children:[(0,b.jsx)("svg",{className:"wm-recent-icon",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,b.jsx)("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),(0,b.jsxs)("div",{className:"wm-recent-info",children:[(0,b.jsx)("span",{className:"wm-recent-name",children:a.name}),(0,b.jsx)("span",{className:"wm-recent-path",children:a.path})]})]},a.path))]}),(0,b.jsxs)("div",{className:"wm-open-section",children:[(0,b.jsx)("div",{className:"wm-open-label",children:"Open New Window"}),(0,b.jsxs)("form",{className:"wm-open-form",onSubmit:E,children:[(0,b.jsx)("input",{ref:C,type:"text",className:"wm-open-input",value:t,onChange:a=>u(a.target.value),placeholder:"/path/to/project",disabled:v}),(0,b.jsx)("button",{type:"submit",className:"wm-open-btn",disabled:v||!t.trim(),title:"Open directory in Antigravity",children:v?(0,b.jsx)("span",{className:"wm-spinner"}):(0,b.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[(0,b.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,b.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]})]}),z&&(0,b.jsx)("div",{className:`wm-action-message ${z.type}`,children:z.text})]})]}),(0,b.jsx)("button",{className:"icon-btn",onClick:n,title:"Artifacts","aria-label":"Artifacts",children:(0,b.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,b.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,b.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,b.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,b.jsx)("polyline",{points:"10 9 9 9 8 9"})]})}),(0,b.jsx)("button",{className:"icon-btn",onClick:m,title:"New Chat","aria-label":"New Chat",children:(0,b.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,b.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})})]})]})}function h({onQuickPrompt:a}){return(0,b.jsxs)("div",{className:"welcome-screen",children:[(0,b.jsx)("div",{className:"welcome-icon",children:(0,b.jsxs)("svg",{width:"64",height:"64",viewBox:"0 0 24 24",fill:"none",stroke:"url(#gradient)",strokeWidth:"1.5",children:[(0,b.jsx)("defs",{children:(0,b.jsxs)("linearGradient",{id:"gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,b.jsx)("stop",{offset:"0%",style:{stopColor:"#6366f1"}}),(0,b.jsx)("stop",{offset:"100%",style:{stopColor:"#a855f7"}})]})}),(0,b.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,b.jsx)("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"}),(0,b.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12"})]})}),(0,b.jsx)("h2",{children:"Antigravity Agent"}),(0,b.jsx)("p",{children:"Ask anything. The agent has access to your IDE — files, terminal, search, and more."}),(0,b.jsxs)("div",{className:"quick-prompts",children:[(0,b.jsx)("button",{className:"quick-prompt",onClick:()=>a("What files are in the current workspace?"),children:"📁 List workspace files"}),(0,b.jsx)("button",{className:"quick-prompt",onClick:()=>a("Explain the architecture of this project"),children:"🏗️ Explain architecture"}),(0,b.jsx)("button",{className:"quick-prompt",onClick:()=>a("Help me debug the most recent error"),children:"🐛 Debug last error"})]})]})}function i({content:a}){return(0,b.jsx)("div",{className:"user-message",children:(0,b.jsx)("div",{className:"message-content",children:a})})}let j={command:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>',file:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>',search:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',read:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',browser:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>',mcp:'<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v6M12 22v-6M4.93 4.93l4.24 4.24M14.83 14.83l4.24 4.24M2 12h6M22 12h-6M4.93 19.07l4.24-4.24M14.83 9.17l4.24-4.24"/><circle cx="12" cy="12" r="4"/></svg>'};function k({data:a}){let c,d=(c=(a.status||"").toLowerCase()).startsWith("running")||c.startsWith("editing")||c.startsWith("creating")||c.startsWith("search")?"running":c.startsWith("ran")||c.startsWith("edited")||c.startsWith("created")||c.startsWith("read")||c.startsWith("viewed")||c.startsWith("analyzed")||c.startsWith("wrote")||c.startsWith("replaced")||c.startsWith("deleted")?"done":c.includes("error")||c.includes("fail")?"error":c.startsWith("mcp")?"mcp":"running",e=j[a.type]||j.file;return(0,b.jsxs)("div",{className:`tool-call-card ${d}`,"data-tool-index":a.index,children:[(0,b.jsxs)("div",{className:"tool-header",children:[(0,b.jsx)("span",{className:"tool-icon",dangerouslySetInnerHTML:{__html:e}}),(0,b.jsx)("span",{className:"tool-status-text",children:a.status}),a.path&&(0,b.jsx)("span",{className:"tool-path",title:a.path,children:a.path})]}),a.command&&(0,b.jsx)("div",{className:"tool-command",children:(0,b.jsx)("code",{children:a.command})}),(a.additions||a.deletions)&&(0,b.jsxs)("div",{className:"tool-file-changes",children:[a.additions&&(0,b.jsx)("span",{className:"tool-additions",children:a.additions}),a.deletions&&(0,b.jsx)("span",{className:"tool-deletions",children:a.deletions})]}),a.exitCode&&(0,b.jsx)("div",{className:"tool-exit-code",children:a.exitCode}),a.terminalOutput&&(0,b.jsx)("div",{className:"tool-terminal",children:a.terminalOutput}),a.footerButtons&&a.footerButtons.length>0&&(0,b.jsx)("div",{className:"tool-footer-actions",children:a.footerButtons.map((c,d)=>(0,b.jsx)("button",{className:"tool-footer-btn",onClick:async()=>{try{await fetch("/api/v1/chat/action",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolId:a.id,buttonText:c})})}catch{}},children:c},d))})]})}function l({time:a}){return(0,b.jsxs)("div",{className:"thinking-block",children:[(0,b.jsx)("span",{className:"thinking-icon",children:"💭"}),(0,b.jsx)("span",{children:a})]})}function m(){return(0,b.jsxs)("div",{className:"typing-indicator",children:[(0,b.jsx)("div",{className:"typing-dot"}),(0,b.jsx)("div",{className:"typing-dot"}),(0,b.jsx)("div",{className:"typing-dot"})]})}function n({content:a,steps:c,isStreaming:d,onRetry:e}){return(0,b.jsxs)("div",{className:`agent-message ${d?"streaming":""}`,children:[(0,b.jsxs)("div",{className:"agent-steps",children:[c.map((a,c)=>{switch(a.type){case"thinking":return(0,b.jsx)(l,{time:a.data.time},`step-${c}`);case"tool_call":return(0,b.jsx)(k,{data:a.data},`step-${c}`);case"hitl":case"notification":default:return null;case"file_change":return(0,b.jsxs)("div",{className:"file-change-indicator",children:[(0,b.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,b.jsx)("polyline",{points:"14 2 14 8 20 8"})]}),(0,b.jsx)("span",{className:"file-change-name",children:a.data.fileName})]},`step-${c}`);case"error":return(0,b.jsxs)("div",{className:"error-banner",children:[(0,b.jsxs)("div",{style:{marginBottom:!d&&e?"8px":"0"},children:["⚠️ ",String(a.data.message)]}),!d&&e&&(0,b.jsx)("button",{className:"px-3 py-1 bg-red-100 text-red-800 rounded hover:bg-red-200 transition-colors text-sm font-medium",onClick:e,children:"Try Again"})]},`step-${c}`)}}),d&&(0,b.jsx)(m,{})]}),a&&(0,b.jsx)("div",{className:"agent-response",dangerouslySetInnerHTML:{__html:a}})]})}function o({messages:a,currentSteps:c,currentResponse:d,isStreaming:e,onRetry:f}){return(0,b.jsxs)(b.Fragment,{children:[a.map((a,c)=>"user"===a.role?(0,b.jsx)(i,{content:a.content},`msg-${c}`):(0,b.jsx)(n,{content:a.content,steps:a.steps||[],isStreaming:!1,onRetry:f},`msg-${c}`)),e&&(0,b.jsx)(n,{content:d,steps:c,isStreaming:!0,onRetry:f})]})}function p({onSend:a,isStreaming:d,currentMode:e,onToggleMode:f}){let[g,h]=(0,c.useState)(""),i=(0,c.useRef)(null);return(0,c.useEffect)(()=>{i.current?.focus()},[]),(0,b.jsxs)("footer",{className:"input-area",children:[(0,b.jsxs)("div",{className:"input-wrapper",children:[(0,b.jsxs)("button",{className:`mode-toggle ${e}`,onClick:f,title:`Mode: ${"planning"===e?"Planning":"Fast"} — Click to switch`,"aria-label":`Switch mode (currently ${e})`,type:"button",children:[(0,b.jsx)("span",{className:"mode-icon",children:"planning"===e?"📋":"⚡"}),(0,b.jsx)("span",{className:"mode-label",children:"planning"===e?"Plan":"Fast"})]}),(0,b.jsx)("textarea",{ref:i,value:g,onChange:a=>{h(a.target.value);let b=a.target;b.style.height="auto",b.style.height=Math.min(b.scrollHeight,150)+"px"},onKeyDown:b=>{"Enter"===b.key&&(!b.shiftKey||b.ctrlKey||b.metaKey)&&(b.preventDefault(),!d&&g.trim()&&(a(g),h(""),i.current&&(i.current.style.height="auto")))},placeholder:"Ask the Antigravity agent...",rows:1,"aria-label":"Chat message input",enterKeyHint:"send",autoComplete:"off"}),(0,b.jsx)("button",{className:"send-btn",onClick:()=>{!d&&g.trim()&&(a(g),h(""),i.current&&(i.current.style.height="auto"))},disabled:d||!g.trim(),"aria-label":"Send message",children:(0,b.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),(0,b.jsx)("polygon",{points:"22 2 15 22 11 13 2 9 22 2"})]})})]}),(0,b.jsxs)("div",{className:"input-hint",children:[(0,b.jsx)("span",{children:"Enter to send · Shift+Enter for new line · Ctrl+N for new chat"}),(0,b.jsx)("span",{id:"model-info"})]})]})}function q({open:a,onClose:d,activeConversation:e,files:f}){let[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(""),[k,l]=(0,c.useState)(!1),m=async a=>{if(e){l(!0),h(a);try{let b=await fetch(`/api/v1/artifacts/active/${encodeURIComponent(a)}`),c=await b.text();j(c)}catch(a){j(`Error loading file: ${a.message}`)}finally{l(!1)}}};return(0,b.jsxs)("div",{className:`artifact-panel ${a?"open":""}`,children:[(0,b.jsxs)("div",{className:"artifact-panel-header",children:[(0,b.jsx)("button",{className:"icon-btn",onClick:d,title:"Close panel",children:(0,b.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,b.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,b.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,b.jsx)("h3",{children:"Artifacts"})]}),e?(0,b.jsxs)("div",{style:{padding:"12px 16px",borderBottom:"1px solid var(--border-subtle)",background:"rgba(99,102,241,0.04)"},children:[(0,b.jsx)("div",{style:{fontSize:"13px",fontWeight:600,color:"var(--text-primary)",marginBottom:"2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title||"Untitled"}),(0,b.jsxs)("div",{style:{fontSize:"10px",fontFamily:"'JetBrains Mono', monospace",color:"var(--text-muted)"},children:[f.length," file",1!==f.length?"s":""]})]}):(0,b.jsx)("div",{style:{padding:"24px 16px",textAlign:"center",color:"var(--text-muted)",fontSize:"13px"},children:"No active conversation"}),g?(0,b.jsxs)("div",{className:"artifact-viewer",children:[(0,b.jsxs)("div",{className:"artifact-viewer-header",children:[(0,b.jsx)("button",{className:"artifact-back-btn",onClick:()=>{h(null),j("")},children:"← Back"}),(0,b.jsx)("span",{className:"artifact-viewer-title",children:g})]}),(0,b.jsx)("div",{className:"artifact-viewer-body",children:k?(0,b.jsx)("div",{style:{color:"var(--text-muted)",padding:"16px"},children:"Loading..."}):g.endsWith(".md")?(0,b.jsx)("div",{className:"agent-response",dangerouslySetInnerHTML:{__html:i.replace(/^### (.*$)/gim,"<h3>$1</h3>").replace(/^## (.*$)/gim,"<h2>$1</h2>").replace(/^# (.*$)/gim,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/`([^`]+)`/g,"<code>$1</code>").replace(/^- (.*$)/gim,"<li>$1</li>").replace(/\n\n/g,"</p><p>").replace(/\n/g,"<br/>")}}):(0,b.jsx)("pre",{style:{margin:0,fontSize:"12px",lineHeight:1.6,color:"var(--text-secondary)",fontFamily:"'JetBrains Mono', monospace",whiteSpace:"pre-wrap",wordBreak:"break-all"},children:i})})]}):(0,b.jsxs)("div",{className:"artifact-file-list",children:[f.map(a=>{var c,d;let e;return(0,b.jsxs)("button",{className:"artifact-file-item",onClick:()=>m(a.name),children:[(0,b.jsx)("span",{className:"artifact-file-icon",children:(c=a.name).endsWith(".md")?"📄":c.endsWith(".json")?"📋":c.endsWith(".ts")||c.endsWith(".tsx")?"📘":c.endsWith(".css")?"🎨":"📁"}),(0,b.jsxs)("div",{style:{flex:1,overflow:"hidden"},children:[(0,b.jsx)("div",{className:"artifact-file-name",children:a.name}),(0,b.jsx)("div",{style:{fontSize:"10px",color:"var(--text-muted)"},children:(e=new Date(a.mtime)).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})+" · "+e.toLocaleDateString()})]}),(0,b.jsx)("span",{className:"artifact-file-size",children:(d=a.size)<1024?`${d}B`:d<1048576?`${(d/1024).toFixed(1)}KB`:`${(d/1048576).toFixed(1)}MB`})]},a.name)}),0===f.length&&e&&(0,b.jsx)("div",{style:{textAlign:"center",padding:"24px",color:"var(--text-muted)",fontSize:"13px"},children:"No artifacts in this conversation"})]})]})}function r(){let a=function(){let[a,b]=(0,c.useState)([]),[f,g]=(0,c.useState)(!1),[h,i]=(0,c.useState)(!1),[j,k]=(0,c.useState)("Agent"),[l,m]=(0,c.useState)("connected"),[n,o]=(0,c.useState)(!0),[p,q]=(0,c.useState)([]),[r,s]=(0,c.useState)(""),[t,u]=(0,c.useState)("planning"),v=(0,c.useRef)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(""),y=(0,c.useRef)([]),z=(0,c.useCallback)(()=>{requestAnimationFrame(()=>{w.current?.scrollIntoView({behavior:"smooth"})})},[]),A=(0,c.useCallback)((a,b)=>{m(a),k(b)},[]),B=(0,c.useCallback)(async()=>{try{let a=await fetch(`${e}/chat/history`),c=await a.json();c.turns&&c.turns.length>0&&(o(!1),b(c.turns.map(a=>({role:a.role,content:a.content}))))}catch{}},[]),{artifactFiles:C,artifactPanelOpen:D,toggleArtifactPanel:E,openArtifactPanel:F,loadArtifacts:G}=function(a){let[b,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(!1),g=(0,c.useRef)(""),h=(0,c.useRef)(null),i=(0,c.useCallback)(async()=>{try{let a=await fetch("/api/v1/artifacts/active"),b=(await a.json()).files||[],c=JSON.stringify(b.map(a=>a.name+a.size+a.mtime));c!==g.current&&(g.current=c,d(b))}catch{}},[]),j=(0,c.useCallback)(()=>{f(a=>!a)},[]),k=(0,c.useCallback)(()=>{f(!0)},[]);return(0,c.useEffect)(()=>(e?(i(),h.current=setInterval(i,3e3)):h.current&&(clearInterval(h.current),h.current=null),()=>{h.current&&(clearInterval(h.current),h.current=null)}),[e,i]),(0,c.useEffect)(()=>{},[void 0,i]),{artifactFiles:b,artifactPanelOpen:e,toggleArtifactPanel:j,openArtifactPanel:k,loadArtifacts:i}}(),{windows:H,conversations:I,activeConversation:J,cdpStatus:K,recentProjects:L,loadWindows:M,selectWindow:N,loadConversations:O,selectConversation:P,checkCdpStatus:Q,startCdpServer:R,openNewWindow:S,closeWindowByIndex:T,loadRecentProjects:U}=function(a,b,e){let[f,g]=(0,c.useState)([]),[h,i]=(0,c.useState)([]),[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)({active:!1,windowCount:0}),[n,o]=(0,c.useState)([]),p=(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/windows`),b=await a.json();g(b.windows||[])}catch{}},[]),q=(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/windows/cdp-status`),b=await a.json();return m({active:b.active,windowCount:b.windowCount,error:b.error}),b.active}catch{return m({active:!1,windowCount:0,error:"Failed to check"}),!1}},[]),r=(0,c.useCallback)(async(a,b)=>{try{let c=await fetch(`${d}/windows/cdp-start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectDir:a||".",killExisting:b||!1})}),e=await c.json();return e.success&&(await q(),await p()),e}catch(a){return{success:!1,message:a.message||"Failed to start CDP server"}}},[q,p]),s=(0,c.useCallback)(async a=>{try{let b=await fetch(`${d}/windows/open`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({projectDir:a})}),c=await b.json();return c.success&&(await p(),await q()),c}catch(a){return{success:!1,message:a.message||"Failed to open window"}}},[p,q]),t=(0,c.useCallback)(async a=>{try{let b=await fetch(`${d}/windows/close`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({index:a})}),c=await b.json();return c.success&&(await p(),await q()),c}catch(a){return{success:!1,message:a.message||"Failed to close window"}}},[p,q]),u=(0,c.useCallback)(async a=>{try{await fetch(`${d}/windows/select`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({index:a})}),await p()}catch{}},[p]),v=(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/conversations`),b=(await a.json()).conversations||[];i(b);let c=b.find(a=>a.active);c&&k(c)}catch{}},[]);return{windows:f,conversations:h,activeConversation:j,cdpStatus:l,recentProjects:n,loadWindows:p,selectWindow:u,loadConversations:v,selectConversation:(0,c.useCallback)(async c=>{try{let f=await fetch(`${d}/conversations/select`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:c})});if((await f.json()).success){b(!1);let f=0,g=async()=>{f++;try{let b=await fetch(`${d}/conversations`),g=(await b.json()).conversations||[],h=g.find(a=>a.active);if(h&&h.title===c||f>10){i(g),h&&k(h),await a(),e?.();return}}catch{}setTimeout(g,500)};g()}}catch{}},[a,b,e]),checkCdpStatus:q,startCdpServer:r,openNewWindow:s,closeWindowByIndex:t,loadRecentProjects:(0,c.useCallback)(async()=>{try{let a=await fetch(`${d}/windows/recent`),b=await a.json();o(b.recentProjects||[])}catch{}},[])}}(B,o,(0,c.useCallback)(()=>{F(),G()},[F,G])),V=(0,c.useCallback)(async()=>{try{let a=await fetch(`${e}/chat/mode`),b=await a.json();b.mode&&u(b.mode)}catch{}},[]),W=(0,c.useCallback)(async()=>{let a="planning"===t?"fast":"planning";u(a);try{let b=await fetch(`${e}/chat/mode`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:a})}),c=await b.json();c.mode&&u(c.mode)}catch{u(t)}},[t]),X=(0,c.useCallback)(async()=>{try{let a=await fetch(`${e}/health`),b=await a.json();i(b.connected),A(b.connected?"connected":"disconnected",b.connected?"Agent":"Disconnected")}catch{i(!1),A("disconnected","Offline")}},[A]),Y=(0,c.useCallback)(a=>{let{type:b,...c}=a;switch(b){case"tool_call":q(a=>{let d,e=a.findIndex(a=>"tool_call"===a.type&&a.data?.id===c.id);return e>=0?(d=[...a])[e]={type:b,data:c}:d=[...a,{type:b,data:c}],y.current=d,d});break;case"thinking":case"hitl":case"file_change":case"error":case"notification":q(a=>{let d=[...a,{type:b,data:c}];return y.current=d,d});break;case"response":s(c.content||""),x.current=c.content||"";break;case"status":A(c.isRunning?"streaming":"connected",c.isRunning?"Agent working...":"Agent");break;case"done":c.finalResponse&&(s(c.finalResponse),x.current=c.finalResponse),A("connected","Agent"),g(!1)}z()},[A,z]),Z=(0,c.useCallback)(async a=>{if(f||!a.trim())return;o(!1);let c=a.trim();b(a=>[...a,{role:"user",content:c}]),g(!0),q([]),s(""),x.current="",y.current=[],A("streaming","Agent typing...");let d=new AbortController;v.current=d;try{let a=(await fetch(`${e}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:c}),signal:d.signal})).body.getReader(),b=new TextDecoder,f="";for(;;){let{done:c,value:d}=await a.read();if(c)break;let e=(f+=b.decode(d,{stream:!0})).split("\n");for(let a of(f=e.pop(),e))if(a.startsWith("data: "))try{let b=JSON.parse(a.slice(6));Y(b)}catch{}}}catch(a){"AbortError"!==a.name&&(q(b=>[...b,{type:"error",data:{message:a.message}}]),A("error","Error"))}finally{let a=x.current,c=[...y.current];g(!1),v.current=null,(a||c.length>0)&&b(b=>[...b,{role:"agent",content:a,steps:c}]),A("connected","Agent")}},[f,Y,A]),$=(0,c.useCallback)(async()=>{v.current&&v.current.abort(),b([]),q([]),s(""),o(!0);try{let a=await fetch(`${e}/chat/new`,{method:"POST"});(await a.json()).success&&A("connected","New Chat")}catch{}},[A]),_=(0,c.useCallback)(async()=>{try{await fetch(`${e}/chat/approve`,{method:"POST"}),A("streaming","Agent")}catch{}},[A]),aa=(0,c.useCallback)(async()=>{try{await fetch(`${e}/chat/reject`,{method:"POST"})}catch{}},[]);return(0,c.useEffect)(()=>{X(),M(),B(),O(),G(),V(),Q(),U();let a=setInterval(X,3e4),b=setInterval(Q,15e3);return()=>{clearInterval(a),clearInterval(b)}},[X,M,B,O,G,V,Q,U]),(0,c.useEffect)(z,[a,p,r,z]),{messages:a,isStreaming:f,isConnected:h,statusText:j,statusState:l,showWelcome:n,currentSteps:p,currentResponse:r,windows:H,conversations:I,activeConversation:J,artifactFiles:C,artifactPanelOpen:D,currentMode:t,cdpStatus:K,recentProjects:L,sendMessage:Z,startNewChat:$,approve:_,reject:aa,selectWindow:N,selectConversation:P,toggleArtifactPanel:E,openArtifactPanel:F,toggleMode:W,startCdpServer:R,openNewWindow:S,closeWindowByIndex:T,messagesEndRef:w,setShowWelcome:o}}();return(0,c.useEffect)(()=>{let b=b=>{"n"===b.key&&(b.ctrlKey||b.metaKey)&&(b.preventDefault(),a.startNewChat())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsxs)("div",{className:"app-container",children:[(0,b.jsx)(g,{statusState:a.statusState,statusText:a.statusText,windows:a.windows,conversations:a.conversations,activeConversation:a.activeConversation,cdpStatus:a.cdpStatus,recentProjects:a.recentProjects,onSelectWindow:a.selectWindow,onSelectConversation:a.selectConversation,onNewChat:a.startNewChat,onToggleArtifacts:a.toggleArtifactPanel,onStartCdp:a.startCdpServer,onOpenWindow:a.openNewWindow,onCloseWindow:a.closeWindowByIndex}),(0,b.jsxs)("main",{className:"messages-area",role:"log","aria-live":"polite",children:[a.showWelcome?(0,b.jsx)(h,{onQuickPrompt:a.sendMessage}):(0,b.jsx)(o,{messages:a.messages,currentSteps:a.currentSteps,currentResponse:a.currentResponse,isStreaming:a.isStreaming,onRetry:async()=>{try{await fetch("/api/v1/health"),window.location.reload()}catch{}}}),(0,b.jsx)("div",{ref:a.messagesEndRef})]}),(0,b.jsx)(p,{onSend:a.sendMessage,isStreaming:a.isStreaming,currentMode:a.currentMode,onToggleMode:a.toggleMode}),(0,b.jsx)(q,{open:a.artifactPanelOpen,onClose:a.toggleArtifactPanel,activeConversation:a.activeConversation,files:a.artifactFiles})]})}a.s(["default",()=>r],72079)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=components_chat-container_tsx_fcbc457f._.js.map
|