@alook/app 0.0.1 → 0.0.3
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/bundled/email-worker/index.js +9 -5
- package/bundled/web/.open-next/.build/durable-objects/queue.js +4 -4
- package/bundled/web/.open-next/assets/BUILD_ID +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0.johotcqi6_q.css +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{00hhut1u6hwn6.js → 0071-212kfu1m.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0il_mcv02512i.js → 06ksvdw1qrvwk.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0a27029.-35e~.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0d7119q.u8xvu.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{08qdwj1xra2jx.js → 0eh6y91g1-0lc.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0gnzww73lhyo3.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0idrbu7e1a~hd.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{076bjy-c4b08..js → 0p7q1v_ivmnag.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/{0nd3e0dbrnq5i.js → 0qwgr1bo.q5v3.js} +4 -4
- package/bundled/web/.open-next/assets/_next/static/chunks/{028dxg8z6qji0.js → 0t3e2f8aogso_.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0tb03bpdj_am_.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/0whmpqhfadal3.js +1 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/11~usj.s5mzti.js +3 -0
- package/bundled/web/.open-next/assets/_next/static/chunks/{0-ac~bnnatk~x.js → 12oay61-cq.qw.js} +1 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/130t-y.8dp~je.js +3 -0
- package/bundled/web/.open-next/cache/{36j5LIYm2caTV9Ksu2QBr → YGJyWNUCWhOqpFg-fDYKo}/_global-error.cache +1 -1
- package/bundled/web/.open-next/cache/{36j5LIYm2caTV9Ksu2QBr → YGJyWNUCWhOqpFg-fDYKo}/_not-found.cache +1 -1
- package/bundled/web/.open-next/cache/{36j5LIYm2caTV9Ksu2QBr → YGJyWNUCWhOqpFg-fDYKo}/sitemap.xml.cache +1 -1
- package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
- package/bundled/web/.open-next/cloudflare/init.js +1 -1
- package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
- package/bundled/web/.open-next/middleware/handler.mjs +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/invite/[token]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/studio/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/activity/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/[convId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/chat/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/email/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/files/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/meetings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/new/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/agents/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/calendar/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/help/email-setup/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/home/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/issues/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/runtimes/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/settings/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/[traceId]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/threads/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/w/[slug]/unread/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(app)/workspaces/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/(auth)/sign-in/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/[id]/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/app/templates/page_client-reference-manifest.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/0b5f_next_dist_esm_build_templates_app-route_08rz-qa.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/[turbopack]_runtime.js +8 -7
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0ibtxgc._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[root-of-the-server]__0mexljd._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/[turbopack]_runtime.js +8 -7
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0.foxln._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_038.hft._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0d0a35l._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0fq1zoa._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0grgpqw._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0h5jww9._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0ufmel3._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0vhi1.k._.js +3 -0
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0yeokgf._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_studio_new_client_tsx_0zandi2._.js +4 -4
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_home_page_tsx_0lkx78f._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_app_(app)_w_[slug]_settings_page_tsx_0fdcupy._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_components_workspace-shell_tsx_0479plk._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/src_web_src_lib_templates_index_ts_13n9_2e._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +18 -18
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +215 -197
- package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +2 -2
- package/dist/index.js +14 -12
- package/package.json +5 -2
- package/bundled/web/.open-next/assets/_next/static/chunks/07xq7yw.r_ik6.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/086ly6x4sipjy.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0hk6-z1a4kq.1.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0iwzwcvjl~190.js +0 -3
- package/bundled/web/.open-next/assets/_next/static/chunks/0lxa14d_o098o.js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0nykvgip8dwr..js +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0py48kb~gy1yv.css +0 -1
- package/bundled/web/.open-next/assets/_next/static/chunks/0rtp9qz2346v9.js +0 -3
- package/bundled/web/.open-next/assets/_next/static/chunks/0~wu41ykjx3ud.js +0 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_08.z.g0._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_08wm2-0._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0aao.99._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0e2t1n5._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0lz_8zr._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_0pp~l23._.js +0 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/ssr/_13_029z._.js +0 -3
- /package/bundled/web/.open-next/assets/_next/static/{36j5LIYm2caTV9Ksu2QBr → YGJyWNUCWhOqpFg-fDYKo}/_buildManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{36j5LIYm2caTV9Ksu2QBr → YGJyWNUCWhOqpFg-fDYKo}/_clientMiddlewareManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{36j5LIYm2caTV9Ksu2QBr → YGJyWNUCWhOqpFg-fDYKo}/_ssgManifest.js +0 -0
- /package/bundled/web/.open-next/cache/{36j5LIYm2caTV9Ksu2QBr → YGJyWNUCWhOqpFg-fDYKo}/robots.txt.cache +0 -0
|
@@ -1268,11 +1268,11 @@ var NEXT_DIR = path.join(__dirname, ".next");
|
|
|
1268
1268
|
var OPEN_NEXT_DIR = path.join(__dirname, ".open-next");
|
|
1269
1269
|
debug({ NEXT_DIR, OPEN_NEXT_DIR });
|
|
1270
1270
|
var NextConfig = { "env": {}, "webpack": null, "typescript": { "ignoreBuildErrors": false }, "typedRoutes": false, "distDir": ".next", "cleanDistDir": true, "assetPrefix": "", "cacheMaxMemorySize": 52428800, "configOrigin": "next.config.ts", "useFileSystemPublicRoutes": true, "generateEtags": true, "pageExtensions": ["tsx", "ts", "jsx", "js"], "poweredByHeader": true, "compress": true, "images": { "deviceSizes": [640, 750, 828, 1080, 1200, 1920, 2048, 3840], "imageSizes": [32, 48, 64, 96, 128, 256, 384], "path": "/_next/image", "loader": "default", "loaderFile": "", "domains": [], "disableStaticImages": false, "minimumCacheTTL": 14400, "formats": ["image/webp"], "maximumRedirects": 3, "maximumResponseBody": 5e7, "dangerouslyAllowLocalIP": false, "dangerouslyAllowSVG": false, "contentSecurityPolicy": "script-src 'none'; frame-src 'none'; sandbox;", "contentDispositionType": "attachment", "localPatterns": [{ "pathname": "**", "search": "" }], "remotePatterns": [], "qualities": [75], "unoptimized": false, "customCacheHandler": false }, "devIndicators": { "position": "bottom-left" }, "onDemandEntries": { "maxInactiveAge": 6e4, "pagesBufferLength": 5 }, "basePath": "", "sassOptions": {}, "trailingSlash": false, "i18n": null, "productionBrowserSourceMaps": false, "excludeDefaultMomentLocales": true, "reactProductionProfiling": false, "reactStrictMode": null, "reactMaxHeadersLength": 6e3, "httpAgentOptions": { "keepAlive": true }, "logging": { "serverFunctions": true, "browserToTerminal": "warn" }, "compiler": {}, "expireTime": 31536e3, "staticPageGenerationTimeout": 60, "output": "standalone", "modularizeImports": { "@mui/icons-material": { "transform": "@mui/icons-material/{{member}}" }, "lodash": { "transform": "lodash/{{member}}" } }, "outputFileTracingRoot": "/Users/gener/Desktop/alookai/alook", "cacheComponents": false, "cacheLife": { "default": { "stale": 300, "revalidate": 900, "expire": 4294967294 }, "seconds": { "stale": 30, "revalidate": 1, "expire": 60 }, "minutes": { "stale": 300, "revalidate": 60, "expire": 3600 }, "hours": { "stale": 300, "revalidate": 3600, "expire": 86400 }, "days": { "stale": 300, "revalidate": 86400, "expire": 604800 }, "weeks": { "stale": 300, "revalidate": 604800, "expire": 2592e3 }, "max": { "stale": 300, "revalidate": 2592e3, "expire": 31536e3 } }, "cacheHandlers": {}, "experimental": { "appNewScrollHandler": false, "useSkewCookie": false, "cssChunking": true, "multiZoneDraftMode": false, "appNavFailHandling": false, "prerenderEarlyExit": true, "serverMinification": true, "linkNoTouchStart": false, "caseSensitiveRoutes": false, "cachedNavigations": false, "partialFallbacks": false, "dynamicOnHover": false, "varyParams": false, "prefetchInlining": false, "preloadEntriesOnStart": true, "clientRouterFilter": true, "clientRouterFilterRedirects": false, "fetchCacheKeyPrefix": "", "proxyPrefetch": "flexible", "optimisticClientCache": true, "manualClientBasePath": false, "cpus": 13, "memoryBasedWorkersCount": false, "imgOptConcurrency": null, "imgOptTimeoutInSeconds": 7, "imgOptMaxInputPixels": 268402689, "imgOptSequentialRead": null, "imgOptSkipMetadata": null, "isrFlushToDisk": true, "workerThreads": false, "optimizeCss": false, "nextScriptWorkers": false, "scrollRestoration": false, "externalDir": false, "disableOptimizedLoading": false, "gzipSize": true, "craCompat": false, "esmExternals": true, "fullySpecified": false, "swcTraceProfiling": false, "forceSwcTransforms": false, "largePageDataBytes": 128e3, "typedEnv": false, "parallelServerCompiles": false, "parallelServerBuildTraces": false, "ppr": false, "authInterrupts": false, "webpackMemoryOptimizations": false, "optimizeServerReact": true, "strictRouteTypes": false, "viewTransition": false, "removeUncaughtErrorAndRejectionListeners": false, "validateRSCRequestHeaders": false, "staleTimes": { "dynamic": 0, "static": 300 }, "reactDebugChannel": true, "serverComponentsHmrCache": true, "staticGenerationMaxConcurrency": 8, "staticGenerationMinPagesPerWorker": 25, "transitionIndicator": false, "gestureTransition": false, "inlineCss": false, "useCache": false, "globalNotFound": false, "browserDebugInfoInTerminal": "warn", "lockDistDir": true, "proxyClientMaxBodySize": 10485760, "hideLogsAfterAbort": false, "mcpServer": true, "turbopackFileSystemCacheForDev": true, "turbopackFileSystemCacheForBuild": false, "turbopackInferModuleSideEffects": true, "turbopackPluginRuntimeStrategy": "childProcesses", "optimizePackageImports": ["lucide-react", "date-fns", "lodash-es", "ramda", "antd", "react-bootstrap", "ahooks", "@ant-design/icons", "@headlessui/react", "@headlessui-float/react", "@heroicons/react/20/solid", "@heroicons/react/24/solid", "@heroicons/react/24/outline", "@visx/visx", "@tremor/react", "rxjs", "@mui/material", "@mui/icons-material", "recharts", "react-use", "effect", "@effect/schema", "@effect/platform", "@effect/platform-node", "@effect/platform-browser", "@effect/platform-bun", "@effect/sql", "@effect/sql-mssql", "@effect/sql-mysql2", "@effect/sql-pg", "@effect/sql-sqlite-node", "@effect/sql-sqlite-bun", "@effect/sql-sqlite-wasm", "@effect/sql-sqlite-react-native", "@effect/rpc", "@effect/rpc-http", "@effect/typeclass", "@effect/experimental", "@effect/opentelemetry", "@material-ui/core", "@material-ui/icons", "@tabler/icons-react", "mui-core", "react-icons/ai", "react-icons/bi", "react-icons/bs", "react-icons/cg", "react-icons/ci", "react-icons/di", "react-icons/fa", "react-icons/fa6", "react-icons/fc", "react-icons/fi", "react-icons/gi", "react-icons/go", "react-icons/gr", "react-icons/hi", "react-icons/hi2", "react-icons/im", "react-icons/io", "react-icons/io5", "react-icons/lia", "react-icons/lib", "react-icons/lu", "react-icons/md", "react-icons/pi", "react-icons/ri", "react-icons/rx", "react-icons/si", "react-icons/sl", "react-icons/tb", "react-icons/tfi", "react-icons/ti", "react-icons/vsc", "react-icons/wi"], "trustHostHeader": false, "isExperimentalCompile": false }, "htmlLimitedBots": "[\\w-]+-Google|Google-[\\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight", "bundlePagesRouterDependencies": false, "configFileName": "next.config.ts", "turbopack": { "root": "/Users/gener/Desktop/alookai/alook" }, "distDirRoot": ".next" };
|
|
1271
|
-
var BuildId = "
|
|
1271
|
+
var BuildId = "YGJyWNUCWhOqpFg-fDYKo";
|
|
1272
1272
|
var HtmlPages = ["/404", "/500"];
|
|
1273
1273
|
var RoutesManifest = { "basePath": "", "rewrites": { "beforeFiles": [], "afterFiles": [], "fallback": [] }, "redirects": [{ "source": "/:path+/", "destination": "/:path+", "internal": true, "priority": true, "statusCode": 308, "regex": "^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$" }], "routes": { "static": [{ "page": "/", "regex": "^/(?:/)?$", "routeKeys": {}, "namedRegex": "^/(?:/)?$" }, { "page": "/_global-error", "regex": "^/_global\\-error(?:/)?$", "routeKeys": {}, "namedRegex": "^/_global\\-error(?:/)?$" }, { "page": "/_not-found", "regex": "^/_not\\-found(?:/)?$", "routeKeys": {}, "namedRegex": "^/_not\\-found(?:/)?$" }, { "page": "/api/agent-links", "regex": "^/api/agent\\-links(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agent\\-links(?:/)?$" }, { "page": "/api/agents", "regex": "^/api/agents(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents(?:/)?$" }, { "page": "/api/agents/active-task-counts", "regex": "^/api/agents/active\\-task\\-counts(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/active\\-task\\-counts(?:/)?$" }, { "page": "/api/agents/active-tasks", "regex": "^/api/agents/active\\-tasks(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/active\\-tasks(?:/)?$" }, { "page": "/api/agents/pins", "regex": "^/api/agents/pins(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/pins(?:/)?$" }, { "page": "/api/agents/pins/reorder", "regex": "^/api/agents/pins/reorder(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/pins/reorder(?:/)?$" }, { "page": "/api/agents/sidebar/reorder", "regex": "^/api/agents/sidebar/reorder(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/agents/sidebar/reorder(?:/)?$" }, { "page": "/api/artifacts", "regex": "^/api/artifacts(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/artifacts(?:/)?$" }, { "page": "/api/artifacts/upload", "regex": "^/api/artifacts/upload(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/artifacts/upload(?:/)?$" }, { "page": "/api/calendar", "regex": "^/api/calendar(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/calendar(?:/)?$" }, { "page": "/api/channels", "regex": "^/api/channels(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/channels(?:/)?$" }, { "page": "/api/cli/latest-version", "regex": "^/api/cli/latest\\-version(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/cli/latest\\-version(?:/)?$" }, { "page": "/api/config/min-version", "regex": "^/api/config/min\\-version(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/config/min\\-version(?:/)?$" }, { "page": "/api/config/model-options", "regex": "^/api/config/model\\-options(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/config/model\\-options(?:/)?$" }, { "page": "/api/conversations", "regex": "^/api/conversations(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/conversations(?:/)?$" }, { "page": "/api/daemon/deregister", "regex": "^/api/daemon/deregister(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/deregister(?:/)?$" }, { "page": "/api/daemon/register", "regex": "^/api/daemon/register(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/register(?:/)?$" }, { "page": "/api/daemon/tasks/poll", "regex": "^/api/daemon/tasks/poll(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/tasks/poll(?:/)?$" }, { "page": "/api/daemon/workspace/report", "regex": "^/api/daemon/workspace/report(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daemon/workspace/report(?:/)?$" }, { "page": "/api/daily-quote", "regex": "^/api/daily\\-quote(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/daily\\-quote(?:/)?$" }, { "page": "/api/email", "regex": "^/api/email(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email(?:/)?$" }, { "page": "/api/email/notify", "regex": "^/api/email/notify(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email/notify(?:/)?$" }, { "page": "/api/email/send", "regex": "^/api/email/send(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email/send(?:/)?$" }, { "page": "/api/email/upload", "regex": "^/api/email/upload(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/email/upload(?:/)?$" }, { "page": "/api/health", "regex": "^/api/health(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/health(?:/)?$" }, { "page": "/api/inbox", "regex": "^/api/inbox(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox(?:/)?$" }, { "page": "/api/inbox/count", "regex": "^/api/inbox/count(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox/count(?:/)?$" }, { "page": "/api/inbox/read", "regex": "^/api/inbox/read(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox/read(?:/)?$" }, { "page": "/api/inbox/read-all", "regex": "^/api/inbox/read\\-all(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/inbox/read\\-all(?:/)?$" }, { "page": "/api/issues", "regex": "^/api/issues(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/issues(?:/)?$" }, { "page": "/api/machine-tokens", "regex": "^/api/machine\\-tokens(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/machine\\-tokens(?:/)?$" }, { "page": "/api/machine-tokens/activate", "regex": "^/api/machine\\-tokens/activate(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/machine\\-tokens/activate(?:/)?$" }, { "page": "/api/me", "regex": "^/api/me(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/me(?:/)?$" }, { "page": "/api/meeting/callback", "regex": "^/api/meeting/callback(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/meeting/callback(?:/)?$" }, { "page": "/api/members/me", "regex": "^/api/members/me(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/members/me(?:/)?$" }, { "page": "/api/runtimes", "regex": "^/api/runtimes(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/runtimes(?:/)?$" }, { "page": "/api/runtimes/machine", "regex": "^/api/runtimes/machine(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/runtimes/machine(?:/)?$" }, { "page": "/api/studios", "regex": "^/api/studios(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/studios(?:/)?$" }, { "page": "/api/studios/check-handles", "regex": "^/api/studios/check\\-handles(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/studios/check\\-handles(?:/)?$" }, { "page": "/api/studios/check-name", "regex": "^/api/studios/check\\-name(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/studios/check\\-name(?:/)?$" }, { "page": "/api/tasks/step-counts", "regex": "^/api/tasks/step\\-counts(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/tasks/step\\-counts(?:/)?$" }, { "page": "/api/traces", "regex": "^/api/traces(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/traces(?:/)?$" }, { "page": "/api/workspaces", "regex": "^/api/workspaces(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/workspaces(?:/)?$" }, { "page": "/api/ws/token", "regex": "^/api/ws/token(?:/)?$", "routeKeys": {}, "namedRegex": "^/api/ws/token(?:/)?$" }, { "page": "/og", "regex": "^/og(?:/)?$", "routeKeys": {}, "namedRegex": "^/og(?:/)?$" }, { "page": "/robots.txt", "regex": "^/robots\\.txt(?:/)?$", "routeKeys": {}, "namedRegex": "^/robots\\.txt(?:/)?$" }, { "page": "/sign-in", "regex": "^/sign\\-in(?:/)?$", "routeKeys": {}, "namedRegex": "^/sign\\-in(?:/)?$" }, { "page": "/sitemap.xml", "regex": "^/sitemap\\.xml(?:/)?$", "routeKeys": {}, "namedRegex": "^/sitemap\\.xml(?:/)?$" }, { "page": "/studio/new", "regex": "^/studio/new(?:/)?$", "routeKeys": {}, "namedRegex": "^/studio/new(?:/)?$" }, { "page": "/templates", "regex": "^/templates(?:/)?$", "routeKeys": {}, "namedRegex": "^/templates(?:/)?$" }, { "page": "/workspaces", "regex": "^/workspaces(?:/)?$", "routeKeys": {}, "namedRegex": "^/workspaces(?:/)?$" }], "dynamic": [{ "page": "/api/agent-links/[id]", "regex": "^/api/agent\\-links/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agent\\-links/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]", "regex": "^/api/agents/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/access", "regex": "^/api/agents/([^/]+?)/access(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/access(?:/)?$" }, { "page": "/api/agents/[id]/access/[userId]", "regex": "^/api/agents/([^/]+?)/access/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPuserId": "nxtPuserId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/access/(?<nxtPuserId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/active-tasks", "regex": "^/api/agents/([^/]+?)/active\\-tasks(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/active\\-tasks(?:/)?$" }, { "page": "/api/agents/[id]/activity", "regex": "^/api/agents/([^/]+?)/activity(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/activity(?:/)?$" }, { "page": "/api/agents/[id]/chat-init", "regex": "^/api/agents/([^/]+?)/chat\\-init(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/chat\\-init(?:/)?$" }, { "page": "/api/agents/[id]/conversation", "regex": "^/api/agents/([^/]+?)/conversation(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/conversation(?:/)?$" }, { "page": "/api/agents/[id]/conversations", "regex": "^/api/agents/([^/]+?)/conversations(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/conversations(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts", "regex": "^/api/agents/([^/]+?)/email\\-accounts(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts/[accountId]", "regex": "^/api/agents/([^/]+?)/email\\-accounts/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPaccountId": "nxtPaccountId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts/(?<nxtPaccountId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts/[accountId]/sync", "regex": "^/api/agents/([^/]+?)/email\\-accounts/([^/]+?)/sync(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPaccountId": "nxtPaccountId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts/(?<nxtPaccountId>[^/]+?)/sync(?:/)?$" }, { "page": "/api/agents/[id]/email-accounts/[accountId]/test", "regex": "^/api/agents/([^/]+?)/email\\-accounts/([^/]+?)/test(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPaccountId": "nxtPaccountId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/email\\-accounts/(?<nxtPaccountId>[^/]+?)/test(?:/)?$" }, { "page": "/api/agents/[id]/meetings", "regex": "^/api/agents/([^/]+?)/meetings(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings(?:/)?$" }, { "page": "/api/agents/[id]/meetings/[meetingId]", "regex": "^/api/agents/([^/]+?)/meetings/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmeetingId": "nxtPmeetingId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings/(?<nxtPmeetingId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/meetings/[meetingId]/approve", "regex": "^/api/agents/([^/]+?)/meetings/([^/]+?)/approve(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmeetingId": "nxtPmeetingId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings/(?<nxtPmeetingId>[^/]+?)/approve(?:/)?$" }, { "page": "/api/agents/[id]/meetings/[meetingId]/stop", "regex": "^/api/agents/([^/]+?)/meetings/([^/]+?)/stop(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmeetingId": "nxtPmeetingId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/meetings/(?<nxtPmeetingId>[^/]+?)/stop(?:/)?$" }, { "page": "/api/agents/[id]/pin", "regex": "^/api/agents/([^/]+?)/pin(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/pin(?:/)?$" }, { "page": "/api/agents/[id]/whitelist", "regex": "^/api/agents/([^/]+?)/whitelist(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/whitelist(?:/)?$" }, { "page": "/api/agents/[id]/whitelist/[whitelistId]", "regex": "^/api/agents/([^/]+?)/whitelist/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPwhitelistId": "nxtPwhitelistId" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/whitelist/(?<nxtPwhitelistId>[^/]+?)(?:/)?$" }, { "page": "/api/agents/[id]/workspace/browse", "regex": "^/api/agents/([^/]+?)/workspace/browse(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/agents/(?<nxtPid>[^/]+?)/workspace/browse(?:/)?$" }, { "page": "/api/artifacts/[id]", "regex": "^/api/artifacts/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/artifacts/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/artifacts/[id]/content", "regex": "^/api/artifacts/([^/]+?)/content(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/artifacts/(?<nxtPid>[^/]+?)/content(?:/)?$" }, { "page": "/api/auth/[...all]", "regex": "^/api/auth/(.+?)(?:/)?$", "routeKeys": { "nxtPall": "nxtPall" }, "namedRegex": "^/api/auth/(?<nxtPall>.+?)(?:/)?$" }, { "page": "/api/calendar/[id]", "regex": "^/api/calendar/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/calendar/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/channels/[id]", "regex": "^/api/channels/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/channels/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/conversations/[id]", "regex": "^/api/conversations/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/conversations/[id]/active-task", "regex": "^/api/conversations/([^/]+?)/active\\-task(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/active\\-task(?:/)?$" }, { "page": "/api/conversations/[id]/buffered-messages", "regex": "^/api/conversations/([^/]+?)/buffered\\-messages(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/buffered\\-messages(?:/)?$" }, { "page": "/api/conversations/[id]/buffered-messages/[messageId]", "regex": "^/api/conversations/([^/]+?)/buffered\\-messages/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmessageId": "nxtPmessageId" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/buffered\\-messages/(?<nxtPmessageId>[^/]+?)(?:/)?$" }, { "page": "/api/conversations/[id]/messages", "regex": "^/api/conversations/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/conversations/(?<nxtPid>[^/]+?)/messages(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/complete", "regex": "^/api/daemon/tasks/([^/]+?)/complete(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/complete(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/fail", "regex": "^/api/daemon/tasks/([^/]+?)/fail(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/fail(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/messages", "regex": "^/api/daemon/tasks/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/messages(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/progress", "regex": "^/api/daemon/tasks/([^/]+?)/progress(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/progress(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/start", "regex": "^/api/daemon/tasks/([^/]+?)/start(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/start(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/status", "regex": "^/api/daemon/tasks/([^/]+?)/status(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/status(?:/)?$" }, { "page": "/api/daemon/tasks/[taskId]/supersede", "regex": "^/api/daemon/tasks/([^/]+?)/supersede(?:/)?$", "routeKeys": { "nxtPtaskId": "nxtPtaskId" }, "namedRegex": "^/api/daemon/tasks/(?<nxtPtaskId>[^/]+?)/supersede(?:/)?$" }, { "page": "/api/email/[id]", "regex": "^/api/email/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/email/[id]/attachment/[index]", "regex": "^/api/email/([^/]+?)/attachment/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPindex": "nxtPindex" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/attachment/(?<nxtPindex>[^/]+?)(?:/)?$" }, { "page": "/api/email/[id]/body", "regex": "^/api/email/([^/]+?)/body(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/body(?:/)?$" }, { "page": "/api/email/[id]/raw", "regex": "^/api/email/([^/]+?)/raw(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/raw(?:/)?$" }, { "page": "/api/email/[id]/thread", "regex": "^/api/email/([^/]+?)/thread(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/email/(?<nxtPid>[^/]+?)/thread(?:/)?$" }, { "page": "/api/invite/[token]", "regex": "^/api/invite/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/api/invite/(?<nxtPtoken>[^/]+?)(?:/)?$" }, { "page": "/api/issues/[id]", "regex": "^/api/issues/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/issues/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/issues/[id]/comments", "regex": "^/api/issues/([^/]+?)/comments(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/issues/(?<nxtPid>[^/]+?)/comments(?:/)?$" }, { "page": "/api/machine-tokens/[id]", "regex": "^/api/machine\\-tokens/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/machine\\-tokens/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/runtimes/[runtimeId]/rescan", "regex": "^/api/runtimes/([^/]+?)/rescan(?:/)?$", "routeKeys": { "nxtPruntimeId": "nxtPruntimeId" }, "namedRegex": "^/api/runtimes/(?<nxtPruntimeId>[^/]+?)/rescan(?:/)?$" }, { "page": "/api/runtimes/[runtimeId]/update", "regex": "^/api/runtimes/([^/]+?)/update(?:/)?$", "routeKeys": { "nxtPruntimeId": "nxtPruntimeId" }, "namedRegex": "^/api/runtimes/(?<nxtPruntimeId>[^/]+?)/update(?:/)?$" }, { "page": "/api/tasks/[id]", "regex": "^/api/tasks/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/tasks/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/tasks/[id]/messages", "regex": "^/api/tasks/([^/]+?)/messages(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/tasks/(?<nxtPid>[^/]+?)/messages(?:/)?$" }, { "page": "/api/tasks/[id]/retry", "regex": "^/api/tasks/([^/]+?)/retry(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/tasks/(?<nxtPid>[^/]+?)/retry(?:/)?$" }, { "page": "/api/traces/[traceId]", "regex": "^/api/traces/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtraceId": "nxtPtraceId" }, "namedRegex": "^/api/traces/(?<nxtPtraceId>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]", "regex": "^/api/workspaces/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]/invites", "regex": "^/api/workspaces/([^/]+?)/invites(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/invites(?:/)?$" }, { "page": "/api/workspaces/[id]/invites/[inviteId]", "regex": "^/api/workspaces/([^/]+?)/invites/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPinviteId": "nxtPinviteId" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/invites/(?<nxtPinviteId>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]/members", "regex": "^/api/workspaces/([^/]+?)/members(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/members(?:/)?$" }, { "page": "/api/workspaces/[id]/members/[memberId]", "regex": "^/api/workspaces/([^/]+?)/members/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid", "nxtPmemberId": "nxtPmemberId" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/members/(?<nxtPmemberId>[^/]+?)(?:/)?$" }, { "page": "/api/workspaces/[id]/overview", "regex": "^/api/workspaces/([^/]+?)/overview(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/api/workspaces/(?<nxtPid>[^/]+?)/overview(?:/)?$" }, { "page": "/invite/[token]", "regex": "^/invite/([^/]+?)(?:/)?$", "routeKeys": { "nxtPtoken": "nxtPtoken" }, "namedRegex": "^/invite/(?<nxtPtoken>[^/]+?)(?:/)?$" }, { "page": "/templates/[id]", "regex": "^/templates/([^/]+?)(?:/)?$", "routeKeys": { "nxtPid": "nxtPid" }, "namedRegex": "^/templates/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/agents", "regex": "^/w/([^/]+?)/agents(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents(?:/)?$" }, { "page": "/w/[slug]/agents/new", "regex": "^/w/([^/]+?)/agents/new(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/new(?:/)?$" }, { "page": "/w/[slug]/agents/[id]", "regex": "^/w/([^/]+?)/agents/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/activity", "regex": "^/w/([^/]+?)/agents/([^/]+?)/activity(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/activity(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/chat", "regex": "^/w/([^/]+?)/agents/([^/]+?)/chat(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/chat(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/chat/[convId]", "regex": "^/w/([^/]+?)/agents/([^/]+?)/chat/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid", "nxtPconvId": "nxtPconvId" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/chat/(?<nxtPconvId>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/email", "regex": "^/w/([^/]+?)/agents/([^/]+?)/email(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/email(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/files", "regex": "^/w/([^/]+?)/agents/([^/]+?)/files(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/files(?:/)?$" }, { "page": "/w/[slug]/agents/[id]/meetings", "regex": "^/w/([^/]+?)/agents/([^/]+?)/meetings(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPid": "nxtPid" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/agents/(?<nxtPid>[^/]+?)/meetings(?:/)?$" }, { "page": "/w/[slug]/calendar", "regex": "^/w/([^/]+?)/calendar(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/calendar(?:/)?$" }, { "page": "/w/[slug]/help/email-setup", "regex": "^/w/([^/]+?)/help/email\\-setup(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/help/email\\-setup(?:/)?$" }, { "page": "/w/[slug]/home", "regex": "^/w/([^/]+?)/home(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/home(?:/)?$" }, { "page": "/w/[slug]/issues", "regex": "^/w/([^/]+?)/issues(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/issues(?:/)?$" }, { "page": "/w/[slug]/runtimes", "regex": "^/w/([^/]+?)/runtimes(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/runtimes(?:/)?$" }, { "page": "/w/[slug]/settings", "regex": "^/w/([^/]+?)/settings(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/settings(?:/)?$" }, { "page": "/w/[slug]/threads", "regex": "^/w/([^/]+?)/threads(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/threads(?:/)?$" }, { "page": "/w/[slug]/threads/[traceId]", "regex": "^/w/([^/]+?)/threads/([^/]+?)(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug", "nxtPtraceId": "nxtPtraceId" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/threads/(?<nxtPtraceId>[^/]+?)(?:/)?$" }, { "page": "/w/[slug]/unread", "regex": "^/w/([^/]+?)/unread(?:/)?$", "routeKeys": { "nxtPslug": "nxtPslug" }, "namedRegex": "^/w/(?<nxtPslug>[^/]+?)/unread(?:/)?$" }], "data": { "static": [], "dynamic": [] } }, "locales": [] };
|
|
1274
1274
|
var PrerenderManifest = { "version": 4, "routes": { "/_global-error": { "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/_global-error", "dataRoute": "/_global-error.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/_not-found": { "initialStatus": 404, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/_not-found", "dataRoute": "/_not-found.rsc", "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/robots.txt": { "initialHeaders": { "cache-control": "public, max-age=0, must-revalidate", "content-type": "text/plain", "x-next-cache-tags": "_N_T_/layout,_N_T_/robots.txt/layout,_N_T_/robots.txt/route,_N_T_/robots.txt" }, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/robots.txt", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] }, "/sitemap.xml": { "initialHeaders": { "cache-control": "public, max-age=0, must-revalidate", "content-type": "application/xml", "x-next-cache-tags": "_N_T_/layout,_N_T_/sitemap.xml/layout,_N_T_/sitemap.xml/route,_N_T_/sitemap.xml" }, "experimentalBypassFor": [{ "type": "header", "key": "next-action" }, { "type": "header", "key": "content-type", "value": "multipart/form-data;.*" }], "initialRevalidateSeconds": false, "srcRoute": "/sitemap.xml", "dataRoute": null, "allowHeader": ["host", "x-matched-path", "x-prerender-revalidate", "x-prerender-revalidate-if-generated", "x-next-revalidated-tags", "x-next-revalidate-tag-token"] } }, "dynamicRoutes": {}, "notFoundRoutes": [], "preview": { "previewModeId": "b962cd5decf6d124a463dd43140b8310", "previewModeSigningKey": "f9de11b97a6c1b4ca2716559286420a18c71c5e118840b79af542e9c00170552", "previewModeEncryptionKey": "53de9b225a6b182096dee24e8e3423765c5e15a16bae007be14f56fa668c0f3a" } };
|
|
1275
|
-
var MiddlewareManifest = { "version": 3, "middleware": { "/": { "files": ["server/edge/chunks/_0hofbt5._.js", "server/edge/chunks/058b_next_dist_esm_build_templates_edge-wrapper_05qoh-5.js", "server/edge/chunks/node_modules__pnpm_0gau20u._.js", "server/edge/chunks/[root-of-the-server]__0y.93rt._.js", "server/edge/chunks/0n4c_@better-auth_core_dist_00mbgc-._.js", "server/edge/chunks/[root-of-the-server]__0oytv_q._.js", "server/edge/chunks/0kwo_kysely_dist_esm_0~ppdkt._.js", "server/edge/chunks/0m4__@better-auth_kysely-adapter_dist_index_mjs_054cb.2._.js", "server/edge/chunks/058b_next_dist_esm_build_templates_edge-wrapper_10t841_.js"], "name": "middleware", "page": "/", "entrypoint": "server/edge/chunks/058b_next_dist_esm_build_templates_edge-wrapper_10t841_.js", "matchers": [{ "regexp": "^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next|favicon\\.ico|.*\\..*).*))(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$", "originalSource": "/((?!_next|favicon\\.ico|.*\\..*).*)" }], "wasm": [], "assets": [], "env": { "__NEXT_BUILD_ID": "
|
|
1275
|
+
var MiddlewareManifest = { "version": 3, "middleware": { "/": { "files": ["server/edge/chunks/_0hofbt5._.js", "server/edge/chunks/058b_next_dist_esm_build_templates_edge-wrapper_05qoh-5.js", "server/edge/chunks/node_modules__pnpm_0gau20u._.js", "server/edge/chunks/[root-of-the-server]__0y.93rt._.js", "server/edge/chunks/0n4c_@better-auth_core_dist_00mbgc-._.js", "server/edge/chunks/[root-of-the-server]__0oytv_q._.js", "server/edge/chunks/0kwo_kysely_dist_esm_0~ppdkt._.js", "server/edge/chunks/0m4__@better-auth_kysely-adapter_dist_index_mjs_054cb.2._.js", "server/edge/chunks/058b_next_dist_esm_build_templates_edge-wrapper_10t841_.js"], "name": "middleware", "page": "/", "entrypoint": "server/edge/chunks/058b_next_dist_esm_build_templates_edge-wrapper_10t841_.js", "matchers": [{ "regexp": "^(?:\\/(_next\\/data\\/[^/]{1,}))?(?:\\/((?!_next|favicon\\.ico|.*\\..*).*))(\\.json|\\.rsc|\\.segments\\/.+\\.segment\\.rsc)?[\\/#\\?]?$", "originalSource": "/((?!_next|favicon\\.ico|.*\\..*).*)" }], "wasm": [], "assets": [], "env": { "__NEXT_BUILD_ID": "YGJyWNUCWhOqpFg-fDYKo", "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "U7TQ0gdBcrB3sWfvD3feBIb8m9hXxGuJ0Z/EqXbbr0U=", "__NEXT_PREVIEW_MODE_ID": "b962cd5decf6d124a463dd43140b8310", "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "53de9b225a6b182096dee24e8e3423765c5e15a16bae007be14f56fa668c0f3a", "__NEXT_PREVIEW_MODE_SIGNING_KEY": "f9de11b97a6c1b4ca2716559286420a18c71c5e118840b79af542e9c00170552" } } }, "sortedMiddleware": ["/"], "functions": {} };
|
|
1276
1276
|
var AppPathRoutesManifest = { "/(app)/invite/[token]/page": "/invite/[token]", "/(app)/studio/new/page": "/studio/new", "/(app)/w/[slug]/agents/[id]/activity/page": "/w/[slug]/agents/[id]/activity", "/(app)/w/[slug]/agents/[id]/chat/[convId]/page": "/w/[slug]/agents/[id]/chat/[convId]", "/(app)/w/[slug]/agents/[id]/chat/page": "/w/[slug]/agents/[id]/chat", "/(app)/w/[slug]/agents/[id]/email/page": "/w/[slug]/agents/[id]/email", "/(app)/w/[slug]/agents/[id]/files/page": "/w/[slug]/agents/[id]/files", "/(app)/w/[slug]/agents/[id]/meetings/page": "/w/[slug]/agents/[id]/meetings", "/(app)/w/[slug]/agents/[id]/page": "/w/[slug]/agents/[id]", "/(app)/w/[slug]/agents/new/page": "/w/[slug]/agents/new", "/(app)/w/[slug]/agents/page": "/w/[slug]/agents", "/(app)/w/[slug]/calendar/page": "/w/[slug]/calendar", "/(app)/w/[slug]/help/email-setup/page": "/w/[slug]/help/email-setup", "/(app)/w/[slug]/home/page": "/w/[slug]/home", "/(app)/w/[slug]/issues/page": "/w/[slug]/issues", "/(app)/w/[slug]/runtimes/page": "/w/[slug]/runtimes", "/(app)/w/[slug]/settings/page": "/w/[slug]/settings", "/(app)/w/[slug]/threads/[traceId]/page": "/w/[slug]/threads/[traceId]", "/(app)/w/[slug]/threads/page": "/w/[slug]/threads", "/(app)/w/[slug]/unread/page": "/w/[slug]/unread", "/(app)/workspaces/page": "/workspaces", "/(auth)/sign-in/page": "/sign-in", "/_global-error/page": "/_global-error", "/_not-found/page": "/_not-found", "/api/agent-links/[id]/route": "/api/agent-links/[id]", "/api/agent-links/route": "/api/agent-links", "/api/agents/[id]/access/[userId]/route": "/api/agents/[id]/access/[userId]", "/api/agents/[id]/access/route": "/api/agents/[id]/access", "/api/agents/[id]/active-tasks/route": "/api/agents/[id]/active-tasks", "/api/agents/[id]/activity/route": "/api/agents/[id]/activity", "/api/agents/[id]/chat-init/route": "/api/agents/[id]/chat-init", "/api/agents/[id]/conversation/route": "/api/agents/[id]/conversation", "/api/agents/[id]/conversations/route": "/api/agents/[id]/conversations", "/api/agents/[id]/email-accounts/[accountId]/route": "/api/agents/[id]/email-accounts/[accountId]", "/api/agents/[id]/email-accounts/[accountId]/sync/route": "/api/agents/[id]/email-accounts/[accountId]/sync", "/api/agents/[id]/email-accounts/[accountId]/test/route": "/api/agents/[id]/email-accounts/[accountId]/test", "/api/agents/[id]/email-accounts/route": "/api/agents/[id]/email-accounts", "/api/agents/[id]/meetings/[meetingId]/approve/route": "/api/agents/[id]/meetings/[meetingId]/approve", "/api/agents/[id]/meetings/[meetingId]/route": "/api/agents/[id]/meetings/[meetingId]", "/api/agents/[id]/meetings/[meetingId]/stop/route": "/api/agents/[id]/meetings/[meetingId]/stop", "/api/agents/[id]/meetings/route": "/api/agents/[id]/meetings", "/api/agents/[id]/pin/route": "/api/agents/[id]/pin", "/api/agents/[id]/route": "/api/agents/[id]", "/api/agents/[id]/whitelist/[whitelistId]/route": "/api/agents/[id]/whitelist/[whitelistId]", "/api/agents/[id]/whitelist/route": "/api/agents/[id]/whitelist", "/api/agents/[id]/workspace/browse/route": "/api/agents/[id]/workspace/browse", "/api/agents/active-task-counts/route": "/api/agents/active-task-counts", "/api/agents/active-tasks/route": "/api/agents/active-tasks", "/api/agents/pins/reorder/route": "/api/agents/pins/reorder", "/api/agents/pins/route": "/api/agents/pins", "/api/agents/route": "/api/agents", "/api/agents/sidebar/reorder/route": "/api/agents/sidebar/reorder", "/api/artifacts/[id]/content/route": "/api/artifacts/[id]/content", "/api/artifacts/[id]/route": "/api/artifacts/[id]", "/api/artifacts/route": "/api/artifacts", "/api/artifacts/upload/route": "/api/artifacts/upload", "/api/auth/[...all]/route": "/api/auth/[...all]", "/api/calendar/[id]/route": "/api/calendar/[id]", "/api/calendar/route": "/api/calendar", "/api/channels/[id]/route": "/api/channels/[id]", "/api/channels/route": "/api/channels", "/api/cli/latest-version/route": "/api/cli/latest-version", "/api/config/min-version/route": "/api/config/min-version", "/api/config/model-options/route": "/api/config/model-options", "/api/conversations/[id]/active-task/route": "/api/conversations/[id]/active-task", "/api/conversations/[id]/buffered-messages/[messageId]/route": "/api/conversations/[id]/buffered-messages/[messageId]", "/api/conversations/[id]/buffered-messages/route": "/api/conversations/[id]/buffered-messages", "/api/conversations/[id]/messages/route": "/api/conversations/[id]/messages", "/api/conversations/[id]/route": "/api/conversations/[id]", "/api/conversations/route": "/api/conversations", "/api/daemon/deregister/route": "/api/daemon/deregister", "/api/daemon/register/route": "/api/daemon/register", "/api/daemon/tasks/[taskId]/complete/route": "/api/daemon/tasks/[taskId]/complete", "/api/daemon/tasks/[taskId]/fail/route": "/api/daemon/tasks/[taskId]/fail", "/api/daemon/tasks/[taskId]/messages/route": "/api/daemon/tasks/[taskId]/messages", "/api/daemon/tasks/[taskId]/progress/route": "/api/daemon/tasks/[taskId]/progress", "/api/daemon/tasks/[taskId]/start/route": "/api/daemon/tasks/[taskId]/start", "/api/daemon/tasks/[taskId]/status/route": "/api/daemon/tasks/[taskId]/status", "/api/daemon/tasks/[taskId]/supersede/route": "/api/daemon/tasks/[taskId]/supersede", "/api/daemon/tasks/poll/route": "/api/daemon/tasks/poll", "/api/daemon/workspace/report/route": "/api/daemon/workspace/report", "/api/daily-quote/route": "/api/daily-quote", "/api/email/[id]/attachment/[index]/route": "/api/email/[id]/attachment/[index]", "/api/email/[id]/body/route": "/api/email/[id]/body", "/api/email/[id]/raw/route": "/api/email/[id]/raw", "/api/email/[id]/route": "/api/email/[id]", "/api/email/[id]/thread/route": "/api/email/[id]/thread", "/api/email/notify/route": "/api/email/notify", "/api/email/route": "/api/email", "/api/email/send/route": "/api/email/send", "/api/email/upload/route": "/api/email/upload", "/api/health/route": "/api/health", "/api/inbox/count/route": "/api/inbox/count", "/api/inbox/read-all/route": "/api/inbox/read-all", "/api/inbox/read/route": "/api/inbox/read", "/api/inbox/route": "/api/inbox", "/api/invite/[token]/route": "/api/invite/[token]", "/api/issues/[id]/comments/route": "/api/issues/[id]/comments", "/api/issues/[id]/route": "/api/issues/[id]", "/api/issues/route": "/api/issues", "/api/machine-tokens/[id]/route": "/api/machine-tokens/[id]", "/api/machine-tokens/activate/route": "/api/machine-tokens/activate", "/api/machine-tokens/route": "/api/machine-tokens", "/api/me/route": "/api/me", "/api/meeting/callback/route": "/api/meeting/callback", "/api/members/me/route": "/api/members/me", "/api/runtimes/[runtimeId]/rescan/route": "/api/runtimes/[runtimeId]/rescan", "/api/runtimes/[runtimeId]/update/route": "/api/runtimes/[runtimeId]/update", "/api/runtimes/machine/route": "/api/runtimes/machine", "/api/runtimes/route": "/api/runtimes", "/api/studios/check-handles/route": "/api/studios/check-handles", "/api/studios/check-name/route": "/api/studios/check-name", "/api/studios/route": "/api/studios", "/api/tasks/[id]/messages/route": "/api/tasks/[id]/messages", "/api/tasks/[id]/retry/route": "/api/tasks/[id]/retry", "/api/tasks/[id]/route": "/api/tasks/[id]", "/api/tasks/step-counts/route": "/api/tasks/step-counts", "/api/traces/[traceId]/route": "/api/traces/[traceId]", "/api/traces/route": "/api/traces", "/api/workspaces/[id]/invites/[inviteId]/route": "/api/workspaces/[id]/invites/[inviteId]", "/api/workspaces/[id]/invites/route": "/api/workspaces/[id]/invites", "/api/workspaces/[id]/members/[memberId]/route": "/api/workspaces/[id]/members/[memberId]", "/api/workspaces/[id]/members/route": "/api/workspaces/[id]/members", "/api/workspaces/[id]/overview/route": "/api/workspaces/[id]/overview", "/api/workspaces/[id]/route": "/api/workspaces/[id]", "/api/workspaces/route": "/api/workspaces", "/api/ws/token/route": "/api/ws/token", "/og/route": "/og", "/page": "/", "/robots.txt/route": "/robots.txt", "/sitemap.xml/route": "/sitemap.xml", "/templates/[id]/page": "/templates/[id]", "/templates/page": "/templates" };
|
|
1277
1277
|
var FunctionsConfigManifest = { "version": 1, "functions": {} };
|
|
1278
1278
|
var PagesManifest = { "/404": "pages/404.html", "/500": "pages/500.html" };
|
package/dist/index.js
CHANGED
|
@@ -179,10 +179,10 @@ function runMigrations() {
|
|
|
179
179
|
try {
|
|
180
180
|
execSync2("npx wrangler d1 migrations apply alook-app --local", {
|
|
181
181
|
cwd: webDir,
|
|
182
|
-
stdio: "inherit"
|
|
182
|
+
stdio: ["pipe", "inherit", "inherit"]
|
|
183
183
|
});
|
|
184
184
|
console.log("Migrations complete");
|
|
185
|
-
} catch
|
|
185
|
+
} catch {
|
|
186
186
|
console.error("Error: failed to run migrations");
|
|
187
187
|
process.exit(1);
|
|
188
188
|
}
|
|
@@ -17052,7 +17052,7 @@ async function registerUser(baseURL, email3) {
|
|
|
17052
17052
|
const password = DEV_PASSWORD;
|
|
17053
17053
|
let res = await fetch(`${baseURL}/api/auth/sign-up/email`, {
|
|
17054
17054
|
method: "POST",
|
|
17055
|
-
headers: { "Content-Type": "application/json" },
|
|
17055
|
+
headers: { "Content-Type": "application/json", Origin: baseURL },
|
|
17056
17056
|
body: JSON.stringify({ email: email3, password, name }),
|
|
17057
17057
|
redirect: "manual"
|
|
17058
17058
|
});
|
|
@@ -17061,7 +17061,7 @@ async function registerUser(baseURL, email3) {
|
|
|
17061
17061
|
if (text2.includes("already exists") || text2.includes("already registered") || text2.includes("User already")) {
|
|
17062
17062
|
res = await fetch(`${baseURL}/api/auth/sign-in/email`, {
|
|
17063
17063
|
method: "POST",
|
|
17064
|
-
headers: { "Content-Type": "application/json" },
|
|
17064
|
+
headers: { "Content-Type": "application/json", Origin: baseURL },
|
|
17065
17065
|
body: JSON.stringify({ email: email3, password }),
|
|
17066
17066
|
redirect: "manual"
|
|
17067
17067
|
});
|
|
@@ -17099,13 +17099,14 @@ async function createWorkspace(baseURL, cookie) {
|
|
|
17099
17099
|
method: "POST",
|
|
17100
17100
|
headers: {
|
|
17101
17101
|
"Content-Type": "application/json",
|
|
17102
|
+
Origin: baseURL,
|
|
17102
17103
|
Cookie: cookie
|
|
17103
17104
|
},
|
|
17104
17105
|
body: JSON.stringify({ name: "Personal", slug: "personal" })
|
|
17105
17106
|
});
|
|
17106
17107
|
if (!res.ok) {
|
|
17107
17108
|
const listRes = await fetch(`${baseURL}/api/workspaces`, {
|
|
17108
|
-
headers: { Cookie: cookie }
|
|
17109
|
+
headers: { Cookie: cookie, Origin: baseURL }
|
|
17109
17110
|
});
|
|
17110
17111
|
if (listRes.ok) {
|
|
17111
17112
|
const workspaces = await listRes.json();
|
|
@@ -17124,6 +17125,7 @@ async function createMachineToken(baseURL, cookie, workspaceId) {
|
|
|
17124
17125
|
method: "POST",
|
|
17125
17126
|
headers: {
|
|
17126
17127
|
"Content-Type": "application/json",
|
|
17128
|
+
Origin: baseURL,
|
|
17127
17129
|
Cookie: cookie
|
|
17128
17130
|
},
|
|
17129
17131
|
body: JSON.stringify({ name: "local-onboard" })
|
|
@@ -17139,7 +17141,7 @@ async function activateToken(baseURL, token, runtimes) {
|
|
|
17139
17141
|
const { hostname: hostname3 } = await import("os");
|
|
17140
17142
|
const res = await fetch(`${baseURL}/api/machine-tokens/activate`, {
|
|
17141
17143
|
method: "POST",
|
|
17142
|
-
headers: { "Content-Type": "application/json" },
|
|
17144
|
+
headers: { "Content-Type": "application/json", Origin: baseURL },
|
|
17143
17145
|
body: JSON.stringify({
|
|
17144
17146
|
token,
|
|
17145
17147
|
hostname: hostname3(),
|
|
@@ -17247,6 +17249,10 @@ function onboardCommand() {
|
|
|
17247
17249
|
}
|
|
17248
17250
|
console.log(` Found: ${runtimes.map((r) => r.type).join(", ")}
|
|
17249
17251
|
`);
|
|
17252
|
+
let email3;
|
|
17253
|
+
if (!opts.skipRegister) {
|
|
17254
|
+
email3 = await collectEmail();
|
|
17255
|
+
}
|
|
17250
17256
|
const devMode = !!process.env.ALOOK_PROJECT_ROOT;
|
|
17251
17257
|
if (devMode) {
|
|
17252
17258
|
const root = process.env.ALOOK_PROJECT_ROOT;
|
|
@@ -17254,7 +17260,7 @@ function onboardCommand() {
|
|
|
17254
17260
|
try {
|
|
17255
17261
|
execSync4("pnpm predev", { cwd: root, stdio: "inherit" });
|
|
17256
17262
|
} catch {}
|
|
17257
|
-
execSync4("pnpm db:migrate", { cwd: root, stdio: "inherit" });
|
|
17263
|
+
execSync4("pnpm db:migrate", { cwd: root, stdio: ["pipe", "inherit", "inherit"] });
|
|
17258
17264
|
} else {
|
|
17259
17265
|
if (!isInstalled()) {
|
|
17260
17266
|
console.log("Installing Alook...");
|
|
@@ -17266,10 +17272,6 @@ function onboardCommand() {
|
|
|
17266
17272
|
patchWranglerConfigs(ports);
|
|
17267
17273
|
runMigrations();
|
|
17268
17274
|
}
|
|
17269
|
-
let email3;
|
|
17270
|
-
if (!opts.skipRegister) {
|
|
17271
|
-
email3 = await collectEmail();
|
|
17272
|
-
}
|
|
17273
17275
|
if (isRunning()) {
|
|
17274
17276
|
console.log(`
|
|
17275
17277
|
Services already running.`);
|
|
@@ -17286,7 +17288,7 @@ Waiting for server to be ready...`);
|
|
|
17286
17288
|
const { sessionCookie } = await registerUser(baseURL, email3);
|
|
17287
17289
|
const workspace2 = await createWorkspace(baseURL, sessionCookie);
|
|
17288
17290
|
const { token } = await createMachineToken(baseURL, sessionCookie, workspace2.id);
|
|
17289
|
-
|
|
17291
|
+
await activateToken(baseURL, token, runtimes);
|
|
17290
17292
|
console.log(` ✓ Daemon registered with ${runtimes.map((r) => r.type).join(", ")} runtime`);
|
|
17291
17293
|
console.log(` ✓ Machine token activated
|
|
17292
17294
|
`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alook/app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Run Alook locally — one command, no clone needed",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/alookai/alook#readme",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"build": "bun build src/index.ts --outdir dist --target node --format esm --external commander --external wrangler",
|
|
34
34
|
"prepack": "pnpm run build",
|
|
35
35
|
"bundle": "bun run scripts/bundle.ts",
|
|
36
|
+
"lint": "eslint src/",
|
|
36
37
|
"test": "vitest run"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
@@ -42,6 +43,8 @@
|
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@alook/shared": "workspace:*",
|
|
44
45
|
"@types/bun": "^1.3.13",
|
|
45
|
-
"
|
|
46
|
+
"eslint": "^9.39.4",
|
|
47
|
+
"typescript": "^6.0.3",
|
|
48
|
+
"typescript-eslint": "^8.59.3"
|
|
46
49
|
}
|
|
47
50
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,38444,e=>{"use strict";var t=e.i(298699);let i=t.createContext(void 0),a={disableStyleElements:!1};e.s(["useCSPContext",0,function(){return t.useContext(i)??a}])},255450,e=>{"use strict";let t=(0,e.i(706875).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],255450)},30187,e=>{"use strict";let t=(0,e.i(706875).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],30187)},934351,e=>{"use strict";var t=e.i(368075),i=e.i(613349);e.s(["Card",0,function({className:e,size:a="default",...r}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,i.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...r})},"CardAction",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,i.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,i.cn)("px-4 group-data-[size=sm]/card:px-3",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,i.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,i.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},180315,e=>{"use strict";let t=(0,e.i(706875).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",0,t],180315)},716532,220308,e=>{"use strict";e.i(459119);var t,i=e.i(398258),a=e.i(298699),r=e.i(128726);let n=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),l={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},o={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={disabled:!1,...o};e.s(["DEFAULT_FIELD_ROOT_STATE",0,s,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,o,"DEFAULT_VALIDITY_STATE",0,l,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[n.valid]:""}:{[n.invalid]:""}}],220308);let u=a.createContext({invalid:void 0,name:void 0,validityData:{state:l,errors:[],error:"",value:"",initialValue:null},setValidityData:r.NOOP,disabled:void 0,touched:o.touched,setTouched:r.NOOP,dirty:o.dirty,setDirty:r.NOOP,filled:o.filled,setFilled:r.NOOP,focused:o.focused,setFocused:r.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:s,markedDirtyRef:{current:!1},registerFieldControl:r.NOOP,validation:{getValidationProps:(e=r.EMPTY_OBJECT)=>e,getInputValidationProps:(e=r.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=a.useContext(u);if(t.setValidityData===r.NOOP&&!e)throw Error((0,i.default)(28));return t}],716532)},482691,e=>{"use strict";var t=e.i(298699),i=e.i(128726);let a=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:i.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(a)}])},536735,e=>{"use strict";var t=e.i(298699),i=e.i(128726);let a=t.createContext({controlId:void 0,registerControlId:i.NOOP,labelId:void 0,setLabelId:i.NOOP,messageIds:[],setMessageIds:i.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,a,"useLabelableContext",0,function(){return t.useContext(a)}])},589193,e=>{"use strict";var t=e.i(92615),i=e.i(208700),a=e.i(773825),r=e.i(677320),n=e.i(389068),l=e.i(541126),o=e.i(536735);e.s(["useLabel",0,function(e={}){let s,{id:u,fallbackControlId:d,native:c=!1,setLabelId:f,focusControl:v}=e,{controlId:b,setLabelId:p}=(0,o.useLabelableContext)(),g=(0,a.useStableCallback)(e=>{p(e),f?.(e)}),h=(s=(0,l.useBaseUiId)(u),(0,n.useIsoLayoutEffect)(()=>(g(s),()=>{g(void 0)}),[s,g]),s),m=b??d;function x(e){let a=(0,r.getTarget)(e.nativeEvent);a?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),c||function(e){if(v)return v(e,m);if(!m)return;let a=(0,i.ownerDocument)(e.currentTarget).getElementById(m);(0,t.isHTMLElement)(a)&&a.focus({focusVisible:!0})}(e))}return c?{id:h,htmlFor:m??void 0,onMouseDown:x}:{id:h,onClick:x,onPointerDown(e){e.preventDefault()}}}],589193)},945656,e=>{"use strict";var t=e.i(298699),i=e.i(389068),a=e.i(716532);e.s(["useRegisterFieldControl",0,function(e,r){let{enabled:n=!0,getValue:l,id:o,value:s}=r,{registerFieldControl:u}=(0,a.useFieldRootContext)(),d=t.useRef(null);d.current||(d.current=Symbol()),(0,i.useIsoLayoutEffect)(()=>{let t=d.current;if(t&&n)return u(t,{controlRef:e,getValue:l,id:o,value:s}),()=>{u(t,void 0)}},[e,n,l,o,u,s])}])},734525,e=>{"use strict";var t=e.i(298699),i=e.i(389068),a=e.i(773825),r=e.i(610580),n=e.i(92615),l=e.i(128726),o=e.i(541126),s=e.i(536735);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:d=!1,controlRef:c}=e,{controlId:f,registerControlId:v}=(0,s.useLabelableContext)(),b=(0,o.useBaseUiId)(u),p=d?f:void 0,g=(0,r.useRefWithInit)(()=>Symbol("labelable-control")),h=t.useRef(!1),m=t.useRef(null!=u),x=(0,a.useStableCallback)(()=>{h.current&&v!==l.NOOP&&(h.current=!1,v(g.current,void 0))});return(0,i.useIsoLayoutEffect)(()=>{let e;if(v!==l.NOOP){if(d){let t=c?.current;e=(0,n.isElement)(t)&&null!=t.closest("label")?u??null:p??b}else if(null!=u)m.current=!0,e=u;else{if(!m.current)return void x();e=b}if(void 0===e)return void x();h.current=!0,v(g.current,e)}},[u,c,p,v,d,b,g,x]),t.useEffect(()=>x,[x]),f??b}])},903477,752814,9441,e=>{"use strict";var t=e.i(368075);e.i(459119);var i=e.i(298699);e.s([],691118),e.i(691118);var a=e.i(773825),r=e.i(716532),n=e.i(220308),l=e.i(398258);let o=i.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});var s=e.i(482691),u=e.i(610580),d=e.i(943891),c=e.i(541126),f=e.i(536735);let v=function(e){let r=(0,c.useBaseUiId)(),n=void 0===e.controlId?r:e.controlId,[l,o]=i.useState(n),[s,v]=i.useState(e.labelId),[b,p]=i.useState([]),g=(0,u.useRefWithInit)(()=>new Map),{messageIds:h}=(0,f.useLabelableContext)(),m=(0,a.useStableCallback)((e,t)=>{let i=g.current;void 0===t?i.delete(e):(i.set(e,t),o(e=>{let t;if(0!==i.size){for(let a of i.values()){if(void 0!==e&&a===e)return e;void 0===t&&(t=a)}return t}}))}),x=i.useCallback(e=>(0,d.mergeProps)({"aria-describedby":h.concat(b).join(" ")||void 0},e),[h,b]),C=i.useMemo(()=>({controlId:l,registerControlId:m,labelId:s,setLabelId:v,messageIds:b,setMessageIds:p,getDescriptionProps:x}),[l,m,s,v,b,p,x]);return(0,t.jsx)(f.LabelableContext.Provider,{value:C,children:e.children})};var b=e.i(597849),p=e.i(128726),g=e.i(385967);function h(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}let m=Object.keys(n.DEFAULT_VALIDITY_STATE);var x=e.i(550008),C=e.i(389068);let y=i.forwardRef(function(e,u){let{errors:c,validationMode:v,submitAttemptedRef:y}=(0,s.useFormContext)(),{render:R,className:E,validate:I,validationDebounceTime:T=0,validationMode:S=v,name:M,disabled:k=!1,invalid:L,dirty:w,touched:A,actionsRef:O,style:D,...P}=e,{disabled:N}=function(e=!1){let t=i.useContext(o);if(!t&&!e)throw Error((0,l.default)(86));return t}(),_=(0,a.useStableCallback)(I||(()=>null)),V=N||k,[F,j]=i.useState(!1),[W,z]=i.useState(!1),[H,B]=i.useState(!1),[Y,U]=i.useState(!1),K=w??W,q=A??F,G=i.useRef(!1),$=(0,a.useStableCallback)(e=>{void 0===w&&(e&&(G.current=!0),z(e))}),J=(0,a.useStableCallback)(e=>{void 0===A&&j(e)}),X=(0,a.useStableCallback)(()=>"onChange"===S||"onSubmit"===S&&y.current),Z=!!M&&Object.hasOwn(c,M)&&void 0!==c[M],Q=!0===L||Z,[ee,et]=i.useState({state:n.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),ei=!Q&&ee.state.valid,ea=i.useMemo(()=>({disabled:V,touched:q,dirty:K,valid:ei,filled:H,focused:Y}),[V,q,K,ei,H,Y]),er=function(e){let{formRef:t,clearErrors:r}=(0,s.useFormContext)(),{setValidityData:l,validate:o,validityData:u,validationDebounceTime:c,invalid:v,markedDirtyRef:b,state:x,name:C,shouldValidateOnChange:y}=e,{controlId:R,getDescriptionProps:E}=(0,f.useLabelableContext)(),I=(0,g.useTimeout)(),T=i.useRef(null),S=(0,a.useStableCallback)(async(e,i=!1)=>{let a,r=T.current;if(!r)return;if(i){if(!1!==x.valid)return;let i=r.validity;if(!i.valueMissing){let i={value:e,state:{...n.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:u.initialValue};if(r.setCustomValidity(""),R){let e=t.current.fields.get(R);e&&t.current.fields.set(R,{...e,...h(i,!1)})}l(i);return}let a=m.reduce((e,t)=>(e[t]=i[t],e),{});if(!a.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let i of m)"valid"!==i&&("valueMissing"===i&&(t=e[i]),e[i]&&(t=!1));return t}(a))return}I.clear();let s=null,d=[],c=function(e){let t=m.reduce((t,i)=>(t[i]=e.validity[i],t),{}),i=!1;for(let e of m)if("valid"!==e){if("valueMissing"===e&&t[e])i=!0;else if(t[e])return t}return i&&!b.current&&(t.valid=!0,t.valueMissing=!1),t}(r),f=y();if(r.validationMessage&&!f)a=r.validationMessage,d=[r.validationMessage];else{let i=o(e,Array.from(t.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));null!==(s="object"==typeof i&&null!==i&&"then"in i?await i:i)?(c.valid=!1,c.customError=!0,Array.isArray(s)?(d=s,r.setCustomValidity(s.join("\n"))):s&&(d=[s],r.setCustomValidity(s))):f&&(r.setCustomValidity(""),c.customError=!1,r.validationMessage?(a=r.validationMessage,d=[r.validationMessage]):r.validity.valid&&!c.valid&&(c.valid=!0))}let p={value:e,state:c,error:a??(Array.isArray(s)?s[0]:s??""),errors:d,initialValue:u.initialValue};if(R){let e=t.current.fields.get(R);e&&t.current.fields.set(R,{...e,...h(p,v)})}l(p)}),M=i.useCallback((e={})=>(0,d.mergeProps)(E,!1===x.valid?{"aria-invalid":!0}:p.EMPTY_OBJECT,e),[E,x.valid]),k=i.useCallback((e={})=>(0,d.mergeProps)({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(r(C),!y())return void S(e.currentTarget.value,!0);let t=e.currentTarget;""===t.value?S(t.value):(I.clear(),c?I.start(c,()=>{S(t.value)}):S(t.value))}},M(e)),[M,r,C,I,S,c,y]);return i.useMemo(()=>({getValidationProps:M,getInputValidationProps:k,inputRef:T,commit:S}),[M,k,S])}({setValidityData:et,validate:_,validityData:ee,validationDebounceTime:T,invalid:Q,markedDirtyRef:G,state:ea,name:M,shouldValidateOnChange:X}),en=i.useCallback(()=>{G.current=!0,er.commit(ee.value)},[er,ee]),el=function(e){let{commit:t,invalid:r,markedDirtyRef:n,name:l,setValidityData:o,validityData:u}=e,{formRef:d}=(0,s.useFormContext)(),c=i.useRef(null),f=i.useRef(null),v=i.useRef(null),b=(0,a.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value}),p=(0,a.useStableCallback)((e=!0)=>{let i=f.current;if(!i)return;let a=i.value;void 0===a&&(a=b()),n.current=!0,e?x.flushSync(()=>t(a)):t(a)});function g(e=f.current?.id){e&&d.current.fields.delete(e)}return(0,C.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&d.current.fields.set(e.id,{getValue:b,name:l,controlRef:e.controlRef??v,validityData:h(u,r),validate:p})},[d,b,r,l,p,u]),(0,C.useIsoLayoutEffect)(()=>{let e=d.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[d]),(0,a.useStableCallback)((e,t)=>{let i;if(!t){c.current===e&&(c.current=null,g(),f.current=null);return}let a=f.current?.id;c.current=e,f.current=t,a&&a!==t.id&&g(a),function(){let e=f.current;if(!e)return;let t=e.value;void 0===t&&(t=b()),null===u.initialValue&&null!==t&&o(e=>({...e,initialValue:t}))}(),(i=f.current)&&i.id&&d.current.fields.set(i.id,{getValue:b,name:l,controlRef:i.controlRef??v,validityData:h(u,r),validate:p})})}({commit:er.commit,invalid:Q,markedDirtyRef:G,name:M,setValidityData:et,validityData:ee});i.useImperativeHandle(O,()=>({validate:en}),[en]);let eo=i.useMemo(()=>({invalid:Q,name:M,validityData:ee,setValidityData:et,disabled:V,touched:q,setTouched:J,dirty:K,setDirty:$,filled:H,setFilled:B,focused:Y,setFocused:U,validate:_,validationMode:S,validationDebounceTime:T,shouldValidateOnChange:X,state:ea,markedDirtyRef:G,registerFieldControl:el,validation:er}),[Q,M,ee,V,q,J,K,$,H,B,Y,U,_,S,T,X,ea,el,er]),es=(0,b.useRenderElement)("div",e,{ref:u,state:ea,props:P,stateAttributesMapping:n.fieldValidityMapping});return(0,t.jsx)(r.FieldRootContext.Provider,{value:eo,children:es})}),R=i.forwardRef(function(e,i){return(0,t.jsx)(v,{children:(0,t.jsx)(y,{...e,ref:i})})});var E=e.i(589193);let I=i.forwardRef(function(e,t){let{render:a,className:l,style:o,id:s,nativeLabel:u=!0,...d}=e,c=(0,r.useFieldRootContext)(!1),{labelId:v}=(0,f.useLabelableContext)(),p=i.useRef(null),g=(0,E.useLabel)({id:v??s,native:u});return(0,b.useRenderElement)("label",e,{ref:[t,p],state:c.state,props:[g,d],stateAttributesMapping:n.fieldValidityMapping})});var T=e.i(570868),S=e.i(106580),M=e.i(221995);let k={...n.fieldValidityMapping,...S.transitionStatusMapping},L=i.forwardRef(function(e,a){let{render:n,id:l,className:o,match:u,style:d,...v}=e,p=(0,c.useBaseUiId)(l),{validityData:g,state:h,name:m}=(0,r.useFieldRootContext)(!1),{setMessageIds:x}=(0,f.useLabelableContext)(),{errors:y}=(0,s.useFormContext)(),R=m?y[m]:null,E="string"==typeof u,I=!1;I=!0===u||(E?!!g.state[u]:!!R||!1===g.state.valid);let{mounted:S,transitionStatus:L,setMounted:w}=(0,M.useTransitionStatus)(I);(0,C.useIsoLayoutEffect)(()=>{if(I&&p)return x(e=>e.concat(p)),()=>{x(e=>e.filter(e=>e!==p))}},[I,p,x]);let A=i.useRef(null),[O,D]=i.useState(null),[P,N]=i.useState(null),_=g.errors.length>1?(0,t.jsx)("ul",{children:g.errors.map(e=>(0,t.jsx)("li",{children:e},e))}):g.error,V=E?_:R||_,F=g.error;null!=R?F=Array.isArray(R)?JSON.stringify(R):R:g.errors.length>1&&(F=JSON.stringify(g.errors)),I&&F!==P&&(N(F),D(V)),(0,T.useOpenChangeComplete)({open:I,ref:A,onComplete(){I||w(!1)}});let j={...h,transitionStatus:L},W=(0,b.useRenderElement)("div",e,{ref:[a,A],state:j,props:[{id:p,children:I?V:O},v],stateAttributesMapping:k,enabled:S});return S?W:null}),w=i.forwardRef(function(e,t){let{render:i,id:a,className:l,style:o,...s}=e,u=(0,c.useBaseUiId)(a),d=(0,r.useFieldRootContext)(!1),{setMessageIds:v}=(0,f.useLabelableContext)();return(0,C.useIsoLayoutEffect)(()=>{if(u)return v(e=>e.concat(u)),()=>{v(e=>e.filter(e=>e!==u))}},[u,v]),(0,b.useRenderElement)("p",e,{ref:t,state:d.state,props:[{id:u},s],stateAttributesMapping:n.fieldValidityMapping})});var A=e.i(969183),O=e.i(208700),D=e.i(945656),P=e.i(734525),N=e.i(211752),_=e.i(857504),V=e.i(677320);let F=i.forwardRef(function(e,t){let{render:l,className:o,id:s,name:u,value:d,disabled:c=!1,onValueChange:v,defaultValue:p,autoFocus:g=!1,style:h,...m}=e,{state:x,name:y,disabled:R,setTouched:E,setDirty:I,validityData:T,setFocused:S,setFilled:M,validationMode:k,validation:L}=(0,r.useFieldRootContext)(),w=R||c,F={...x,disabled:w},{labelId:j}=(0,f.useLabelableContext)(),W=(0,P.useLabelableId)({id:s});(0,C.useIsoLayoutEffect)(()=>{let e=null!=d;L.inputRef.current?.value||e&&""!==d?M(!0):e&&""===d&&M(!1)},[L.inputRef,M,d]);let z=i.useRef(null);(0,C.useIsoLayoutEffect)(()=>{g&&z.current===(0,V.activeElement)((0,O.ownerDocument)(z.current))&&S(!0)},[g,S]);let[H]=(0,A.useControlled)({controlled:d,default:p,name:"FieldControl",state:"value"}),B=void 0!==d,Y=B?H:void 0,U=(0,a.useStableCallback)(()=>L.inputRef.current?.value);return(0,D.useRegisterFieldControl)(L.inputRef,{id:W,value:Y,getValue:U}),(0,b.useRenderElement)("input",e,{ref:[t,z],state:F,props:[{id:W,disabled:w,name:y??u,ref:L.inputRef,"aria-labelledby":j,autoFocus:g,...B?{value:Y}:{defaultValue:p},onChange(e){let t=e.currentTarget.value;v?.(t,(0,N.createChangeEventDetails)(_.REASONS.none,e.nativeEvent)),I(t!==T.initialValue),M(""!==t)},onFocus(){S(!0)},onBlur(e){E(!0),S(!1),"onBlur"===k&&L.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(E(!0),L.commit(e.currentTarget.value))}},L.getInputValidationProps(),m],stateAttributesMapping:n.fieldValidityMapping})}),j=i.createContext({disabled:!1});e.s(["FieldItemContext",0,j,"useFieldItemContext",0,function(){return i.useContext(j)}],752814);let W=i.createContext(void 0);function z(e=!0){let t=i.useContext(W);if(void 0===t&&!e)throw Error((0,l.default)(3));return t}e.s(["useCheckboxGroupContext",0,z],9441);let H=i.forwardRef(function(e,a){let{render:l,className:o,style:s,disabled:u=!1,...d}=e,{state:c,disabled:f}=(0,r.useFieldRootContext)(!1),p=f||u,g=z(),h=g?.parent.id,m=g?.allValues!==void 0,x=i.useMemo(()=>({disabled:p}),[p]),C=(0,b.useRenderElement)("div",e,{ref:a,state:c,props:d,stateAttributesMapping:n.fieldValidityMapping});return(0,t.jsx)(v,{controlId:m?h:void 0,children:(0,t.jsx)(j.Provider,{value:x,children:C})})});e.s(["Control",0,F,"Description",0,w,"Error",0,L,"Item",0,H,"Label",0,I,"Root",0,R,"Validity",0,function(e){let{children:a}=e,{validityData:n,invalid:l}=(0,r.useFieldRootContext)(!1),o=i.useMemo(()=>h(n,l),[n,l]),s=!1===o.state.valid,{transitionStatus:u}=(0,M.useTransitionStatus)(s),d=i.useMemo(()=>({...o,validity:o.state,transitionStatus:u}),[o,u]);return(0,t.jsx)(i.Fragment,{children:a(d)})}],234437);var B=e.i(234437),B=B;let Y=i.forwardRef(function(e,i){return(0,t.jsx)(B.Control,{ref:i,...e})});var U=e.i(613349);e.s(["Input",0,function({className:e,type:i,...a}){return(0,t.jsx)(Y,{type:i,"data-slot":"input",className:(0,U.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...a})}],903477)},473131,e=>{"use strict";var t=e.i(368075),i=e.i(613349);e.s(["Label",0,function({className:e,...a}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,i.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...a})}])},553617,e=>{"use strict";e.s(["hasCustomEmailErrors",0,function(e){return!!(e.emailAddress||e.imapHost||e.imapPassword||e.smtpHost||e.smtpPassword)},"hasWorkspaceFormErrors",0,function(e){return!!(e.name||e.slug)},"validateCustomEmailFields",0,function({emailAddress:e,imapHost:t,imapUsername:i,imapPassword:a,smtpHost:r,smtpUsername:n,smtpPassword:l}){let o={};return e.trim()||(o.emailAddress="Email address is required"),t.trim()||(o.imapHost="IMAP host is required"),i.trim()&&a.trim()||(o.imapPassword="IMAP credentials are required"),r.trim()||(o.smtpHost="SMTP host is required"),n.trim()&&l.trim()||(o.smtpPassword="SMTP credentials are required"),o},"validateWorkspaceForm",0,function({name:e,slug:t}){let i={};return e.trim()||(i.name="Workspace name is required"),t.trim()||(i.slug="Workspace slug is required"),i}])},255334,e=>{"use strict";var t,i,a,r=e.i(368075);e.s([],382330),e.i(382330),e.i(459119);var n=e.i(298699),l=e.i(969183),o=e.i(389068),s=e.i(773825),u=e.i(597849),d=e.i(572459),c=e.i(398258);let f=n.createContext(void 0);function v(){let e=n.useContext(f);if(void 0===e)throw Error((0,c.default)(64));return e}let b=((t={}).activationDirection="data-activation-direction",t.orientation="data-orientation",t),p={tabActivationDirection:e=>({[b.activationDirection]:e})},g=n.forwardRef(function(e,t){let{className:i,defaultValue:a=0,onValueChange:c,orientation:v="horizontal",render:b,value:g,style:m,...x}=e,C=Object.hasOwn(e,"defaultValue"),y=n.useRef([]),[R,E]=n.useState(()=>new Map),[I,T]=(0,l.useControlled)({controlled:g,default:a,name:"Tabs",state:"value"}),S=void 0!==g,[M,k]=n.useState(()=>new Map),L=n.useCallback(e=>{if(void 0===e)return null;for(let[t,i]of M.entries())if(null!=i&&e===(i.value??i.index))return t;return null},[M]),[w,A]=n.useState(()=>({previousValue:I,tabActivationDirection:"none"})),{previousValue:O,tabActivationDirection:D}=w,P=D,N=!1;O!==I&&(P=h(O,I,v,M),N=null!=O&&null!=I&&null==L(I));let _=N?O:I,V=O!==_||D!==P;(0,o.useIsoLayoutEffect)(()=>{V&&A({previousValue:_,tabActivationDirection:P})},[_,V,P]);let F=(0,s.useStableCallback)((e,t)=>{t.activationDirection=h(I,e,v,M),c?.(e,t),t.isCanceled||T(e)}),j=(0,s.useStableCallback)((e,t)=>{E(i=>{if(i.get(e)===t)return i;let a=new Map(i);return a.set(e,t),a})}),W=(0,s.useStableCallback)((e,t)=>{E(i=>{if(!i.has(e)||i.get(e)!==t)return i;let a=new Map(i);return a.delete(e),a})}),z=n.useCallback(e=>R.get(e),[R]),H=n.useCallback(e=>{for(let t of M.values())if(e===t?.value)return t?.id},[M]),B=n.useMemo(()=>({getTabElementBySelectedValue:L,getTabIdByPanelValue:H,getTabPanelIdByValue:z,onValueChange:F,orientation:v,registerMountedTabPanel:j,setTabMap:k,unregisterMountedTabPanel:W,tabActivationDirection:P,value:I}),[L,H,z,F,v,j,k,W,P,I]),Y=n.useMemo(()=>{for(let e of M.values())if(null!=e&&e.value===I)return e},[M,I]),U=n.useMemo(()=>{for(let e of M.values())if(null!=e&&!e.disabled)return e.value},[M]);(0,o.useIsoLayoutEffect)(()=>{if(S||0===M.size)return;let e=Y?.disabled,t=null==Y&&null!==I;if(C&&e&&I===a||!e&&!t)return;let i=U??null;I!==i&&(T(i),A(e=>"none"===e.tabActivationDirection?e:{...e,tabActivationDirection:"none"}))},[a,U,C,S,Y,T,M,I]);let K={orientation:v,tabActivationDirection:P},q=(0,u.useRenderElement)("div",e,{state:K,ref:t,props:x,stateAttributesMapping:p});return(0,r.jsx)(f.Provider,{value:B,children:(0,r.jsx)(d.CompositeList,{elementsRef:y,children:q})})});function h(e,t,i,a){if(null==e||null==t)return"none";let r=null,n=null;for(let[i,l]of a.entries()){if(null==l)continue;let a=l.value??l.index;if(e===a&&(r=i),t===a&&(n=i),null!=r&&null!=n)break}if(null==r||null==n)return r!==n&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?"horizontal"===i?t>e?"right":"left":t>e?"down":"up":"none";let l=r.getBoundingClientRect(),o=n.getBoundingClientRect();if("horizontal"===i){if(o.left<l.left)return"left";if(o.left>l.left)return"right"}else{if(o.top<l.top)return"up";if(o.top>l.top)return"down"}return"none"}var m=e.i(208700),x=e.i(541126),C=e.i(616117);let y="data-composite-item-active";var R=e.i(563856);let E=n.createContext(void 0);function I(){let e=n.useContext(E);if(void 0===e)throw Error((0,c.default)(65));return e}var T=e.i(211752),S=e.i(857504),M=e.i(677320);let k=n.forwardRef(function(e,t){let{className:i,disabled:a=!1,render:r,value:l,id:s,nativeButton:d=!0,style:c,...f}=e,{value:b,getTabPanelIdByValue:p,orientation:g}=v(),{activateOnFocus:h,highlightedTabIndex:E,onTabActivation:k,registerTabResizeObserverElement:L,setHighlightedTabIndex:w,tabsListElement:A}=I(),O=(0,x.useBaseUiId)(s),D=n.useMemo(()=>({disabled:a,id:O,value:l}),[a,O,l]),{compositeProps:P,compositeRef:N,index:_}=(0,R.useCompositeItem)({metadata:D}),V=l===b,F=n.useRef(!1),j=n.useRef(null);n.useEffect(()=>{let e=j.current;if(e)return L(e)},[L]),(0,o.useIsoLayoutEffect)(()=>{if(F.current){F.current=!1;return}if(V&&_>-1&&E!==_){if(null!=A){let e=(0,M.activeElement)((0,m.ownerDocument)(A));if(e&&(0,M.contains)(A,e))return}a||w(_)}},[V,_,E,w,a,A]);let{getButtonProps:W,buttonRef:z}=(0,C.useButton)({disabled:a,native:d,focusableWhenDisabled:!0}),H=p(l),B=n.useRef(!1),Y=n.useRef(!1);return(0,u.useRenderElement)("button",e,{state:{disabled:a,active:V,orientation:g},ref:[t,z,N,j],props:[P,{role:"tab","aria-controls":H,"aria-selected":V,id:O,onClick:function(e){V||a||k(l,(0,T.createChangeEventDetails)(S.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){V||(_>-1&&!a&&w(_),!a&&h&&(!B.current||B.current&&Y.current)&&k(l,(0,T.createChangeEventDetails)(S.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){V||a||(B.current=!0,e.button&&0!==e.button||(Y.current=!0,(0,m.ownerDocument)(e.currentTarget).addEventListener("pointerup",function(){B.current=!1,Y.current=!1},{once:!0})))},[y]:V?"":void 0,onKeyDownCapture(){F.current=!0}},f,W]})});var L=e.i(340344),w=e.i(207102),A=e.i(128726);function O(){return A.NOOP}function D(){return!1}function P(){return!0}let N=((i={}).activeTabLeft="--active-tab-left",i.activeTabRight="--active-tab-right",i.activeTabTop="--active-tab-top",i.activeTabBottom="--active-tab-bottom",i.activeTabWidth="--active-tab-width",i.activeTabHeight="--active-tab-height",i);var _=e.i(38444);let V={...p,activeTabPosition:()=>null,activeTabSize:()=>null},F=n.forwardRef(function(e,t){let{className:i,render:a,renderBeforeHydration:l=!1,style:o,...s}=e,{nonce:d}=(0,_.useCSPContext)(),{getTabElementBySelectedValue:c,orientation:f,tabActivationDirection:b,value:p}=v(),{tabsListElement:g,registerIndicatorUpdateListener:h}=I(),m=(0,w.useSyncExternalStore)(O,D,P),x=function(){let[,e]=n.useState({});return n.useCallback(()=>{e({})},[])}();n.useEffect(()=>h(x),[h,x]);let C=0,y=0,R=0,E=0,T=0,S=0,M=!1;if(null!=p&&null!=g){let e=c(p);if(M=!0,null!=e){let{width:t,height:i}=(0,L.getCssDimensions)(e),{width:a,height:r}=(0,L.getCssDimensions)(g),n=e.getBoundingClientRect(),l=g.getBoundingClientRect(),o=a>0?l.width/a:1,s=r>0?l.height/r:1;if(Math.abs(o)>Number.EPSILON&&Math.abs(s)>Number.EPSILON){let e=n.left-l.left,t=n.top-l.top;C=e/o+g.scrollLeft-g.clientLeft,R=t/s+g.scrollTop-g.clientTop}else C=e.offsetLeft,R=e.offsetTop;T=t,S=i,y=g.scrollWidth-C-T,E=g.scrollHeight-R-S}}let k=n.useMemo(()=>M?{left:C,right:y,top:R,bottom:E}:null,[C,y,R,E,M]),A=n.useMemo(()=>M?{width:T,height:S}:null,[T,S,M]),F=n.useMemo(()=>{if(M)return{[N.activeTabLeft]:`${C}px`,[N.activeTabRight]:`${y}px`,[N.activeTabTop]:`${R}px`,[N.activeTabBottom]:`${E}px`,[N.activeTabWidth]:`${T}px`,[N.activeTabHeight]:`${S}px`}},[C,y,R,E,T,S,M]),j=M&&T>0&&S>0,W=(0,u.useRenderElement)("span",e,{state:{orientation:f,activeTabPosition:k,activeTabSize:A,tabActivationDirection:b},ref:t,props:[{role:"presentation",style:F,hidden:!j},s,{suppressHydrationWarning:!0}],stateAttributesMapping:V});return null==p?null:(0,r.jsxs)(n.Fragment,{children:[W,m&&l&&(0,r.jsx)("script",{nonce:d,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},suppressHydrationWarning:!0})]})});var j=e.i(191760),W=e.i(106580),z=e.i(570868),H=e.i(221995),B=e.i(77902);let Y=((a={}).index="data-index",a.activationDirection="data-activation-direction",a.orientation="data-orientation",a.hidden="data-hidden",a[a.startingStyle=W.TransitionStatusDataAttributes.startingStyle]="startingStyle",a[a.endingStyle=W.TransitionStatusDataAttributes.endingStyle]="endingStyle",a),U={...p,...W.transitionStatusMapping},K=n.forwardRef(function(e,t){let{className:i,value:a,render:r,keepMounted:l=!1,style:s,...d}=e,{value:c,getTabIdByPanelValue:f,orientation:b,tabActivationDirection:p,registerMountedTabPanel:g,unregisterMountedTabPanel:h}=v(),m=(0,x.useBaseUiId)(),C=n.useMemo(()=>({id:m,value:a}),[m,a]),{ref:y,index:R}=(0,B.useCompositeListItem)({metadata:C}),E=a===c,{mounted:I,transitionStatus:T,setMounted:S}=(0,H.useTransitionStatus)(E),M=!I,k=f(a),L=n.useRef(null),w=(0,u.useRenderElement)("div",e,{state:{hidden:M,orientation:b,tabActivationDirection:p,transitionStatus:T},ref:[t,y,L],props:[{"aria-labelledby":k,hidden:M,id:m,role:"tabpanel",tabIndex:E?0:-1,inert:(0,j.inertValue)(!E),[Y.index]:R},d],stateAttributesMapping:U});return((0,z.useOpenChangeComplete)({open:E,ref:L,onComplete(){E||S(!1)}}),(0,o.useIsoLayoutEffect)(()=>{if((!M||l)&&null!=m)return g(a,m),()=>{h(a,m)}},[M,l,a,m,g,h]),l||I)?w:null});var q=e.i(617517),G=e.i(850746),$=e.i(845879);let J=[];var X=e.i(484665),Z=e.i(167014);function Q(e){let{render:t,className:i,style:a,refs:l=A.EMPTY_ARRAY,props:o=A.EMPTY_ARRAY,state:c=A.EMPTY_OBJECT,stateAttributesMapping:f,highlightedIndex:v,onHighlightedIndexChange:b,orientation:p,dense:g,itemSizes:h,loopFocus:m,onLoop:x,cols:C,enableHomeAndEndKeys:R,onMapChange:E,stopEventPropagation:I=!0,rootRef:T,disabledIndices:S,modifierKeys:k,highlightItemOnHover:L=!1,tag:w="div",...O}=e,{props:D,highlightedIndex:P,onHighlightedIndexChange:N,elementsRef:_,onMapChange:V,relayKeyboardEvent:F}=function(e){let{itemSizes:t,cols:i=1,loopFocus:a=!0,onLoop:r,dense:l=!1,orientation:o="both",direction:u,highlightedIndex:d,onHighlightedIndexChange:c,rootRef:f,enableHomeAndEndKeys:v=!1,stopEventPropagation:b=!1,disabledIndices:p,modifierKeys:g=J}=e,[h,m]=n.useState(0),x=i>1,C=n.useRef(null),R=(0,q.useMergedRefs)(C,f),E=n.useRef([]),I=n.useRef(!1),T=d??h,S=(0,s.useStableCallback)((e,t=!1)=>{if((c??m)(e),t){let t=E.current[e];(0,G.scrollIntoViewIfNeeded)(C.current,t,u,o)}}),k=(0,s.useStableCallback)(e=>{if(0===e.size||I.current)return;I.current=!0;let t=Array.from(e.keys()),i=t.find(e=>e?.hasAttribute(y))??null,a=i?t.indexOf(i):-1;-1!==a&&S(a),(0,G.scrollIntoViewIfNeeded)(C.current,i,u,o)}),L=(0,s.useStableCallback)((e,t,i)=>r?r?.(e,t,i,E):i),w=n.useMemo(()=>({"aria-orientation":"both"===o?void 0:o,ref:R,onFocus(e){let t=C.current,i=(0,M.getTarget)(e.nativeEvent);t&&null!=i&&(0,G.isNativeInput)(i)&&i.setSelectionRange(0,i.value.length??0)},onKeyDown(e){let n=v?G.ALL_KEYS:G.ARROW_KEYS;if(!n.has(e.key)||function(e,t){for(let i of G.MODIFIER_KEYS.values())if(!t.includes(i)&&e.getModifierState(i))return!0;return!1}(e,g)||!C.current)return;let s="rtl"===u,d=s?G.ARROW_LEFT:G.ARROW_RIGHT,c={horizontal:d,vertical:G.ARROW_DOWN,both:d}[o],f=s?G.ARROW_RIGHT:G.ARROW_LEFT,h={horizontal:f,vertical:G.ARROW_UP,both:f}[o],m=(0,M.getTarget)(e.nativeEvent);if(null!=m&&(0,G.isNativeInput)(m)&&!(null==m||m.hasAttribute("disabled")||"true"===m.getAttribute("aria-disabled"))){let t=m.selectionStart,i=m.selectionEnd,a=m.value??"";if(null==t||e.shiftKey||t!==i||e.key!==h&&t<a.length||e.key!==c&&t>0)return}let y=T,R=(0,$.getMinListIndex)(E,p),I=(0,$.getMaxListIndex)(E,p);if(x){let r=t||Array.from({length:E.current.length},()=>({width:1,height:1})),n=(0,$.createGridCellMap)(r,i,l),u=n.findIndex(e=>null!=e&&!(0,$.isListIndexDisabled)(E.current,e,p)),d=n.reduce((e,t,i)=>null==t||(0,$.isListIndexDisabled)(E.current,t,p)?e:i,-1);y=n[(0,$.getGridNavigatedIndex)(n.map(e=>null!=e?E.current[e]:null),{event:e,orientation:o,loopFocus:a,onLoop:L,cols:i,disabledIndices:(0,$.getGridCellIndices)([...p||E.current.map((e,t)=>(0,$.isListIndexDisabled)(E.current,t)?t:void 0),void 0],n),minIndex:u,maxIndex:d,prevIndex:(0,$.getGridCellIndexOfCorner)(T>I?R:T,r,n,i,e.key===G.ARROW_DOWN?"bl":e.key===G.ARROW_RIGHT?"tr":"tl"),rtl:s})]}let k={horizontal:[d],vertical:[G.ARROW_DOWN],both:[d,G.ARROW_DOWN]}[o],w={horizontal:[f],vertical:[G.ARROW_UP],both:[f,G.ARROW_UP]}[o],A=x?n:({horizontal:v?G.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:G.HORIZONTAL_KEYS,vertical:v?G.VERTICAL_KEYS_WITH_EXTRA_KEYS:G.VERTICAL_KEYS,both:n})[o];v&&(e.key===G.HOME?y=R:e.key===G.END&&(y=I)),y===T&&(k.includes(e.key)||w.includes(e.key))&&(a&&y===I&&k.includes(e.key)?(y=R,r&&(y=r(e,T,y,E))):a&&y===R&&w.includes(e.key)?(y=I,r&&(y=r(e,T,y,E))):y=(0,$.findNonDisabledListIndex)(E.current,{startingIndex:y,decrement:w.includes(e.key),disabledIndices:p})),y===T||(0,$.isIndexOutOfListBounds)(E.current,y)||(b&&e.stopPropagation(),A.has(e.key)&&e.preventDefault(),S(y,!0),queueMicrotask(()=>{E.current[y]?.focus()}))}}),[i,l,u,p,E,v,T,x,t,a,r,L,R,g,S,o,b]);return n.useMemo(()=>({props:w,highlightedIndex:T,onHighlightedIndexChange:S,elementsRef:E,disabledIndices:p,onMapChange:k,relayKeyboardEvent:w.onKeyDown}),[w,T,S,E,p,k])}({itemSizes:h,cols:C,loopFocus:m,onLoop:x,dense:g,orientation:p,highlightedIndex:v,onHighlightedIndexChange:b,rootRef:T,stopEventPropagation:I,enableHomeAndEndKeys:R,direction:(0,Z.useDirection)(),disabledIndices:S,modifierKeys:k}),j=(0,u.useRenderElement)(w,e,{state:c,ref:l,props:[D,...o,O],stateAttributesMapping:f}),W=n.useMemo(()=>({highlightedIndex:P,onHighlightedIndexChange:N,highlightItemOnHover:L,relayKeyboardEvent:F}),[P,N,L,F]);return(0,r.jsx)(X.CompositeRootContext.Provider,{value:W,children:(0,r.jsx)(d.CompositeList,{elementsRef:_,onMapChange:e=>{E?.(e),V(e)},children:j})})}let ee=n.forwardRef(function(e,t){let{activateOnFocus:i=!1,className:a,loopFocus:l=!0,render:o,style:u,...d}=e,{onValueChange:c,orientation:f,value:b,setTabMap:g,tabActivationDirection:h}=v(),[m,x]=n.useState(0),[C,y]=n.useState(null),R=n.useRef(new Set),I=n.useRef(new Set),T=n.useRef(null),S=(0,s.useStableCallback)(()=>{R.current.forEach(e=>{e()})});n.useEffect(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{R.current.size&&S()});return T.current=e,C&&e.observe(C),I.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),T.current=null}},[C,S]);let M=(0,s.useStableCallback)(e=>(R.current.add(e),()=>{R.current.delete(e)})),k=(0,s.useStableCallback)(e=>(I.current.add(e),T.current?.observe(e),()=>{I.current.delete(e),T.current?.unobserve(e)})),L=(0,s.useStableCallback)((e,t)=>{e!==b&&c(e,t)}),w=n.useMemo(()=>({activateOnFocus:i,highlightedTabIndex:m,registerIndicatorUpdateListener:M,registerTabResizeObserverElement:k,onTabActivation:L,setHighlightedTabIndex:x,tabsListElement:C}),[i,m,M,k,L,x,C]);return(0,r.jsx)(E.Provider,{value:w,children:(0,r.jsx)(Q,{render:o,className:a,style:u,state:{orientation:f,tabActivationDirection:h},refs:[t,y],props:[{"aria-orientation":"vertical"===f?"vertical":void 0,role:"tablist"},d],stateAttributesMapping:p,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:l,orientation:f,onHighlightedIndexChange:x,onMapChange:g,disabledIndices:A.EMPTY_ARRAY})})});e.s(["Indicator",0,F,"List",0,ee,"Panel",0,K,"Root",0,g,"Tab",0,k],162401);var et=e.i(162401),et=et,ei=e.i(294237),ea=e.i(613349);let er=(0,ei.cva)("group/tabs-list inline-flex max-w-full overflow-x-auto overflow-y-hidden items-center justify-start rounded-lg p-0.75 text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...i}){return(0,r.jsx)(et.Root,{"data-slot":"tabs","data-orientation":t,className:(0,ea.cn)("group/tabs flex min-w-0 gap-2 data-horizontal:flex-col",e),...i})},"TabsContent",0,function({className:e,...t}){return(0,r.jsx)(et.Panel,{"data-slot":"tabs-content",className:(0,ea.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...i}){return(0,r.jsx)(et.List,{"data-slot":"tabs-list","data-variant":t,className:(0,ea.cn)(er({variant:t}),e),...i})},"TabsTrigger",0,function({className:e,...t}){return(0,r.jsx)(et.Tab,{"data-slot":"tabs-trigger",className:(0,ea.cn)("relative inline-flex h-[calc(100%-1px)] shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:-bottom-1.25 group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],255334)},900559,e=>{"use strict";let t=(0,e.i(706875).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],900559)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30187,e=>{"use strict";let t=(0,e.i(706875).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],30187)},855372,e=>{"use strict";var t=e.i(368075),r=e.i(609049);function n({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"#D97757",className:e,children:(0,t.jsx)("path",{d:"m3.127 10.604 3.135-1.76.053-.153-.053-.085H6.11l-.525-.032-1.791-.048-1.554-.065-1.505-.08-.38-.081L0 7.832l.036-.234.32-.214.455.04 1.009.069 1.513.105 1.097.064 1.626.17h.259l.036-.105-.089-.065-.068-.064-1.566-1.062-1.695-1.121-.887-.646-.48-.327-.243-.306-.104-.67.435-.48.585.04.15.04.593.456 1.267.981 1.654 1.218.242.202.097-.068.012-.049-.109-.181-.9-1.626-.96-1.655-.428-.686-.113-.411a2 2 0 0 1-.068-.484l.496-.674L4.446 0l.662.089.279.242.411.94.666 1.48 1.033 2.014.302.597.162.553.06.17h.105v-.097l.085-1.134.157-1.392.154-1.792.052-.504.25-.605.497-.327.387.186.319.456-.045.294-.19 1.23-.37 1.93-.243 1.29h.142l.161-.16.654-.868 1.097-1.372.484-.545.565-.601.363-.287h.686l.505.751-.226.775-.707.895-.585.759-.839 1.13-.524.904.048.072.125-.012 1.897-.403 1.024-.186 1.223-.21.553.258.06.263-.218.536-1.307.323-1.533.307-2.284.54-.028.02.032.04 1.029.098.44.024h1.077l2.005.15.525.346.315.424-.053.323-.807.411-3.631-.863-.872-.218h-.12v.073l.726.71 1.331 1.202 1.667 1.55.084.383-.214.302-.226-.032-1.464-1.101-.565-.497-1.28-1.077h-.084v.113l.295.432 1.557 2.34.08.718-.112.234-.404.141-.444-.08-.911-1.28-.94-1.44-.759-1.291-.093.053-.448 4.821-.21.246-.484.186-.403-.307-.214-.496.214-.98.258-1.28.21-1.016.19-1.263.112-.42-.008-.028-.092.012-.953 1.307-1.448 1.957-1.146 1.227-.274.109-.477-.247.045-.44.266-.39 1.586-2.018.956-1.25.617-.723-.004-.105h-.036l-4.212 2.736-.75.096-.324-.302.04-.496.154-.162 1.267-.871z"})})}function i({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M14.949 6.547a3.94 3.94 0 0 0-.348-3.273 4.11 4.11 0 0 0-4.4-1.934A4.1 4.1 0 0 0 8.423.2 4.15 4.15 0 0 0 6.305.086a4.1 4.1 0 0 0-1.891.948 4.04 4.04 0 0 0-1.158 1.753 4.1 4.1 0 0 0-1.563.679A4 4 0 0 0 .554 4.72a3.99 3.99 0 0 0 .502 4.731 3.94 3.94 0 0 0 .346 3.274 4.11 4.11 0 0 0 4.402 1.933c.382.425.852.764 1.377.995.526.231 1.095.35 1.67.346 1.78.002 3.358-1.132 3.901-2.804a4.1 4.1 0 0 0 1.563-.68 4 4 0 0 0 1.14-1.253 3.99 3.99 0 0 0-.506-4.716m-6.097 8.406a3.05 3.05 0 0 1-1.945-.694l.096-.054 3.23-1.838a.53.53 0 0 0 .265-.455v-4.49l1.366.778q.02.011.025.035v3.722c-.003 1.653-1.361 2.992-3.037 2.996m-6.53-2.75a2.95 2.95 0 0 1-.36-2.01l.095.057L5.29 12.09a.53.53 0 0 0 .527 0l3.949-2.246v1.555a.05.05 0 0 1-.022.041L6.473 13.3c-1.454.826-3.311.335-4.15-1.098m-.85-6.94A3.02 3.02 0 0 1 3.07 3.949v3.785a.51.51 0 0 0 .262.451l3.93 2.237-1.366.779a.05.05 0 0 1-.048 0L2.585 9.342a2.98 2.98 0 0 1-1.113-4.094zm11.216 2.571L8.747 5.576l1.362-.776a.05.05 0 0 1 .048 0l3.265 1.86a3 3 0 0 1 1.173 1.207 2.96 2.96 0 0 1-.27 3.2 3.05 3.05 0 0 1-1.36.997V8.279a.52.52 0 0 0-.276-.445m1.36-2.015-.097-.057-3.226-1.855a.53.53 0 0 0-.53 0L6.249 6.153V4.598a.04.04 0 0 1 .019-.04L9.533 2.7a3.07 3.07 0 0 1 3.257.139c.474.325.843.778 1.066 1.303.223.526.289 1.103.191 1.664zM5.503 8.575 4.139 7.8a.05.05 0 0 1-.026-.037V4.049c0-.57.166-1.127.476-1.607s.752-.864 1.275-1.105a3.08 3.08 0 0 1 3.234.41l-.096.054-3.23 1.838a.53.53 0 0 0-.265.455zm.742-1.577 1.758-1 1.762 1v2l-1.755 1-1.762-1z"})})}function a({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 240 300",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M180 240H60V120H180V240Z",fill:"#CFCECD"}),(0,t.jsx)("path",{d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z",fill:"#211E1E"})]})}function s({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 16 16",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M8 2C5.5 2 3.5 4 3.5 6.5S5 10.5 6.5 11v1.5H8V11c.3.1.7.1 1 0v1.5h1.5V11c1.5-.5 3-2.5 3-4.5S10.5 2 8 2Z",fill:"#E8453A"}),(0,t.jsx)("path",{d:"M3.5 5.5C2 5 1 6 1.5 7s2 .5 2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M12.5 5.5c1.5-.5 2.5.5 2 1.5s-2 .5-2.2-.7",fill:"#FF6B5A"}),(0,t.jsx)("path",{d:"M6.5 3Q5 1.2 4.3 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M9.5 3Q11 1.2 11.7 1.5",stroke:"#FF6B5A",strokeWidth:"0.8",strokeLinecap:"round"}),(0,t.jsx)("circle",{cx:"6.2",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"9.8",cy:"5.2",r:"0.9",fill:"#050810"}),(0,t.jsx)("circle",{cx:"6.4",cy:"5",r:"0.3",fill:"#00E5CC"}),(0,t.jsx)("circle",{cx:"10",cy:"5",r:"0.3",fill:"#00E5CC"})]})}function l({className:e}){return(0,t.jsx)("img",{src:"data:image/webp;base64,UklGRuYDAABXRUJQVlA4INoDAADQEwCdASowADAAPm0uk0ckIiGhKrqpWIANiWkAEyQea/fD8IewvGL5V7Nb3H8u/MA8G9rT+4flL+UfIe42/23GB8zPqF/o3E0UAP5h/h/+F6ZX+x5evnX/r+4T/K/67/u/zg7znogfrusMANZLkn1gvlY/vNsKubtj/9xLSzxTsLr7K9GLdFNs5rwtISRcPXvH4z57n2fg0XR3aQ2D+pPpycwyl7TwAAD+/2DbjivnePzfyHCsdOgJXKlUR/OgAkofD7K4AdmsPKyP5Ml4/4HBYmIm5/efn/H+X3IZtngyaUOvwbFuRS/1yODFYO3vf3qeXGgPdfgIROXd/EPT7K2jysfvY9N71+w6g2gBPs+P6lxYkPf6S9QfpvH/7Pp7i8xRh0nVDBTEQyczSz7V9hoqo4nDJuii+SfibZRR/d5zB+9jkcb1DNN7YnC5Y7+WfGrE3eseXt3hSm+NS5++m1MHbjsrd9z/Q4HPRP/C85Po41XObalGyIUcFUL2j2n3uI/Yh6U8r6trCUJFB4kT3fsv6+8ylX/d96y2hq869FCXLjq4YqEO8vs5BtT52sf7KyDxPAWkH/b06YbfVXf4/7y5THL6Sr/4mOrrY9P2LW81f05HHFN8n0jcyqKOH7AluMm0AHPgFyz8RVrfBdmnPiC2FLMQfNDte5yGFzGC3fMlDed/tS/PO3Q/hjsNLvAXUUjqHyCo3JeN69jyNgWjjf8iUqoBsXT+lJyp2r8p60ad1jxhNyTblyJwda8aWEw1hFDeGjpMGguDF66RL4c+ZO+PhculC6WxvCsZ7IPAsdD7/ywx3w3AowJ66hAAK7k+m6X2QV06OVOCwyIGERex/AUyuBbLUK93X58+M+Si7YfYjVYGpoJ7JvSgD8ExaA21z9OY+si+1wreacDanKnFDmhwBQC3t6MLeXCOGp3VURDKl10K7tdKHQcb4hr48ba+1x/MrMRwHfq3IQrDIXPYCg4b0OLnVN9JyXttKGM63B5imIdKuU0r6hhSslT10lGLjnIJuwO5WKR0RHs+BX5vs6H63y3K7IuuZ1eRN+Aczvbs4QuDs6ZRuzjJ/1DJ5R/3ZrFPrtxvMwT06vAXIgcbhLGNLhOQUYRPdUN5MgyCtL5NH71ArTPLRRkIjhGwoCYXKKqlqIKKT9NX3vwp/nlh4SX71dlYg/mPXbJ9bMeVugyjqFahjFTJ/rT3HtBCWG8h+OvvbOFDFKurCG9BOhO9B719OS7zsP0KPqoymnv7hVvoJyZp0iziCbBvaJpmF9Cvfs8/vWqWr7TUo616WfMW+X9nkgpuqtnfAAAAAA==",alt:"Hermes",className:`${e} rounded-sm`})}function o({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 800 800",fill:"none",className:e,children:[(0,t.jsx)("rect",{width:"800",height:"800",rx:"150",fill:"#09090b"}),(0,t.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z"}),(0,t.jsx)("path",{fill:"#fff",d:"M517.36 400H634.72V634.72H517.36Z"})]})}function u({className:e}){return(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M12 1C5.9225 1 1 5.9225 1 12C1 16.8675 4.14875 20.9787 8.52125 22.4362C9.07125 22.5325 9.2775 22.2025 9.2775 21.9137C9.2775 21.6525 9.26375 20.7862 9.26375 19.865C6.5 20.3737 5.785 19.1912 5.565 18.5725C5.44125 18.2562 4.905 17.28 4.4375 17.0187C4.0525 16.8125 3.5025 16.3037 4.42375 16.29C5.29 16.2762 5.90875 17.0875 6.115 17.4175C7.105 19.0812 8.68625 18.6137 9.31875 18.325C9.415 17.61 9.70375 17.1287 10.02 16.8537C7.5725 16.5787 5.015 15.63 5.015 11.4225C5.015 10.2262 5.44125 9.23625 6.1425 8.46625C6.0325 8.19125 5.6475 7.06375 6.2525 5.55125C6.2525 5.55125 7.17375 5.2625 9.2775 6.67875C10.1575 6.43125 11.0925 6.3075 12.0275 6.3075C12.9625 6.3075 13.8975 6.43125 14.7775 6.67875C16.8813 5.24875 17.8025 5.55125 17.8025 5.55125C18.4075 7.06375 18.0225 8.19125 17.9125 8.46625C18.6138 9.23625 19.04 10.2125 19.04 11.4225C19.04 15.6437 16.4688 16.5787 14.0213 16.8537C14.42 17.1975 14.7638 17.8575 14.7638 18.8887C14.7638 20.36 14.75 21.5425 14.75 21.9137C14.75 22.2025 14.9563 22.5462 15.5063 22.4362C19.8513 20.9787 23 16.8537 23 12C23 5.9225 18.0775 1 12 1Z"})})}function d({className:e}){return(0,t.jsxs)("svg",{viewBox:"600 300 400 400",fill:"none",className:e,children:[(0,t.jsx)("path",{fill:"#14120B",d:"M999.994 554.294C999.994 559.859 999.994 565.419 999.962 570.984C999.935 575.67 999.882 580.357 999.753 585.038C999.475 595.247 998.875 605.542 997.059 615.639C995.217 625.88 992.212 635.409 987.477 644.718C982.822 653.861 976.738 662.233 969.485 669.491C962.227 676.748 953.861 682.828 944.712 687.482C935.409 692.217 925.875 695.222 915.633 697.065C905.537 698.88 895.242 699.48 885.033 699.759C880.346 699.887 875.665 699.941 870.978 699.968C865.413 700.005 859.853 700 854.288 700H745.695C740.13 700 734.571 700 729.005 699.968C724.319 699.941 719.632 699.887 714.951 699.759C704.742 699.48 694.447 698.88 684.35 697.065C674.109 695.222 664.58 692.217 655.271 687.482C646.128 682.828 637.756 676.743 630.499 669.491C623.241 662.233 617.161 653.866 612.507 644.718C607.772 635.414 604.767 625.88 602.925 615.639C601.109 605.542 600.509 595.247 600.23 585.038C600.102 580.352 600.048 575.67 600.021 570.984C600 565.419 600 559.859 600 554.294V445.701C600 440.136 600 434.576 600.032 429.011C600.059 424.324 600.112 419.637 600.241 414.956C600.52 404.747 601.119 394.452 602.935 384.356C604.778 374.115 607.783 364.586 612.518 355.277C617.172 346.133 623.257 337.762 630.509 330.504C637.767 323.246 646.133 317.167 655.282 312.512C664.586 307.777 674.12 304.772 684.361 302.93C694.458 301.114 704.752 300.514 714.961 300.236C719.648 300.107 724.329 300.054 729.016 300.027C734.576 300 740.136 300 745.701 300H854.294C859.859 300 865.419 300 870.984 300.032C875.67 300.059 880.357 300.112 885.038 300.241C895.247 300.52 905.542 301.119 915.639 302.935C925.88 304.778 935.409 307.783 944.718 312.518C953.861 317.172 962.233 323.257 969.491 330.509C976.748 337.767 982.828 346.133 987.482 355.282C992.217 364.586 995.222 374.12 997.065 384.361C998.88 394.458 999.48 404.752 999.759 414.961C999.887 419.648 999.941 424.329 999.968 429.016C1000.01 434.581 1000 440.141 1000 445.706V554.299L999.994 554.294Z"}),(0,t.jsx)("path",{fill:"#72716D",d:"M800.004 500L923.821 571.486C923.061 572.804 921.957 573.929 920.591 574.716L804.863 641.531C801.858 643.266 798.151 643.266 795.146 641.531L679.417 574.716C678.052 573.929 676.948 572.804 676.188 571.486L800.004 500Z"}),(0,t.jsx)("path",{fill:"#55544F",d:"M800.005 357.168V500L676.188 571.486C675.427 570.168 675.004 568.647 675.004 567.072V432.928C675.004 429.774 676.686 426.865 679.418 425.285L795.141 358.47C796.646 357.602 798.323 357.168 799.999 357.168H800.005Z"}),(0,t.jsx)("path",{fill:"#43413C",d:"M923.815 428.515C923.055 427.197 921.951 426.072 920.586 425.285L804.857 358.47C803.357 357.602 801.68 357.168 800.004 357.168V500L923.821 571.486C924.581 570.168 925.005 568.647 925.005 567.072V432.928C925.005 431.348 924.587 429.838 923.821 428.515H923.815Z"}),(0,t.jsx)("path",{fill:"#D6D5D2",d:"M915.156 433.518C915.857 434.728 915.954 436.281 915.156 437.663L802.764 632.323C802.008 633.641 800 633.1 800 631.584V503.311C800 502.287 799.727 501.302 799.229 500.44L915.15 433.512H915.156V433.518Z"}),(0,t.jsx)("path",{fill:"white",d:"M915.155 433.518L799.233 500.445C798.741 499.588 798.023 498.86 797.134 498.345L686.049 434.209C684.731 433.453 685.272 431.445 686.788 431.445H911.566C913.162 431.445 914.459 432.307 915.155 433.518Z"})]})}function c({className:e}){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M12 24C12 18.2 12 15.5 10.1 13.9C8.5 12 5.8 12 0 12C5.8 12 8.5 12 10.1 10.1C12 8.5 12 5.8 12 0C12 5.8 12 8.5 13.9 10.1C15.5 12 18.2 12 24 12C18.2 12 15.5 12 13.9 13.9C12 15.5 12 18.2 12 24Z",fill:"url(#gemini-gradient)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"gemini-gradient",x1:"0",y1:"0",x2:"24",y2:"24",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#4285F4"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#886FBF"})]})})]})}e.s(["ProviderLogo",0,function({provider:e,className:f="h-4 w-4"}){switch(e){case"claude":return(0,t.jsx)(n,{className:f});case"codex":return(0,t.jsx)(i,{className:f});case"opencode":return(0,t.jsx)(a,{className:f});case"openclaw":return(0,t.jsx)(s,{className:f});case"hermes":return(0,t.jsx)(l,{className:f});case"pi":return(0,t.jsx)(o,{className:f});case"copilot":return(0,t.jsx)(u,{className:f});case"cursor":return(0,t.jsx)(d,{className:f});case"gemini":return(0,t.jsx)(c,{className:f});default:return(0,t.jsx)(r.Monitor,{className:f})}}])},38444,e=>{"use strict";var t=e.i(298699);let r=t.createContext(void 0),n={disableStyleElements:!1};e.s(["useCSPContext",0,function(){return t.useContext(r)??n}])},130577,682351,e=>{"use strict";function t(e,r=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,n))}e.s(["clamp",0,t],682351),e.s(["SCROLL_EDGE_TOLERANCE_PX",0,1,"getMaxScrollOffset",0,function(e,t){return Math.max(0,e-t)},"normalizeScrollOffset",0,function(e,r){if(r<=0)return 0;let n=t(e,0,r),i=r-n,a=n<=1,s=i<=1;return a&&s?n<=i?0:r:a?0:s?r:n}],130577)},428365,e=>{"use strict";var t=e.i(368075);let r="base-ui-disable-scrollbar";e.s(["styleDisableScrollbar",0,{className:r,getElement:e=>(0,t.jsx)("style",{nonce:e,href:r,precedence:"base-ui:low",children:`.${r}{scrollbar-width:none}.${r}::-webkit-scrollbar{display:none}`})}])},716532,220308,e=>{"use strict";e.i(459119);var t,r=e.i(398258),n=e.i(298699),i=e.i(128726);let a=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),s={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},l={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},o={disabled:!1,...l};e.s(["DEFAULT_FIELD_ROOT_STATE",0,o,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,l,"DEFAULT_VALIDITY_STATE",0,s,"fieldValidityMapping",0,{valid:e=>null===e?null:e?{[a.valid]:""}:{[a.invalid]:""}}],220308);let u=n.createContext({invalid:void 0,name:void 0,validityData:{state:s,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,touched:l.touched,setTouched:i.NOOP,dirty:l.dirty,setDirty:i.NOOP,filled:l.filled,setFilled:i.NOOP,focused:l.focused,setFocused:i.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:o,markedDirtyRef:{current:!1},registerFieldControl:i.NOOP,validation:{getValidationProps:(e=i.EMPTY_OBJECT)=>e,getInputValidationProps:(e=i.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}});e.s(["FieldRootContext",0,u,"useFieldRootContext",0,function(e=!0){let t=n.useContext(u);if(t.setValidityData===i.NOOP&&!e)throw Error((0,r.default)(28));return t}],716532)},482691,e=>{"use strict";var t=e.i(298699),r=e.i(128726);let n=t.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:r.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});e.s(["useFormContext",0,function(){return t.useContext(n)}])},536735,e=>{"use strict";var t=e.i(298699),r=e.i(128726);let n=t.createContext({controlId:void 0,registerControlId:r.NOOP,labelId:void 0,setLabelId:r.NOOP,messageIds:[],setMessageIds:r.NOOP,getDescriptionProps:e=>e});e.s(["LabelableContext",0,n,"useLabelableContext",0,function(){return t.useContext(n)}])},589193,e=>{"use strict";var t=e.i(92615),r=e.i(208700),n=e.i(773825),i=e.i(677320),a=e.i(389068),s=e.i(541126),l=e.i(536735);e.s(["useLabel",0,function(e={}){let o,{id:u,fallbackControlId:d,native:c=!1,setLabelId:f,focusControl:h}=e,{controlId:m,setLabelId:x}=(0,l.useLabelableContext)(),g=(0,n.useStableCallback)(e=>{x(e),f?.(e)}),p=(o=(0,s.useBaseUiId)(u),(0,a.useIsoLayoutEffect)(()=>(g(o),()=>{g(void 0)}),[o,g]),o),v=m??d;function b(e){let n=(0,i.getTarget)(e.nativeEvent);n?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),c||function(e){if(h)return h(e,v);if(!v)return;let n=(0,r.ownerDocument)(e.currentTarget).getElementById(v);(0,t.isHTMLElement)(n)&&n.focus({focusVisible:!0})}(e))}return c?{id:p,htmlFor:v??void 0,onMouseDown:b}:{id:p,onClick:b,onPointerDown(e){e.preventDefault()}}}],589193)},945656,e=>{"use strict";var t=e.i(298699),r=e.i(389068),n=e.i(716532);e.s(["useRegisterFieldControl",0,function(e,i){let{enabled:a=!0,getValue:s,id:l,value:o}=i,{registerFieldControl:u}=(0,n.useFieldRootContext)(),d=t.useRef(null);d.current||(d.current=Symbol()),(0,r.useIsoLayoutEffect)(()=>{let t=d.current;if(t&&a)return u(t,{controlRef:e,getValue:s,id:l,value:o}),()=>{u(t,void 0)}},[e,a,s,l,u,o])}])},734525,e=>{"use strict";var t=e.i(298699),r=e.i(389068),n=e.i(773825),i=e.i(610580),a=e.i(92615),s=e.i(128726),l=e.i(541126),o=e.i(536735);e.s(["useLabelableId",0,function(e={}){let{id:u,implicit:d=!1,controlRef:c}=e,{controlId:f,registerControlId:h}=(0,o.useLabelableContext)(),m=(0,l.useBaseUiId)(u),x=d?f:void 0,g=(0,i.useRefWithInit)(()=>Symbol("labelable-control")),p=t.useRef(!1),v=t.useRef(null!=u),b=(0,n.useStableCallback)(()=>{p.current&&h!==s.NOOP&&(p.current=!1,h(g.current,void 0))});return(0,r.useIsoLayoutEffect)(()=>{let e;if(h!==s.NOOP){if(d){let t=c?.current;e=(0,a.isElement)(t)&&null!=t.closest("label")?u??null:x??m}else if(null!=u)v.current=!0,e=u;else{if(!v.current)return void b();e=m}if(void 0===e)return void b();p.current=!0,h(g.current,e)}},[u,c,x,h,d,m,g,b]),t.useEffect(()=>b,[b]),f??m}])},677536,e=>{"use strict";let t=(0,e.i(706875).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},121141,e=>{"use strict";let t=(0,e.i(706875).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],121141)},858924,e=>{"use strict";let t=(0,e.i(706875).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],858924)},393153,e=>{"use strict";var t=e.i(368075),r=e.i(779646),n=e.i(186339);e.s(["ConfirmDialog",0,function({open:e,onOpenChange:i,title:a,description:s,confirmLabel:l="Remove",loadingLabel:o,confirmVariant:u="destructive",loading:d=!1,onConfirm:c}){return(0,t.jsx)(r.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(r.DialogContent,{showCloseButton:!1,children:[(0,t.jsxs)(r.DialogHeader,{children:[(0,t.jsx)(r.DialogTitle,{children:a}),(0,t.jsx)(r.DialogDescription,{children:s})]}),(0,t.jsxs)(r.DialogFooter,{children:[(0,t.jsx)(n.Button,{variant:"outline",size:"sm",onClick:()=>i(!1),disabled:d,children:"Cancel"}),(0,t.jsx)(n.Button,{variant:u,size:"sm",onClick:c,disabled:d,children:d?o??`${l}...`:l})]})]})})}])},672845,e=>{"use strict";var t=e.i(925586);e.s(["X",()=>t.default])},380594,e=>{"use strict";let t=(0,e.i(706875).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],380594)},401280,e=>{"use strict";let t=(0,e.i(706875).default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);e.s(["GitBranch",0,t],401280)},255450,e=>{"use strict";let t=(0,e.i(706875).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],255450)},313653,e=>{"use strict";var t=e.i(20299);e.s(["ChevronRight",()=>t.default])},903324,e=>{"use strict";let t=(0,e.i(706875).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],903324)},255334,e=>{"use strict";var t,r,n,i=e.i(368075);e.s([],382330),e.i(382330),e.i(459119);var a=e.i(298699),s=e.i(969183),l=e.i(389068),o=e.i(773825),u=e.i(597849),d=e.i(572459),c=e.i(398258);let f=a.createContext(void 0);function h(){let e=a.useContext(f);if(void 0===e)throw Error((0,c.default)(64));return e}let m=((t={}).activationDirection="data-activation-direction",t.orientation="data-orientation",t),x={tabActivationDirection:e=>({[m.activationDirection]:e})},g=a.forwardRef(function(e,t){let{className:r,defaultValue:n=0,onValueChange:c,orientation:h="horizontal",render:m,value:g,style:v,...b}=e,C=Object.hasOwn(e,"defaultValue"),y=a.useRef([]),[j,w]=a.useState(()=>new Map),[N,k]=(0,s.useControlled)({controlled:g,default:n,name:"Tabs",state:"value"}),R=void 0!==g,[M,E]=a.useState(()=>new Map),S=a.useCallback(e=>{if(void 0===e)return null;for(let[t,r]of M.entries())if(null!=r&&e===(r.value??r.index))return t;return null},[M]),[T,I]=a.useState(()=>({previousValue:N,tabActivationDirection:"none"})),{previousValue:A,tabActivationDirection:D}=T,L=D,O=!1;A!==N&&(L=p(A,N,h,M),O=null!=A&&null!=N&&null==S(N));let P=O?A:N,z=A!==P||D!==L;(0,l.useIsoLayoutEffect)(()=>{z&&I({previousValue:P,tabActivationDirection:L})},[P,z,L]);let F=(0,o.useStableCallback)((e,t)=>{t.activationDirection=p(N,e,h,M),c?.(e,t),t.isCanceled||k(e)}),H=(0,o.useStableCallback)((e,t)=>{w(r=>{if(r.get(e)===t)return r;let n=new Map(r);return n.set(e,t),n})}),V=(0,o.useStableCallback)((e,t)=>{w(r=>{if(!r.has(e)||r.get(e)!==t)return r;let n=new Map(r);return n.delete(e),n})}),B=a.useCallback(e=>j.get(e),[j]),_=a.useCallback(e=>{for(let t of M.values())if(e===t?.value)return t?.id},[M]),$=a.useMemo(()=>({getTabElementBySelectedValue:S,getTabIdByPanelValue:_,getTabPanelIdByValue:B,onValueChange:F,orientation:h,registerMountedTabPanel:H,setTabMap:E,unregisterMountedTabPanel:V,tabActivationDirection:L,value:N}),[S,_,B,F,h,H,E,V,L,N]),W=a.useMemo(()=>{for(let e of M.values())if(null!=e&&e.value===N)return e},[M,N]),K=a.useMemo(()=>{for(let e of M.values())if(null!=e&&!e.disabled)return e.value},[M]);(0,l.useIsoLayoutEffect)(()=>{if(R||0===M.size)return;let e=W?.disabled,t=null==W&&null!==N;if(C&&e&&N===n||!e&&!t)return;let r=K??null;N!==r&&(k(r),I(e=>"none"===e.tabActivationDirection?e:{...e,tabActivationDirection:"none"}))},[n,K,C,R,W,k,M,N]);let Y={orientation:h,tabActivationDirection:L},G=(0,u.useRenderElement)("div",e,{state:Y,ref:t,props:b,stateAttributesMapping:x});return(0,i.jsx)(f.Provider,{value:$,children:(0,i.jsx)(d.CompositeList,{elementsRef:y,children:G})})});function p(e,t,r,n){if(null==e||null==t)return"none";let i=null,a=null;for(let[r,s]of n.entries()){if(null==s)continue;let n=s.value??s.index;if(e===n&&(i=r),t===n&&(a=r),null!=i&&null!=a)break}if(null==i||null==a)return i!==a&&("number"==typeof e||"string"==typeof e)&&typeof e==typeof t?"horizontal"===r?t>e?"right":"left":t>e?"down":"up":"none";let s=i.getBoundingClientRect(),l=a.getBoundingClientRect();if("horizontal"===r){if(l.left<s.left)return"left";if(l.left>s.left)return"right"}else{if(l.top<s.top)return"up";if(l.top>s.top)return"down"}return"none"}var v=e.i(208700),b=e.i(541126),C=e.i(616117);let y="data-composite-item-active";var j=e.i(563856);let w=a.createContext(void 0);function N(){let e=a.useContext(w);if(void 0===e)throw Error((0,c.default)(65));return e}var k=e.i(211752),R=e.i(857504),M=e.i(677320);let E=a.forwardRef(function(e,t){let{className:r,disabled:n=!1,render:i,value:s,id:o,nativeButton:d=!0,style:c,...f}=e,{value:m,getTabPanelIdByValue:x,orientation:g}=h(),{activateOnFocus:p,highlightedTabIndex:w,onTabActivation:E,registerTabResizeObserverElement:S,setHighlightedTabIndex:T,tabsListElement:I}=N(),A=(0,b.useBaseUiId)(o),D=a.useMemo(()=>({disabled:n,id:A,value:s}),[n,A,s]),{compositeProps:L,compositeRef:O,index:P}=(0,j.useCompositeItem)({metadata:D}),z=s===m,F=a.useRef(!1),H=a.useRef(null);a.useEffect(()=>{let e=H.current;if(e)return S(e)},[S]),(0,l.useIsoLayoutEffect)(()=>{if(F.current){F.current=!1;return}if(z&&P>-1&&w!==P){if(null!=I){let e=(0,M.activeElement)((0,v.ownerDocument)(I));if(e&&(0,M.contains)(I,e))return}n||T(P)}},[z,P,w,T,n,I]);let{getButtonProps:V,buttonRef:B}=(0,C.useButton)({disabled:n,native:d,focusableWhenDisabled:!0}),_=x(s),$=a.useRef(!1),W=a.useRef(!1);return(0,u.useRenderElement)("button",e,{state:{disabled:n,active:z,orientation:g},ref:[t,B,O,H],props:[L,{role:"tab","aria-controls":_,"aria-selected":z,id:A,onClick:function(e){z||n||E(s,(0,k.createChangeEventDetails)(R.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"}))},onFocus:function(e){z||(P>-1&&!n&&T(P),!n&&p&&(!$.current||$.current&&W.current)&&E(s,(0,k.createChangeEventDetails)(R.REASONS.none,e.nativeEvent,void 0,{activationDirection:"none"})))},onPointerDown:function(e){z||n||($.current=!0,e.button&&0!==e.button||(W.current=!0,(0,v.ownerDocument)(e.currentTarget).addEventListener("pointerup",function(){$.current=!1,W.current=!1},{once:!0})))},[y]:z?"":void 0,onKeyDownCapture(){F.current=!0}},f,V]})});var S=e.i(340344),T=e.i(207102),I=e.i(128726);function A(){return I.NOOP}function D(){return!1}function L(){return!0}let O=((r={}).activeTabLeft="--active-tab-left",r.activeTabRight="--active-tab-right",r.activeTabTop="--active-tab-top",r.activeTabBottom="--active-tab-bottom",r.activeTabWidth="--active-tab-width",r.activeTabHeight="--active-tab-height",r);var P=e.i(38444);let z={...x,activeTabPosition:()=>null,activeTabSize:()=>null},F=a.forwardRef(function(e,t){let{className:r,render:n,renderBeforeHydration:s=!1,style:l,...o}=e,{nonce:d}=(0,P.useCSPContext)(),{getTabElementBySelectedValue:c,orientation:f,tabActivationDirection:m,value:x}=h(),{tabsListElement:g,registerIndicatorUpdateListener:p}=N(),v=(0,T.useSyncExternalStore)(A,D,L),b=function(){let[,e]=a.useState({});return a.useCallback(()=>{e({})},[])}();a.useEffect(()=>p(b),[p,b]);let C=0,y=0,j=0,w=0,k=0,R=0,M=!1;if(null!=x&&null!=g){let e=c(x);if(M=!0,null!=e){let{width:t,height:r}=(0,S.getCssDimensions)(e),{width:n,height:i}=(0,S.getCssDimensions)(g),a=e.getBoundingClientRect(),s=g.getBoundingClientRect(),l=n>0?s.width/n:1,o=i>0?s.height/i:1;if(Math.abs(l)>Number.EPSILON&&Math.abs(o)>Number.EPSILON){let e=a.left-s.left,t=a.top-s.top;C=e/l+g.scrollLeft-g.clientLeft,j=t/o+g.scrollTop-g.clientTop}else C=e.offsetLeft,j=e.offsetTop;k=t,R=r,y=g.scrollWidth-C-k,w=g.scrollHeight-j-R}}let E=a.useMemo(()=>M?{left:C,right:y,top:j,bottom:w}:null,[C,y,j,w,M]),I=a.useMemo(()=>M?{width:k,height:R}:null,[k,R,M]),F=a.useMemo(()=>{if(M)return{[O.activeTabLeft]:`${C}px`,[O.activeTabRight]:`${y}px`,[O.activeTabTop]:`${j}px`,[O.activeTabBottom]:`${w}px`,[O.activeTabWidth]:`${k}px`,[O.activeTabHeight]:`${R}px`}},[C,y,j,w,k,R,M]),H=M&&k>0&&R>0,V=(0,u.useRenderElement)("span",e,{state:{orientation:f,activeTabPosition:E,activeTabSize:I,tabActivationDirection:m},ref:t,props:[{role:"presentation",style:F,hidden:!H},o,{suppressHydrationWarning:!0}],stateAttributesMapping:z});return null==x?null:(0,i.jsxs)(a.Fragment,{children:[V,v&&s&&(0,i.jsx)("script",{nonce:d,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript.previousElementSibling;if(!t)return;const e=t.closest(\'[role="tablist"]\');if(!e)return;const i=e.querySelector("[data-active]");if(!i)return;if(0===i.offsetWidth||0===e.offsetWidth)return;let o=0,n=0,h=0,l=0,r=0,f=0;function s(t){const e=getComputedStyle(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;return(Math.round(i)!==t.offsetWidth||Math.round(o)!==t.offsetHeight)&&(i=t.offsetWidth,o=t.offsetHeight),{width:i,height:o}}if(null!=i&&null!=e){const{width:t,height:c}=s(i),{width:u,height:d}=s(e),a=i.getBoundingClientRect(),g=e.getBoundingClientRect(),p=u>0?g.width/u:1,b=d>0?g.height/d:1;if(Math.abs(p)>Number.EPSILON&&Math.abs(b)>Number.EPSILON){const t=a.left-g.left,i=a.top-g.top;o=t/p+e.scrollLeft-e.clientLeft,h=i/b+e.scrollTop-e.clientTop}else o=i.offsetLeft,h=i.offsetTop;r=t,f=c,n=e.scrollWidth-o-r,l=e.scrollHeight-h-f}function c(e,i){t.style.setProperty(`--active-tab-${e}`,`${i}px`)}c("left",o),c("right",n),c("top",h),c("bottom",l),c("width",r),c("height",f),r>0&&f>0&&t.removeAttribute("hidden")}();'},suppressHydrationWarning:!0})]})});var H=e.i(191760),V=e.i(106580),B=e.i(570868),_=e.i(221995),$=e.i(77902);let W=((n={}).index="data-index",n.activationDirection="data-activation-direction",n.orientation="data-orientation",n.hidden="data-hidden",n[n.startingStyle=V.TransitionStatusDataAttributes.startingStyle]="startingStyle",n[n.endingStyle=V.TransitionStatusDataAttributes.endingStyle]="endingStyle",n),K={...x,...V.transitionStatusMapping},Y=a.forwardRef(function(e,t){let{className:r,value:n,render:i,keepMounted:s=!1,style:o,...d}=e,{value:c,getTabIdByPanelValue:f,orientation:m,tabActivationDirection:x,registerMountedTabPanel:g,unregisterMountedTabPanel:p}=h(),v=(0,b.useBaseUiId)(),C=a.useMemo(()=>({id:v,value:n}),[v,n]),{ref:y,index:j}=(0,$.useCompositeListItem)({metadata:C}),w=n===c,{mounted:N,transitionStatus:k,setMounted:R}=(0,_.useTransitionStatus)(w),M=!N,E=f(n),S=a.useRef(null),T=(0,u.useRenderElement)("div",e,{state:{hidden:M,orientation:m,tabActivationDirection:x,transitionStatus:k},ref:[t,y,S],props:[{"aria-labelledby":E,hidden:M,id:v,role:"tabpanel",tabIndex:w?0:-1,inert:(0,H.inertValue)(!w),[W.index]:j},d],stateAttributesMapping:K});return((0,B.useOpenChangeComplete)({open:w,ref:S,onComplete(){w||R(!1)}}),(0,l.useIsoLayoutEffect)(()=>{if((!M||s)&&null!=v)return g(n,v),()=>{p(n,v)}},[M,s,n,v,g,p]),s||N)?T:null});var G=e.i(617517),U=e.i(850746),X=e.i(845879);let q=[];var Z=e.i(484665),J=e.i(167014);function Q(e){let{render:t,className:r,style:n,refs:s=I.EMPTY_ARRAY,props:l=I.EMPTY_ARRAY,state:c=I.EMPTY_OBJECT,stateAttributesMapping:f,highlightedIndex:h,onHighlightedIndexChange:m,orientation:x,dense:g,itemSizes:p,loopFocus:v,onLoop:b,cols:C,enableHomeAndEndKeys:j,onMapChange:w,stopEventPropagation:N=!0,rootRef:k,disabledIndices:R,modifierKeys:E,highlightItemOnHover:S=!1,tag:T="div",...A}=e,{props:D,highlightedIndex:L,onHighlightedIndexChange:O,elementsRef:P,onMapChange:z,relayKeyboardEvent:F}=function(e){let{itemSizes:t,cols:r=1,loopFocus:n=!0,onLoop:i,dense:s=!1,orientation:l="both",direction:u,highlightedIndex:d,onHighlightedIndexChange:c,rootRef:f,enableHomeAndEndKeys:h=!1,stopEventPropagation:m=!1,disabledIndices:x,modifierKeys:g=q}=e,[p,v]=a.useState(0),b=r>1,C=a.useRef(null),j=(0,G.useMergedRefs)(C,f),w=a.useRef([]),N=a.useRef(!1),k=d??p,R=(0,o.useStableCallback)((e,t=!1)=>{if((c??v)(e),t){let t=w.current[e];(0,U.scrollIntoViewIfNeeded)(C.current,t,u,l)}}),E=(0,o.useStableCallback)(e=>{if(0===e.size||N.current)return;N.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(y))??null,n=r?t.indexOf(r):-1;-1!==n&&R(n),(0,U.scrollIntoViewIfNeeded)(C.current,r,u,l)}),S=(0,o.useStableCallback)((e,t,r)=>i?i?.(e,t,r,w):r),T=a.useMemo(()=>({"aria-orientation":"both"===l?void 0:l,ref:j,onFocus(e){let t=C.current,r=(0,M.getTarget)(e.nativeEvent);t&&null!=r&&(0,U.isNativeInput)(r)&&r.setSelectionRange(0,r.value.length??0)},onKeyDown(e){let a=h?U.ALL_KEYS:U.ARROW_KEYS;if(!a.has(e.key)||function(e,t){for(let r of U.MODIFIER_KEYS.values())if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}(e,g)||!C.current)return;let o="rtl"===u,d=o?U.ARROW_LEFT:U.ARROW_RIGHT,c={horizontal:d,vertical:U.ARROW_DOWN,both:d}[l],f=o?U.ARROW_RIGHT:U.ARROW_LEFT,p={horizontal:f,vertical:U.ARROW_UP,both:f}[l],v=(0,M.getTarget)(e.nativeEvent);if(null!=v&&(0,U.isNativeInput)(v)&&!(null==v||v.hasAttribute("disabled")||"true"===v.getAttribute("aria-disabled"))){let t=v.selectionStart,r=v.selectionEnd,n=v.value??"";if(null==t||e.shiftKey||t!==r||e.key!==p&&t<n.length||e.key!==c&&t>0)return}let y=k,j=(0,X.getMinListIndex)(w,x),N=(0,X.getMaxListIndex)(w,x);if(b){let i=t||Array.from({length:w.current.length},()=>({width:1,height:1})),a=(0,X.createGridCellMap)(i,r,s),u=a.findIndex(e=>null!=e&&!(0,X.isListIndexDisabled)(w.current,e,x)),d=a.reduce((e,t,r)=>null==t||(0,X.isListIndexDisabled)(w.current,t,x)?e:r,-1);y=a[(0,X.getGridNavigatedIndex)(a.map(e=>null!=e?w.current[e]:null),{event:e,orientation:l,loopFocus:n,onLoop:S,cols:r,disabledIndices:(0,X.getGridCellIndices)([...x||w.current.map((e,t)=>(0,X.isListIndexDisabled)(w.current,t)?t:void 0),void 0],a),minIndex:u,maxIndex:d,prevIndex:(0,X.getGridCellIndexOfCorner)(k>N?j:k,i,a,r,e.key===U.ARROW_DOWN?"bl":e.key===U.ARROW_RIGHT?"tr":"tl"),rtl:o})]}let E={horizontal:[d],vertical:[U.ARROW_DOWN],both:[d,U.ARROW_DOWN]}[l],T={horizontal:[f],vertical:[U.ARROW_UP],both:[f,U.ARROW_UP]}[l],I=b?a:({horizontal:h?U.HORIZONTAL_KEYS_WITH_EXTRA_KEYS:U.HORIZONTAL_KEYS,vertical:h?U.VERTICAL_KEYS_WITH_EXTRA_KEYS:U.VERTICAL_KEYS,both:a})[l];h&&(e.key===U.HOME?y=j:e.key===U.END&&(y=N)),y===k&&(E.includes(e.key)||T.includes(e.key))&&(n&&y===N&&E.includes(e.key)?(y=j,i&&(y=i(e,k,y,w))):n&&y===j&&T.includes(e.key)?(y=N,i&&(y=i(e,k,y,w))):y=(0,X.findNonDisabledListIndex)(w.current,{startingIndex:y,decrement:T.includes(e.key),disabledIndices:x})),y===k||(0,X.isIndexOutOfListBounds)(w.current,y)||(m&&e.stopPropagation(),I.has(e.key)&&e.preventDefault(),R(y,!0),queueMicrotask(()=>{w.current[y]?.focus()}))}}),[r,s,u,x,w,h,k,b,t,n,i,S,j,g,R,l,m]);return a.useMemo(()=>({props:T,highlightedIndex:k,onHighlightedIndexChange:R,elementsRef:w,disabledIndices:x,onMapChange:E,relayKeyboardEvent:T.onKeyDown}),[T,k,R,w,x,E])}({itemSizes:p,cols:C,loopFocus:v,onLoop:b,dense:g,orientation:x,highlightedIndex:h,onHighlightedIndexChange:m,rootRef:k,stopEventPropagation:N,enableHomeAndEndKeys:j,direction:(0,J.useDirection)(),disabledIndices:R,modifierKeys:E}),H=(0,u.useRenderElement)(T,e,{state:c,ref:s,props:[D,...l,A],stateAttributesMapping:f}),V=a.useMemo(()=>({highlightedIndex:L,onHighlightedIndexChange:O,highlightItemOnHover:S,relayKeyboardEvent:F}),[L,O,S,F]);return(0,i.jsx)(Z.CompositeRootContext.Provider,{value:V,children:(0,i.jsx)(d.CompositeList,{elementsRef:P,onMapChange:e=>{w?.(e),z(e)},children:H})})}let ee=a.forwardRef(function(e,t){let{activateOnFocus:r=!1,className:n,loopFocus:s=!0,render:l,style:u,...d}=e,{onValueChange:c,orientation:f,value:m,setTabMap:g,tabActivationDirection:p}=h(),[v,b]=a.useState(0),[C,y]=a.useState(null),j=a.useRef(new Set),N=a.useRef(new Set),k=a.useRef(null),R=(0,o.useStableCallback)(()=>{j.current.forEach(e=>{e()})});a.useEffect(()=>{if("u"<typeof ResizeObserver)return;let e=new ResizeObserver(()=>{j.current.size&&R()});return k.current=e,C&&e.observe(C),N.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),k.current=null}},[C,R]);let M=(0,o.useStableCallback)(e=>(j.current.add(e),()=>{j.current.delete(e)})),E=(0,o.useStableCallback)(e=>(N.current.add(e),k.current?.observe(e),()=>{N.current.delete(e),k.current?.unobserve(e)})),S=(0,o.useStableCallback)((e,t)=>{e!==m&&c(e,t)}),T=a.useMemo(()=>({activateOnFocus:r,highlightedTabIndex:v,registerIndicatorUpdateListener:M,registerTabResizeObserverElement:E,onTabActivation:S,setHighlightedTabIndex:b,tabsListElement:C}),[r,v,M,E,S,b,C]);return(0,i.jsx)(w.Provider,{value:T,children:(0,i.jsx)(Q,{render:l,className:n,style:u,state:{orientation:f,tabActivationDirection:p},refs:[t,y],props:[{"aria-orientation":"vertical"===f?"vertical":void 0,role:"tablist"},d],stateAttributesMapping:x,highlightedIndex:v,enableHomeAndEndKeys:!0,loopFocus:s,orientation:f,onHighlightedIndexChange:b,onMapChange:g,disabledIndices:I.EMPTY_ARRAY})})});e.s(["Indicator",0,F,"List",0,ee,"Panel",0,Y,"Root",0,g,"Tab",0,E],162401);var et=e.i(162401),et=et,er=e.i(294237),en=e.i(613349);let ei=(0,er.cva)("group/tabs-list inline-flex max-w-full overflow-x-auto overflow-y-hidden items-center justify-start rounded-lg p-0.75 text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});e.s(["Tabs",0,function({className:e,orientation:t="horizontal",...r}){return(0,i.jsx)(et.Root,{"data-slot":"tabs","data-orientation":t,className:(0,en.cn)("group/tabs flex min-w-0 gap-2 data-horizontal:flex-col",e),...r})},"TabsContent",0,function({className:e,...t}){return(0,i.jsx)(et.Panel,{"data-slot":"tabs-content",className:(0,en.cn)("flex-1 text-sm outline-none",e),...t})},"TabsList",0,function({className:e,variant:t="default",...r}){return(0,i.jsx)(et.List,{"data-slot":"tabs-list","data-variant":t,className:(0,en.cn)(ei({variant:t}),e),...r})},"TabsTrigger",0,function({className:e,...t}){return(0,i.jsx)(et.Tab,{"data-slot":"tabs-trigger",className:(0,en.cn)("relative inline-flex h-[calc(100%-1px)] shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:-bottom-1.25 group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",e),...t})}],255334)},309481,e=>{"use strict";let t=(0,e.i(706875).default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);e.s(["History",0,t],309481)},73857,e=>{"use strict";let t=(0,e.i(706875).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);e.s(["FolderOpen",0,t],73857)},669312,e=>{"use strict";let t=(0,e.i(706875).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["Video",0,t],669312)},537510,e=>{"use strict";var t=e.i(368075),r=e.i(298699),n=e.i(208020),i=e.i(789994),a=e.i(355578),s=e.i(500324),l=e.i(186339),o=e.i(393153),u=e.i(255334),d=e.i(613349),c=e.i(706875);let f=(0,c.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var h=e.i(656955),m=e.i(740513),x=e.i(222862),g=e.i(880932),p=e.i(617108);e.i(400175);var v=e.i(108772),b=e.i(126366);function C({ratio:e,size:r=16,stroke:n=1.5}){let i=(r-n)/2,a=2*Math.PI*i,s=(e<=0?0:e>=1?1:Math.log1p(99*e)/Math.log(100))*a;return(0,t.jsxs)("svg",{width:r,height:r,className:"shrink-0 -rotate-90","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:r/2,cy:r/2,r:i,fill:"none",stroke:"currentColor",strokeWidth:n,className:"text-border"}),(0,t.jsx)("circle",{cx:r/2,cy:r/2,r:i,fill:"none",stroke:"currentColor",strokeWidth:n,strokeDasharray:`${s} ${a-s}`,strokeLinecap:"round",className:(0,d.cn)("transition-all duration-300",e>.9?"text-destructive/70":e>.7?"text-yellow-500/50":"text-muted-foreground/30")})]})}function y({agent:e,runtimes:n,modelOptions:i,onSave:a,onCancel:o,saving:c}){let{workspaceId:j}=(0,s.useWorkspace)(),[w,N]=(0,r.useState)("general"),[k,R]=(0,r.useState)(e.name??""),[M,E]=(0,r.useState)(e.description??""),[S,T]=(0,r.useState)(e.runtime_id??""),[I,A]=(0,r.useState)(()=>(0,b.parseAvatarUrl)(e.avatar_url)??b.DEFAULT_CONFIG),[D,L]=(0,r.useState)(()=>{let t=e.runtime_config;return"string"==typeof t?.model?t.model:""}),[O,P]=(0,r.useState)(e.instructions??""),[z,F]=(0,r.useState)(e.instructions??""),H=(0,r.useRef)(O);(0,r.useEffect)(()=>{H.current=O},[O]);let V=(0,r.useRef)(z);(0,r.useEffect)(()=>{V.current=z},[z]);let B=(0,r.useRef)(null),_=(0,r.useRef)(!1),$=(0,r.useCallback)(async()=>{if(_.current)return;let t=H.current;if(t!==V.current){_.current=!0;try{await (0,x.updateAgent)(e.id,{instructions:t},j),F(t)}catch(e){g.toast.error(e instanceof Error?e.message:"Failed to save instructions")}finally{_.current=!1}}},[e.id,j]),W=(0,r.useCallback)(()=>{B.current&&clearTimeout(B.current),B.current=setTimeout($,500)},[$]),K=(0,r.useCallback)(e=>{P(e),W()},[W]);(0,r.useEffect)(()=>{let t=()=>{if(B.current&&clearTimeout(B.current),H.current!==V.current){let t=new URLSearchParams({workspace_id:j});fetch(`/api/agents/${e.id}?${t}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({instructions:H.current}),keepalive:!0})}};return window.addEventListener("beforeunload",t),()=>window.removeEventListener("beforeunload",t)},[e.id,j]),(0,r.useEffect)(()=>()=>{B.current&&clearTimeout(B.current),H.current!==V.current&&$()},[$]);let Y=n.find(e=>e.id===S),G=Y&&i?i[Y.provider]??[]:[],U=async e=>{e.preventDefault(),await a({name:k,description:M,runtime_id:S,runtime_config:D?{model:D}:{},avatar_url:(0,b.serializeAvatarConfig)(I)})},X=[{id:"general",label:"General"},{id:"instruction",label:"Instruction"},{id:"email",label:"Email"},{id:"permission",label:"Permission"}],q="general"===w||"email"===w,Z=O.length/5e4;return(0,t.jsxs)("div",{className:"flex flex-1 min-h-0",children:[(0,t.jsx)("nav",{className:"w-48 shrink-0 border-r border-border/50 py-3 px-2 hidden md:block",children:X.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>N(e.id),className:(0,d.cn)("w-full rounded-md px-2.5 py-1.5 text-left text-sm transition-colors",w===e.id?"bg-accent text-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:e.label},e.id))}),(0,t.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col",children:[(0,t.jsx)("div",{className:"px-4 pt-2 md:hidden",children:(0,t.jsx)(u.Tabs,{className:"items-center",value:w,onValueChange:e=>N(e),children:(0,t.jsx)(u.TabsList,{className:"h-auto gap-1",children:X.map(e=>(0,t.jsx)(u.TabsTrigger,{value:e.id,children:e.label},e.id))})})}),"instruction"===w?(0,t.jsxs)("div",{className:"flex flex-col flex-1 min-h-0",children:[(0,t.jsx)("div",{className:"flex-1 px-6 pt-4 pb-4 overflow-y-auto",children:(0,t.jsx)(m.MarkdownEditor,{value:O,onChange:K,placeholder:"Write instructions for this agent...",minHeight:"calc(100vh - 240px)",contentType:"markdown",variant:"seamless"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 px-6 py-3 border-t border-border/50",children:[(0,t.jsx)(C,{ratio:Z}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Agent-specific instruction. Your global instruction is prepended automatically."})]})]}):(0,t.jsx)("div",{className:"flex-1 overflow-y-auto thin-scrollbar px-5 py-6",children:q?(0,t.jsxs)("form",{onSubmit:U,className:"mx-auto max-w-md space-y-4",children:["general"===w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v.AvatarPickerDialog,{config:I,onChange:A}),(0,t.jsx)(p.GeneralFields,{name:k,setName:R,description:M,setDescription:E,model:D,setModel:L,runtimeId:S,setRuntimeId:T,runtimes:n,providerModels:G}),(0,t.jsx)(p.PinToggle,{agentId:e.id})]}),"email"===w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rounded-lg border border-border/50 bg-muted/30 px-4 py-3",children:[(0,t.jsxs)("div",{className:"mb-2.5 flex items-center gap-1.5",children:[(0,t.jsx)(f,{className:"size-3 text-muted-foreground/60"}),(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground/60",children:"Set at creation"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:"Email"}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e.email_handle?`${e.email_handle}@alook.ai`:"Not configured"})]})]}),(0,t.jsx)(h.CustomEmailForm,{agentId:e.id,workspaceId:e.workspace_id}),e.email_handle&&(0,t.jsx)("div",{className:"border-t border-border/50 pt-4 mt-4",children:(0,t.jsx)(p.AllowedSendersTab,{agentId:e.id})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 pt-2",children:[(0,t.jsx)(l.Button,{type:"button",variant:"ghost",size:"sm",onClick:o,children:"Cancel"}),(0,t.jsx)(l.Button,{type:"submit",size:"sm",disabled:c||!k,children:c?"Saving...":"Save"})]})]}):(0,t.jsx)(p.AgentAccessTab,{agentId:e.id,ownerId:e.owner_id})})]})]})}var j=e.i(877942);let w=(0,c.default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);var N=e.i(30187),k=e.i(872937),R=e.i(607711),M=e.i(224950),E=e.i(329686);function S(){let{channels:e,activeChannel:n,loading:i,setActiveChannel:a,createChannel:s,renameChannel:l,deleteChannel:o}=(0,k.useChannel)(),[u,d]=(0,r.useState)(!1),[c,f]=(0,r.useState)(null),[h,m]=(0,r.useState)(null);return i?(0,t.jsxs)("div",{className:"h-8 flex items-center gap-1.5 px-2 mb-1 shrink-0",children:[(0,t.jsx)("div",{className:"h-5 w-14 rounded-md bg-muted animate-pulse"}),(0,t.jsx)("div",{className:"h-5 w-12 rounded-md bg-muted animate-pulse"}),(0,t.jsx)("div",{className:"h-5 w-16 rounded-md bg-muted animate-pulse"})]}):(0,t.jsxs)("div",{className:"h-8 flex items-center gap-1.5 px-2 mb-1 overflow-x-auto thin-scrollbar shrink-0",children:[e.map(e=>c===e.id?(0,t.jsx)(A,{currentName:e.name,onSave:async t=>{try{await l(e.id,t)}catch(e){g.toast.error(e instanceof Error?e.message:"Failed to rename")}f(null)},onCancel:()=>f(null)},e.id):(0,t.jsx)(T,{id:e.id,name:e.name,active:e.name===n,deleting:h===e.id,onSelect:()=>a(e.name),onRename:()=>f(e.id),onDeleteRequest:()=>m(e.id),onDeleteCancel:()=>m(null),onDeleteConfirm:async()=>{try{await o(e.id)}catch(e){g.toast.error(e instanceof Error?e.message:"Failed to delete")}m(null)}},e.id)),u?(0,t.jsx)(I,{onSave:async e=>{try{await s(e),a(e)}catch(e){g.toast.error(e instanceof Error?e.message:"Failed to create")}d(!1)},onCancel:()=>d(!1)}):(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsx)(E.TooltipTrigger,{render:(0,t.jsx)("button",{onClick:()=>d(!0),className:"h-5 w-5 rounded-md border border-dashed border-muted-foreground/30 text-muted-foreground hover:border-foreground/50 hover:text-foreground hover:bg-accent transition-colors duration-200 inline-flex items-center justify-center cursor-pointer shrink-0"}),children:(0,t.jsx)(j.Plus,{className:"size-3"})}),(0,t.jsx)(E.TooltipContent,{side:"bottom",children:"Add New Chatting Channel"})]})]})}function T({name:e,active:r,deleting:n,onSelect:i,onRename:a,onDeleteRequest:s,onDeleteCancel:o,onDeleteConfirm:u}){let c="default"===e,f=(0,d.cn)("h-5 px-1.5 rounded-md text-[11px] font-medium inline-flex items-center gap-1 cursor-pointer select-none transition-colors duration-200 shrink-0","active:translate-y-px focus-visible:ring-2 focus-visible:ring-ring/50 outline-none",r?"bg-secondary text-foreground shadow-sm ring-1 ring-foreground/5":"text-muted-foreground hover:text-foreground hover:bg-accent");return c?(0,t.jsxs)("button",{onClick:i,className:f,children:["#",e]}):(0,t.jsxs)(E.Tooltip,{children:[(0,t.jsxs)(M.Popover,{open:n,onOpenChange:e=>{e||o()},children:[(0,t.jsxs)(R.ContextMenu,{children:[(0,t.jsx)(E.TooltipTrigger,{render:(0,t.jsx)(R.ContextMenuTrigger,{className:"inline-flex"}),children:(0,t.jsxs)(M.PopoverTrigger,{render:(0,t.jsx)("button",{onClick:i,className:f}),children:["#",e]})}),(0,t.jsxs)(R.ContextMenuContent,{children:[(0,t.jsxs)(R.ContextMenuItem,{onClick:a,children:[(0,t.jsx)(w,{className:"size-3.5 mr-2"}),"Rename"]}),(0,t.jsx)(R.ContextMenuSeparator,{}),(0,t.jsxs)(R.ContextMenuItem,{onClick:s,className:"text-destructive focus:text-destructive",children:[(0,t.jsx)(N.Trash2,{className:"size-3.5 mr-2"}),"Delete"]})]})]}),(0,t.jsxs)(M.PopoverContent,{className:"w-auto p-3",align:"start",children:[(0,t.jsxs)("p",{className:"text-sm mb-3",children:["Delete “",e,"”? Its conversations will be removed."]}),(0,t.jsxs)("div",{className:"flex gap-2 justify-end",children:[(0,t.jsx)(l.Button,{variant:"ghost",size:"sm",onClick:o,children:"Cancel"}),(0,t.jsx)(l.Button,{variant:"destructive",size:"sm",onClick:u,children:"Delete"})]})]})]}),(0,t.jsx)(E.TooltipContent,{side:"bottom",children:"Right-click for options"})]})}function I({onSave:e,onCancel:n}){let i=(0,r.useRef)(null),a=(0,r.useRef)(!1),[s,l]=(0,r.useState)("");(0,r.useEffect)(()=>{i.current?.focus()},[]);let o=(0,r.useCallback)(()=>{let t=s.trim();t?(a.current=!0,e(t)):n()},[s,e,n]);return(0,t.jsx)("input",{ref:i,value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key&&o(),"Escape"===e.key&&n()},onBlur:()=>{a.current||n()},placeholder:"name...",className:"h-5 w-24 px-1.5 rounded-md text-[11px] bg-transparent border border-input focus:border-ring focus:ring-2 focus:ring-ring/50 placeholder:text-muted-foreground/50 outline-none shrink-0"})}function A({currentName:e,onSave:n,onCancel:i}){let a=(0,r.useRef)(null),s=(0,r.useRef)(!1),l=(0,r.useRef)(!1),[o,u]=(0,r.useState)(e);(0,r.useEffect)(()=>{let e=requestAnimationFrame(()=>{a.current?.focus(),a.current?.select(),l.current=!0});return()=>cancelAnimationFrame(e)},[]);let d=(0,r.useCallback)(()=>{let t=o.trim();t&&t!==e?(s.current=!0,n(t)):i()},[o,e,n,i]);return(0,t.jsx)("input",{ref:a,value:o,onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&d(),"Escape"===e.key&&i()},onBlur:()=>{l.current&&!s.current&&i()},className:"h-5 w-24 px-1.5 rounded-md text-[11px] bg-transparent border border-input focus:border-ring focus:ring-2 focus:ring-ring/50 outline-none shrink-0"})}var D=e.i(728886),L=e.i(309475),O=e.i(73857),P=e.i(401280),z=e.i(309481),F=e.i(255450),H=e.i(380594);let V=(0,c.default)("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);var B=e.i(669312),_=e.i(672845),$=e.i(89164);e.s(["default",0,function({children:e}){let u=(0,n.useParams)(),d=(0,n.useRouter)(),c=(0,n.usePathname)(),{slug:f}=(0,s.useWorkspace)(),h=(0,n.useSearchParams)(),m=u.id,g=!!h.get("conv"),p=c.includes("/activity")||g?"activity":c.includes("/meetings")?"meetings":c.includes("/email")?"email":c.includes("/files")?"files":"chat",{agents:v,runtimes:b,handleDeleteAgent:C,handleUpdateAgent:j}=(0,a.useAgentContext)(),R=v.find(e=>e.id===m),M=R?b.find(e=>e.id===R.runtime_id):null,E=M?.status==="online",{activeTaskCounts:T}=(0,a.useAgentContext)(),I=T[m]??0,[A,W]=(0,r.useState)(!1),[K,Y]=(0,r.useState)(!1),[G,U]=(0,r.useState)(!1),[X,q]=(0,r.useState)(!1),[Z,J]=(0,r.useState)({}),{setAgentId:Q}=(0,k.useChannel)();return(0,r.useEffect)(()=>(Q(m),()=>Q(null)),[m,Q]),(0,r.useEffect)(()=>{(0,x.fetchModelOptions)().then(J).catch(()=>{})},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-border/50 px-3 md:px-5 py-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[R?(0,t.jsx)(L.AgentStatusBadge,{isOnline:E,taskCount:I,agentId:m}):(0,t.jsx)(D.Skeleton,{className:"size-2 rounded-full shrink-0"}),R?(0,t.jsx)(i.default,{href:`/w/${f}/agents/${m}`,onClick:()=>W(!1),className:"text-sm font-medium truncate hover:text-foreground/80 transition-colors",children:(0,t.jsx)("span",{title:R.description||"No description",children:R.name})}):(0,t.jsx)(D.Skeleton,{className:"h-3.5 w-24"}),(0,t.jsxs)("span",{className:"text-xs text-muted-foreground",children:["/ ",A?"Settings":({email:"Email",meetings:"Meetings",activity:"Activity",files:"Files"})[p]??"Chat"]})]}),R?(0,t.jsx)("div",{className:"flex items-center gap-0.5 shrink-0",children:A?(0,t.jsxs)(l.Button,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground h-7 gap-1 px-2",onClick:()=>W(!1),children:[(0,t.jsx)(_.X,{className:"size-3"}),"Cancel"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"hidden sm:flex items-center gap-0.5",children:[(0,t.jsxs)(i.default,{href:`/w/${f}/agents/${m}`,className:`group inline-flex items-center rounded-lg text-xs h-7 px-2 transition-all ${"chat"===p?"text-foreground bg-muted":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[(0,t.jsx)(H.MessageSquare,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:`overflow-hidden transition-all duration-500 ease-out ${"chat"===p?"max-w-16 opacity-100 ml-1":"max-w-0 opacity-0 group-hover:max-w-16 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300"}`,children:"Chat"})]}),(0,t.jsxs)(i.default,{href:`/w/${f}/agents/${m}/email`,className:`group inline-flex items-center rounded-lg text-xs h-7 px-2 transition-all ${"email"===p?"text-foreground bg-muted":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[(0,t.jsx)(F.Mail,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:`overflow-hidden transition-all duration-500 ease-out ${"email"===p?"max-w-16 opacity-100 ml-1":"max-w-0 opacity-0 group-hover:max-w-16 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300"}`,children:"Email"})]}),(0,t.jsxs)(i.default,{href:`/w/${f}/agents/${m}/meetings`,className:`group inline-flex items-center rounded-lg text-xs h-7 px-2 transition-all ${"meetings"===p?"text-foreground bg-muted":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[(0,t.jsx)(B.Video,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:`overflow-hidden transition-all duration-500 ease-out ${"meetings"===p?"max-w-20 opacity-100 ml-1":"max-w-0 opacity-0 group-hover:max-w-20 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300"}`,children:"Meetings"})]}),(0,t.jsxs)(i.default,{href:`/w/${f}/agents/${m}/activity`,className:`group inline-flex items-center rounded-lg text-xs h-7 px-2 transition-all ${"activity"===p?"text-foreground bg-muted":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[(0,t.jsx)(z.History,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:`overflow-hidden transition-all duration-500 ease-out ${"activity"===p?"max-w-16 opacity-100 ml-1":"max-w-0 opacity-0 group-hover:max-w-16 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300"}`,children:"Activity"})]}),(0,t.jsxs)(i.default,{href:`/w/${f}/agents/${m}/files`,className:`group inline-flex items-center rounded-lg text-xs h-7 px-2 transition-all ${"files"===p?"text-foreground bg-muted":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:[(0,t.jsx)(O.FolderOpen,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:`overflow-hidden transition-all duration-500 ease-out ${"files"===p?"max-w-16 opacity-100 ml-1":"max-w-0 opacity-0 group-hover:max-w-16 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300"}`,children:"Files"})]}),(0,t.jsxs)(i.default,{href:`/w/${f}/threads?agentId=${m}`,className:"group inline-flex items-center rounded-lg text-xs text-muted-foreground h-7 px-2 hover:bg-muted hover:text-foreground transition-all",children:[(0,t.jsx)(P.GitBranch,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"max-w-0 opacity-0 group-hover:max-w-20 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300 overflow-hidden transition-all duration-500 ease-out",children:"Threads"})]}),(0,t.jsx)("div",{className:"w-px h-4 bg-border mx-1"}),(0,t.jsxs)("button",{className:"group inline-flex items-center rounded-lg text-xs text-muted-foreground h-7 px-2 hover:bg-muted hover:text-foreground transition-all",onClick:()=>W(!0),children:[(0,t.jsx)(w,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"max-w-0 opacity-0 group-hover:max-w-12 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300 overflow-hidden transition-all duration-500 ease-out",children:"Edit"})]}),(0,t.jsxs)("button",{className:"group inline-flex items-center rounded-lg text-xs text-muted-foreground h-7 px-2 hover:bg-muted hover:text-destructive transition-all",onClick:()=>U(!0),children:[(0,t.jsx)(N.Trash2,{className:"size-3 shrink-0"}),(0,t.jsx)("span",{className:"max-w-0 opacity-0 group-hover:max-w-16 group-hover:opacity-100 group-hover:ml-1 group-hover:delay-300 overflow-hidden transition-all duration-500 ease-out",children:"Remove"})]})]}),(0,t.jsx)("div",{className:"sm:hidden",children:(0,t.jsxs)($.DropdownMenu,{children:[(0,t.jsx)($.DropdownMenuTrigger,{render:(0,t.jsx)(l.Button,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground"}),children:(0,t.jsx)(V,{className:"size-4"})}),(0,t.jsxs)($.DropdownMenuContent,{align:"end",sideOffset:6,children:["chat"!==p&&(0,t.jsxs)($.DropdownMenuItem,{onClick:()=>d.push(`/w/${f}/agents/${m}`),children:[(0,t.jsx)(H.MessageSquare,{className:"size-3.5"})," Chat"]}),"email"!==p&&(0,t.jsxs)($.DropdownMenuItem,{onClick:()=>d.push(`/w/${f}/agents/${m}/email`),children:[(0,t.jsx)(F.Mail,{className:"size-3.5"})," Email"]}),"meetings"!==p&&(0,t.jsxs)($.DropdownMenuItem,{onClick:()=>d.push(`/w/${f}/agents/${m}/meetings`),children:[(0,t.jsx)(B.Video,{className:"size-3.5"})," Meetings"]}),"activity"!==p&&(0,t.jsxs)($.DropdownMenuItem,{onClick:()=>d.push(`/w/${f}/agents/${m}/activity`),children:[(0,t.jsx)(z.History,{className:"size-3.5"})," Activity"]}),"files"!==p&&(0,t.jsxs)($.DropdownMenuItem,{onClick:()=>d.push(`/w/${f}/agents/${m}/files`),children:[(0,t.jsx)(O.FolderOpen,{className:"size-3.5"})," Files"]}),(0,t.jsxs)($.DropdownMenuItem,{onClick:()=>d.push(`/w/${f}/threads?agentId=${m}`),children:[(0,t.jsx)(P.GitBranch,{className:"size-3.5"}),"Threads"]}),(0,t.jsx)($.DropdownMenuSeparator,{}),(0,t.jsxs)($.DropdownMenuItem,{onClick:()=>W(!0),children:[(0,t.jsx)(w,{className:"size-3.5"}),"Edit"]}),(0,t.jsx)($.DropdownMenuSeparator,{}),(0,t.jsxs)($.DropdownMenuItem,{variant:"destructive",onClick:()=>U(!0),children:[(0,t.jsx)(N.Trash2,{className:"size-3.5"}),"Remove"]})]})]})})]})}):(0,t.jsx)("div",{className:"h-7 shrink-0"})]}),A&&R?(0,t.jsx)(y,{agent:R,runtimes:b,modelOptions:Z,saving:K,onCancel:()=>W(!1),onSave:async e=>{Y(!0);try{let t=await j(R.id,e);return t&&W(!1),t}finally{Y(!1)}}}):(0,t.jsxs)("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",children:["chat"===p&&(0,t.jsx)(S,{}),e]}),R&&(0,t.jsx)(o.ConfirmDialog,{open:G,onOpenChange:U,title:"Remove agent",description:`This will permanently delete "${R.name}" and all its conversations.`,loading:X,onConfirm:async()=>{q(!0);try{await C(R.id)&&d.push(`/w/${f}/home`)}finally{q(!1),U(!1)}}})]})}],537510)},302482,e=>{e.v(e=>Promise.resolve().then(()=>e(222862)))}]);
|