promptarc 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/README.md +8 -8
- package/dist/bin.js +366 -0
- package/dist/web/.next/BUILD_ID +1 -1
- package/dist/web/.next/app-build-manifest.json +315 -175
- package/dist/web/.next/app-path-routes-manifest.json +28 -11
- package/dist/web/.next/build-manifest.json +14 -14
- package/dist/web/.next/prerender-manifest.json +89 -1
- package/dist/web/.next/required-server-files.json +0 -1
- package/dist/web/.next/routes-manifest.json +62 -0
- package/dist/web/.next/server/app/_not-found/page.js +2 -2
- package/dist/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/admin/backfill-ai/route.js +8 -0
- package/dist/web/.next/server/app/api/admin/backfill-ai/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/admin/backfill-ai/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/admin/backfill-search/route.js +1 -0
- package/dist/web/.next/server/app/api/admin/backfill-search/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/admin/backfill-search/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/ai/pr-summary/route.js +28 -0
- package/dist/web/.next/server/app/api/ai/pr-summary/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/ai/pr-summary/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/ai/pr-summary-local/route.js +28 -0
- package/dist/web/.next/server/app/api/ai/pr-summary-local/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/ai/pr-summary-local/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/ai/process/route.js +8 -0
- package/dist/web/.next/server/app/api/ai/process/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/ai/process/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/cli/download/route.js +1 -1
- package/dist/web/.next/server/app/api/cli/download/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli/download/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/cli/feedback/route.js +1 -0
- package/dist/web/.next/server/app/api/cli/feedback/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/cli/feedback/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/cli/init/route.js +1 -1
- package/dist/web/.next/server/app/api/cli/init/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli/init/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/cli/my-shares/route.js +1 -1
- package/dist/web/.next/server/app/api/cli/my-shares/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli/my-shares/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/cli/poll/route.js +1 -1
- package/dist/web/.next/server/app/api/cli/poll/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli/poll/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/cli/project-settings/route.js +1 -1
- package/dist/web/.next/server/app/api/cli/project-settings/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli/project-settings/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/cli/share-mutate/route.js +1 -1
- package/dist/web/.next/server/app/api/cli/share-mutate/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli/share-mutate/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/cli/sync-list/route.js +1 -1
- package/dist/web/.next/server/app/api/cli/sync-list/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/cli/sync-list/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/local/project-sessions/route.js +1 -1
- package/dist/web/.next/server/app/api/local/project-sessions/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/local/project-sessions/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/local/watch/route.js +2 -2
- package/dist/web/.next/server/app/api/local/watch/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/local/watch/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/search/route.js +1 -0
- package/dist/web/.next/server/app/api/search/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/search-index/route.js +1 -1
- package/dist/web/.next/server/app/api/search-index/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/search-index/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/share/download/[slug]/route.js +1 -0
- package/dist/web/.next/server/app/api/share/download/[slug]/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/api/share/download/[slug]/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/api/share/route.js +1 -1
- package/dist/web/.next/server/app/api/share/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/share/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/api/upload/route.js +3 -3
- package/dist/web/.next/server/app/api/upload/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/api/upload/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/auth/callback/route.js +1 -1
- package/dist/web/.next/server/app/auth/callback/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/auth/callback/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/auth/signout/route.js +1 -1
- package/dist/web/.next/server/app/auth/signout/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/auth/signout/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/blog/ai-coding-agents-2026/page.js +2 -0
- package/dist/web/.next/server/app/blog/ai-coding-agents-2026/page.js.nft.json +1 -0
- package/dist/web/.next/server/app/blog/ai-coding-agents-2026/page_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/blog/page.js +2 -0
- package/dist/web/.next/server/app/blog/page.js.nft.json +1 -0
- package/dist/web/.next/server/app/blog/page_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/cli/login/page.js +2 -2
- package/dist/web/.next/server/app/cli/login/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/cli/login/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/digest/page.js +2 -0
- package/dist/web/.next/server/app/digest/page.js.nft.json +1 -0
- package/dist/web/.next/server/app/digest/page_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/feedback/page.js +2 -0
- package/dist/web/.next/server/app/feedback/page.js.nft.json +1 -0
- package/dist/web/.next/server/app/feedback/page_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/my-projects/[projectKey]/page.js +2 -2
- package/dist/web/.next/server/app/my-projects/[projectKey]/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/my-projects/[projectKey]/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/my-projects/page.js +2 -2
- package/dist/web/.next/server/app/my-projects/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/my-projects/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/my-shares/page.js +2 -2
- package/dist/web/.next/server/app/my-shares/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/my-shares/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/opengraph-image/route.js +1 -71
- package/dist/web/.next/server/app/opengraph-image/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/opengraph-image.body +0 -0
- package/dist/web/.next/server/app/opengraph-image.meta +1 -0
- package/dist/web/.next/server/app/page.js +2 -2
- package/dist/web/.next/server/app/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/privacy/page.js +2 -0
- package/dist/web/.next/server/app/privacy/page.js.nft.json +1 -0
- package/dist/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/projects/[id]/page.js +2 -2
- package/dist/web/.next/server/app/projects/[id]/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/r/[slug]/opengraph-image/route.js +1 -1
- package/dist/web/.next/server/app/r/[slug]/opengraph-image/route.js.nft.json +1 -1
- package/dist/web/.next/server/app/r/[slug]/opengraph-image/route_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/r/[slug]/page.js +2 -2
- package/dist/web/.next/server/app/r/[slug]/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/r/[slug]/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/robots.txt/route.js +16 -0
- package/dist/web/.next/server/app/robots.txt/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/robots.txt.body +9 -0
- package/dist/web/.next/server/app/robots.txt.meta +1 -0
- package/dist/web/.next/server/app/search/page.js +2 -0
- package/dist/web/.next/server/app/search/page.js.nft.json +1 -0
- package/dist/web/.next/server/app/search/page_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/sessions/[projectId]/[sessionId]/page.js +2 -2
- package/dist/web/.next/server/app/sessions/[projectId]/[sessionId]/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/sessions/[projectId]/[sessionId]/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/sign-in/page.js +2 -2
- package/dist/web/.next/server/app/sign-in/page.js.nft.json +1 -1
- package/dist/web/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
- package/dist/web/.next/server/app/sitemap.xml/route.js +16 -0
- package/dist/web/.next/server/app/sitemap.xml/route.js.nft.json +1 -0
- package/dist/web/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app/sitemap.xml.body +51 -0
- package/dist/web/.next/server/app/sitemap.xml.meta +1 -0
- package/dist/web/.next/server/app/terms/page.js +2 -0
- package/dist/web/.next/server/app/terms/page.js.nft.json +1 -0
- package/dist/web/.next/server/app/terms/page_client-reference-manifest.js +1 -0
- package/dist/web/.next/server/app-paths-manifest.json +28 -11
- package/dist/web/.next/server/chunks/1017.js +2 -0
- package/dist/web/.next/server/chunks/1134.js +8 -0
- package/dist/web/.next/server/chunks/1825.js +1 -0
- package/dist/web/.next/server/chunks/1924.js +1 -0
- package/dist/web/.next/server/chunks/1961.js +1 -0
- package/dist/web/.next/server/chunks/2678.js +5 -0
- package/dist/web/.next/server/chunks/{901.js → 2901.js} +1 -1
- package/dist/web/.next/server/chunks/{635.js → 3256.js} +1 -1
- package/dist/web/.next/server/chunks/3398.js +1 -0
- package/dist/web/.next/server/chunks/{500.js → 4500.js} +1 -1
- package/dist/web/.next/server/chunks/{985.js → 4985.js} +2 -2
- package/dist/web/.next/server/chunks/6227.js +1 -0
- package/dist/web/.next/server/chunks/8334.js +1 -0
- package/dist/web/.next/server/chunks/8632.js +2 -0
- package/dist/web/.next/server/chunks/{993.js → 9993.js} +1 -1
- package/dist/web/.next/server/functions-config-manifest.json +17 -2
- package/dist/web/.next/server/middleware-build-manifest.js +1 -1
- package/dist/web/.next/server/middleware-manifest.json +1 -43
- package/dist/web/.next/server/pages/500.html +1 -1
- package/dist/web/.next/server/pages/_document.js +1 -1
- package/dist/web/.next/server/pages/_document.js.nft.json +1 -1
- package/dist/web/.next/server/pages/_error.js +2 -2
- package/dist/web/.next/server/pages/_error.js.nft.json +1 -1
- package/dist/web/.next/server/pages-manifest.json +1 -1
- package/dist/web/.next/server/server-reference-manifest.js +1 -1
- package/dist/web/.next/server/server-reference-manifest.json +1 -1
- package/dist/web/.next/server/webpack-runtime.js +1 -1
- package/dist/web/.next/static/ABHGCNY7MSdkh00Z4Y8wS/_buildManifest.js +1 -0
- package/dist/web/.next/static/chunks/1029-12dc6d00537d43fd.js +1 -0
- package/dist/web/.next/static/chunks/4695-b52fc3d81451c3c3.js +1 -0
- package/dist/web/.next/static/chunks/552926ff-c5d04ae0c2d9f826.js +1 -0
- package/dist/web/.next/static/chunks/7200-4560b15b9cad37b3.js +1 -0
- package/dist/web/.next/static/chunks/app/_not-found/page-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/admin/backfill-ai/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/admin/backfill-search/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/ai/pr-summary/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/ai/pr-summary-local/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/ai/process/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/download/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/feedback/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/init/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/my-shares/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/poll/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/project-settings/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/share-mutate/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/cli/sync-list/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/local/project-sessions/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/local/watch/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/search/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/search-index/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/share/download/[slug]/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/share/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/api/upload/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/auth/callback/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/auth/signout/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/blog/ai-coding-agents-2026/page-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/blog/layout-9b51270472318488.js +1 -0
- package/dist/web/.next/static/chunks/app/blog/page-8400ea4ac5a7eb44.js +1 -0
- package/dist/web/.next/static/chunks/app/cli/login/page-26287cfd64c0fb49.js +1 -0
- package/dist/web/.next/static/chunks/app/digest/page-8400ea4ac5a7eb44.js +1 -0
- package/dist/web/.next/static/chunks/app/feedback/page-55ef0005807f1cef.js +1 -0
- package/dist/web/.next/static/chunks/app/layout-aa56caf2bf5af86f.js +1 -0
- package/dist/web/.next/static/chunks/app/my-projects/[projectKey]/page-7c5f2badf689d2e8.js +1 -0
- package/dist/web/.next/static/chunks/app/my-projects/page-c0390151fd6332a0.js +1 -0
- package/dist/web/.next/static/chunks/app/my-shares/page-49c0112973401c14.js +1 -0
- package/dist/web/.next/static/chunks/app/not-found-8400ea4ac5a7eb44.js +1 -0
- package/dist/web/.next/static/chunks/app/opengraph-image/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/page-f7b69fa944b46c20.js +1 -0
- package/dist/web/.next/static/chunks/app/privacy/page-9b51270472318488.js +1 -0
- package/dist/web/.next/static/chunks/app/projects/[id]/page-7dd46a825d03a7d9.js +1 -0
- package/dist/web/.next/static/chunks/app/r/[slug]/opengraph-image/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/r/[slug]/page-6a0983805e048ac3.js +1 -0
- package/dist/web/.next/static/chunks/app/robots.txt/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/search/page-c29f37dc2462b676.js +1 -0
- package/dist/web/.next/static/chunks/app/sessions/[projectId]/[sessionId]/page-87b4505dd32edb9d.js +1 -0
- package/dist/web/.next/static/chunks/app/sign-in/page-fea3971ff9237b72.js +1 -0
- package/dist/web/.next/static/chunks/app/sitemap.xml/route-fd6592d30c58fa5e.js +1 -0
- package/dist/web/.next/static/chunks/app/terms/page-9b51270472318488.js +1 -0
- package/dist/web/.next/static/chunks/d99d8e6a-55da88efbe15e3e1.js +1 -0
- package/dist/web/.next/static/chunks/framework-c1efa271b5a96d9d.js +1 -0
- package/dist/web/.next/static/chunks/main-app-70de904c7caade50.js +1 -0
- package/dist/web/.next/static/chunks/main-d211cddc79aac1cb.js +1 -0
- package/dist/web/.next/static/chunks/pages/{_app-42b849402a54b9e6.js → _app-701b0752a0d4c3a9.js} +1 -1
- package/dist/web/.next/static/chunks/pages/_error-327385abc873a736.js +1 -0
- package/dist/web/.next/static/chunks/{webpack-3a8b65d12c8eb987.js → webpack-3a446128dfa39f85.js} +1 -1
- package/dist/web/.next/static/css/b3ccdd7835e6edda.css +3 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
- package/dist/web/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/package.json +471 -0
- package/dist/web/package.json +4 -1
- package/dist/web/public/apple-touch-icon.png +0 -0
- package/dist/web/public/favicon-16.png +0 -0
- package/dist/web/public/favicon-32.png +0 -0
- package/dist/web/public/icon-192.png +0 -0
- package/dist/web/public/icon-512.png +0 -0
- package/dist/web/public/logo.png +0 -0
- package/dist/web/server.js +1 -1
- package/package.json +5 -8
- package/dist/web/.next/server/app/opengraph-image/route.js.map +0 -1
- package/dist/web/.next/server/chunks/150.js +0 -1
- package/dist/web/.next/server/chunks/160.js +0 -2
- package/dist/web/.next/server/chunks/334.js +0 -1
- package/dist/web/.next/server/chunks/354.js +0 -1
- package/dist/web/.next/server/chunks/371.js +0 -1
- package/dist/web/.next/server/chunks/398.js +0 -1
- package/dist/web/.next/server/chunks/552.js +0 -2
- package/dist/web/.next/server/chunks/678.js +0 -5
- package/dist/web/.next/server/chunks/924.js +0 -1
- package/dist/web/.next/server/edge-chunks/asset_noto-sans-v27-latin-regular.5dda3fca77107598.ttf +0 -0
- package/dist/web/.next/server/edge-chunks/wasm_77d9faebf7af9e421806970ce10a58e9d83116d7.wasm +0 -0
- package/dist/web/.next/server/edge-chunks/wasm_ef4866ecae192fd87727067cf2c0c0cf9fb8b020.wasm +0 -0
- package/dist/web/.next/server/edge-runtime-webpack.js +0 -2
- package/dist/web/.next/server/interception-route-rewrite-manifest.js +0 -1
- package/dist/web/.next/static/05arLtyVtuaMhMczmbNEQ/_buildManifest.js +0 -1
- package/dist/web/.next/static/chunks/200-619918ea0fdbd6ff.js +0 -1
- package/dist/web/.next/static/chunks/29-73072d523fc7c3d6.js +0 -1
- package/dist/web/.next/static/chunks/552926ff-e8a371ec0133d0dc.js +0 -1
- package/dist/web/.next/static/chunks/695-00bca043953d4170.js +0 -1
- package/dist/web/.next/static/chunks/app/_not-found/page-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/cli/download/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/cli/init/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/cli/my-shares/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/cli/poll/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/cli/project-settings/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/cli/share-mutate/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/cli/sync-list/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/local/project-sessions/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/local/watch/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/search-index/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/share/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/api/upload/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/auth/callback/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/auth/signout/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/cli/login/page-647fd605d0fe2472.js +0 -1
- package/dist/web/.next/static/chunks/app/layout-f5666b9135264807.js +0 -1
- package/dist/web/.next/static/chunks/app/my-projects/[projectKey]/page-cb6e039c958bfc2c.js +0 -1
- package/dist/web/.next/static/chunks/app/my-projects/page-9f8ca9b85ceaf296.js +0 -1
- package/dist/web/.next/static/chunks/app/my-shares/page-cb6e039c958bfc2c.js +0 -1
- package/dist/web/.next/static/chunks/app/not-found-9f8ca9b85ceaf296.js +0 -1
- package/dist/web/.next/static/chunks/app/opengraph-image/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/page-5094c206f5c10164.js +0 -1
- package/dist/web/.next/static/chunks/app/projects/[id]/page-5094c206f5c10164.js +0 -1
- package/dist/web/.next/static/chunks/app/r/[slug]/opengraph-image/route-28b9b6b1a849439f.js +0 -1
- package/dist/web/.next/static/chunks/app/r/[slug]/page-65707eb198f673a1.js +0 -1
- package/dist/web/.next/static/chunks/app/sessions/[projectId]/[sessionId]/page-42e3ca6ddbc89891.js +0 -1
- package/dist/web/.next/static/chunks/app/sign-in/page-792d0d79889186cf.js +0 -1
- package/dist/web/.next/static/chunks/d99d8e6a-80443bd3c9d31f50.js +0 -1
- package/dist/web/.next/static/chunks/framework-39000e34f38d10f6.js +0 -1
- package/dist/web/.next/static/chunks/main-app-21e9441fa7ac15ef.js +0 -1
- package/dist/web/.next/static/chunks/main-f824d48fd7ff2e3b.js +0 -1
- package/dist/web/.next/static/chunks/pages/_error-412ff705bc5b0636.js +0 -1
- package/dist/web/.next/static/css/e3f901a57ca280a4.css +0 -3
- /package/dist/web/.next/static/{05arLtyVtuaMhMczmbNEQ → ABHGCNY7MSdkh00Z4Y8wS}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7200],{1525:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},1528:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return P},MissingStaticPage:function(){return m},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return p},ST:function(){return d},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return i},isAbsoluteUrl:function(){return u},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return b}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),u=0;u<n;u++)o[u]=arguments[u];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,u=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function i(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&s(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="undefined"!=typeof performance,d=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class P extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},1932:(e,t,r)=>{var n=r(2892);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},2742:(e,t)=>{function r(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function n(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e))if(Array.isArray(o))for(let e of o)t.append(r,n(e));else t.set(r,n(o));return t}function u(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{assign:function(){return u},searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o}})},3483:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return g},useLinkStatus:function(){return P}});let n=r(5552),o=r(655),u=n._(r(4519)),a=r(7174),i=r(3232),l=r(9744),s=r(1528),c=r(10);r(1293);let f=r(7099),p=r(4367),d=r(6943);r(1525);let h=r(5712);function y(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){var t;let r,n,a,[g,P]=(0,u.useOptimistic)(f.IDLE_LINK_STATUS),b=(0,u.useRef)(null),{href:_,as:v,children:E,prefetch:O=null,passHref:j,replace:S,shallow:C,scroll:N,onClick:T,onMouseEnter:R,onTouchStart:x,legacyBehavior:A=!1,onNavigate:M,ref:L,unstable_dynamicOnHover:k,...I}=e;r=E,A&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let U=u.default.useContext(i.AppRouterContext),w=!1!==O,F=!1!==O?null===(t=O)||"auto"===t?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:D,as:K}=u.default.useMemo(()=>{let e=y(_);return{href:e,as:v?y(v):e}},[_,v]);A&&(n=u.default.Children.only(r));let B=A?n&&"object"==typeof n&&n.ref:L,z=u.default.useCallback(e=>(null!==U&&(b.current=(0,f.mountLinkInstance)(e,D,U,F,w,P)),()=>{b.current&&((0,f.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,f.unmountPrefetchableInstance)(e)}),[w,D,U,F,P]),Q={ref:(0,l.useMergedRef)(z,B),onClick(e){A||"function"!=typeof T||T(e),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),U&&(e.defaultPrevented||function(e,t,r,n,o,a,i){let{nodeName:l}=e.currentTarget;if(!("A"===l.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,p.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}u.default.startTransition(()=>{(0,d.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,D,K,b,S,N,M))},onMouseEnter(e){A||"function"!=typeof R||R(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),U&&w&&(0,f.onNavigationIntent)(e.currentTarget,!0===k)},onTouchStart:function(e){A||"function"!=typeof x||x(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),U&&w&&(0,f.onNavigationIntent)(e.currentTarget,!0===k)}};return(0,s.isAbsoluteUrl)(K)?Q.href=K:A&&!j&&("a"!==n.type||"href"in n.props)||(Q.href=(0,c.addBasePath)(K)),a=A?u.default.cloneElement(n,Q):(0,o.jsx)("a",{...I,...Q,children:r}),(0,o.jsx)(m.Provider,{value:g,children:a})}let m=(0,u.createContext)(f.IDLE_LINK_STATUS),P=()=>(0,u.useContext)(m);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4367:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return u}});let n=r(1528),o=r(4145);function u(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},7174:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return u},formatWithValidation:function(){return i},urlObjectKeys:function(){return a}});let n=r(5552)._(r(2742)),o=/https?|ftp|gopher|file/;function u(e){let{auth:t,hostname:r}=e,u=e.protocol||"",a=e.pathname||"",i=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(n.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return u&&!u.endsWith(":")&&(u+=":"),e.slashes||(!u||o.test(u))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),""+u+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+i}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function i(e){return u(e)}},9744:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=r(4519);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=u(e,n)),t&&(o.current=u(t,n))},[e,t])}function u(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7066,9584,9877],{4462:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=4462)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3831,4345,7299],{2880:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=2880)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6733],{1078:(e,n,t)=>{"use strict";t.d(n,{b:()=>a});var i=t(7069);let r=null;function a(){if(r)return r;let e="https://mrrghkzfjgfszricdchr.supabase.co",n="sb_publishable_EMTUmRBbNoB8fh4T05Wp5Q_cGJP430c";if(!e||!n)throw Error("Missing NEXT_PUBLIC_SUPABASE_URL or NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY");return r=(0,i.createBrowserClient)(e,n)}},4528:(e,n,t)=>{Promise.resolve().then(t.t.bind(t,3483,23)),Promise.resolve().then(t.bind(t,7961)),Promise.resolve().then(t.bind(t,1123)),Promise.resolve().then(t.bind(t,6597)),Promise.resolve().then(t.bind(t,4059))},7961:(e,n,t)=>{"use strict";t.d(n,{CliLogin:()=>o});var i=t(655),r=t(4519),a=t(1078),s=t(9244);function o(e){let{token:n}=e,[t,o]=(0,r.useState)({kind:"loading"});async function l(){let e=(0,a.b)(),t=new URL("/auth/callback",window.location.origin);t.searchParams.set("next","/cli/login?token=".concat(encodeURIComponent(n)));let{error:i}=await e.auth.signInWithOAuth({provider:"github",options:{redirectTo:t.toString()}});i&&o({kind:"error",message:i.message})}return(0,r.useEffect)(()=>{if(!n)return void o({kind:"no-token"});let e=(0,a.b)(),t=!1;return async function(){var i,r,a,s,c,l,u;let{data:d,error:m}=await e.from("cli_tokens").select("token, claimed_at, expires_at, user_id").eq("token",n).maybeSingle();if(t)return;if(m)return o({kind:"error",message:m.message});if(!d)return o({kind:"invalid-token"});if(new Date(d.expires_at).getTime()<Date.now())return o({kind:"expired-token"});let{data:h}=await e.auth.getSession(),g=h.session,k=null==g?void 0:g.user;if(d.claimed_at&&d.user_id&&k&&d.user_id!==k.id)return o({kind:"error",message:"This CLI token has already been claimed by another account."});if(d.claimed_at&&k)return o({kind:"success",email:null!=(a=k.email)?a:null});if(!k)return o({kind:"awaiting-signin"});o({kind:"claiming"});let x=null!=(c=null!=(s=null==(i=k.user_metadata)?void 0:i.user_name)?s:null==(r=k.user_metadata)?void 0:r.preferred_username)?c:null,f=new Date(Date.now()+7776e6),{error:p}=await e.from("cli_tokens").update({user_id:k.id,user_email:null!=(l=k.email)?l:null,user_login:x,claimed_at:new Date().toISOString(),expires_at:f.toISOString()}).eq("token",n).is("claimed_at",null);if(!t){if(p)return o({kind:"error",message:p.message});o({kind:"success",email:null!=(u=k.email)?u:null})}}(),()=>{t=!0}},[n]),(0,i.jsxs)("div",{className:"mx-auto flex max-w-md flex-col items-center px-6 pt-16 text-center sm:pt-24",children:[(0,i.jsx)("span",{className:"badge badge-accent mb-6",children:"promptarc cli"}),(0,i.jsx)("h1",{className:"text-2xl font-semibold tracking-tight text-ink-0 sm:text-3xl",children:function(e){switch(e.kind){case"loading":return"Checking your CLI token…";case"no-token":return"No token in URL";case"invalid-token":return"Token not found";case"expired-token":return"Token expired";case"awaiting-signin":return"Sign in to authorize this CLI";case"claiming":return"Authorizing…";case"success":return"✓ Signed in";case"error":return"Something went wrong"}}(t)}),(0,i.jsx)("p",{className:"mt-3 text-sm text-ink-2",children:function(e){switch(e.kind){case"loading":return"One moment.";case"no-token":return"This page expects a ?token=... query string from the CLI.";case"invalid-token":return"The CLI token in the URL is unknown. Run `promptarc login` again to mint a fresh one.";case"expired-token":return"CLI tokens are valid for 15 minutes. Run `promptarc login` again to mint a fresh one.";case"awaiting-signin":return"Sign in to attach this CLI session to your promptarc account. We only request your basic GitHub profile.";case"claiming":return"Linking your account to the CLI…";case"success":return"You can close this tab and return to your terminal".concat(e.email?" (".concat(e.email,")"):"",".");case"error":return e.message}}(t)}),"awaiting-signin"===t.kind?(0,i.jsxs)("button",{type:"button",onClick:l,className:"mt-8 inline-flex items-center gap-2 rounded-md border border-accent/40 bg-accent px-5 py-2.5 text-sm font-semibold text-surface-0 hover:bg-accent/90",children:[(0,i.jsx)(s.Hk,{className:"h-4 w-4"}),"Continue with GitHub"]}):null,"loading"===t.kind||"claiming"===t.kind?(0,i.jsx)(c,{}):null,n?(0,i.jsxs)("div",{className:"mt-10 text-2xs text-ink-4",children:["Token: ",(0,i.jsxs)("code",{className:"font-mono",children:[n.slice(0,8),"…"]})]}):null]})}function c(){return(0,i.jsxs)("svg",{className:"mt-8 h-5 w-5 animate-spin text-accent",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[(0,i.jsx)("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.6",opacity:"0.25"}),(0,i.jsx)("path",{d:"M14 8a6 6 0 0 0-6-6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]})}},9244:(e,n,t)=>{"use strict";t.d(n,{Hk:()=>r});var i=t(655);function r(e){let{className:n="h-4 w-4"}=e;return(0,i.jsx)("svg",{className:n,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:(0,i.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8a8 8 0 005.47 7.59c.4.07.55-.17.55-.38v-1.32c-2.22.48-2.69-1.07-2.69-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.81.06 1.23.83 1.23.83.72 1.23 1.88.87 2.34.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.13 0 0 .67-.21 2.2.82a7.7 7.7 0 014 0c1.53-1.04 2.2-.82 2.2-.82.44 1.11.16 1.93.08 2.13.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0016 8c0-4.42-3.58-8-8-8z"})})}}},e=>{e.O(0,[2994,7200,896,1029,7575,4695,7358],()=>e(e.s=4528)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3831,4345,7299],{2880:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=2880)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8080],{1937:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3483,23)),Promise.resolve().then(r.bind(r,2786)),Promise.resolve().then(r.bind(r,1123)),Promise.resolve().then(r.bind(r,6597)),Promise.resolve().then(r.bind(r,4059))},2786:(e,t,r)=>{"use strict";r.d(t,{FeedbackForm:()=>i});var n=r(655),s=r(4519),a=r(4094);let c=(0,a.createServerReference)("4020b14586c972e8d84979311919f2aa5ab7b81f22",a.callServer,void 0,a.findSourceMapURL,"submitFeedbackAction");function i(){let[e,t]=(0,s.useState)(""),[r,a]=(0,s.useState)(null),[i,o]=(0,s.useState)(!1),[l,u]=(0,s.useTransition)();return(0,n.jsxs)("div",{className:"card px-5 py-5",children:[(0,n.jsx)("h3",{className:"mb-3 text-sm font-semibold text-ink-1",children:"Share your feedback"}),(0,n.jsxs)("form",{onSubmit:function(r){r.preventDefault(),l||e.trim().length<5||(a(null),u(async()=>{let r=await c(e);r.ok?(t(""),o(!0),setTimeout(()=>o(!1),3e3)):a(r.error)}))},children:[(0,n.jsx)("textarea",{value:e,onChange:e=>t(e.target.value),placeholder:"Bug report, feature request, or just say hi...",rows:4,maxLength:2e3,className:"w-full resize-none rounded-md border border-surface-border bg-surface-0 px-3 py-2 text-sm text-ink-1 placeholder:text-ink-4 focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent"}),(0,n.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-3",children:[(0,n.jsxs)("span",{className:"text-2xs text-ink-4",children:[e.length,"/2000"]}),(0,n.jsx)("button",{type:"submit",disabled:l||e.trim().length<5,className:"rounded-md border border-accent/40 bg-accent px-4 py-1.5 text-xs font-semibold text-surface-0 hover:bg-accent/90 disabled:opacity-50",children:l?"Sending...":i?"Sent!":"Submit"})]}),r?(0,n.jsx)("p",{className:"mt-2 text-2xs text-danger",children:r}):null,(0,n.jsx)("p",{className:"mt-2 text-2xs text-ink-4",children:"Your feedback is public and visible to everyone. Max 5 per day."})]})]})}},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}});let n=r(3609),s=r(4433),a=r(7041)}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=1937)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{340:(e,t,n)=>{"use strict";n.d(t,{Analytics:()=>f});var r=n(4519),a=n(1932),o=n(56);function s(){return"undefined"!=typeof window}function c(){return"production"}function u(){return"development"===((s()?window.vam:c())||"production")}function i(e){return new RegExp("/".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}function d(e){return(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,r.useEffect)(()=>{var t;!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0};if(!s())return;!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=c();return}window.vam=e}(t.mode),window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(window.vaq=window.vaq||[]).push(t)}),t.beforeSend&&(null==(e=window.va)||e.call(window,"beforeSend",t.beforeSend));let n=t.scriptSrc?t.scriptSrc:u()?"https://va.vercel-scripts.com/v1/script.debug.js":t.basePath?"".concat(t.basePath,"/insights/script.js"):"/_vercel/insights/script.js";if(document.head.querySelector('script[src*="'.concat(n,'"]')))return;let r=document.createElement("script");r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/analytics"+(t.framework?"/".concat(t.framework):""),r.dataset.sdkv="1.6.1",t.disableAutoTrack&&(r.dataset.disableAutoTrack="1"),t.endpoint?r.dataset.endpoint=t.endpoint:t.basePath&&(r.dataset.endpoint="".concat(t.basePath,"/insights")),t.dsn&&(r.dataset.dsn=t.dsn),r.onerror=()=>{let e=u()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(n,". ").concat(e))},u()&&!1===t.debug&&(r.dataset.debug="false"),document.head.appendChild(r)}({framework:e.framework||"react",basePath:null!=(t=e.basePath)?t:function(){if(void 0!==o&&void 0!==o.env)return o.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:n,path:r}=e;null==(t=window.va)||t.call(window,"pageview",{route:n,path:r})}({route:e.route,path:e.path})},[e.route,e.path]),null}function l(e){let{route:t,path:n}=(()=>{let e=(0,a.useParams)(),t=(0,a.useSearchParams)(),n=(0,a.usePathname)();return e?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=i(r);e.test(n)&&(n=n.replace(e,"/[".concat(t,"]")))}for(let[t,r]of e)if(Array.isArray(r)){let e=i(r.join("/"));e.test(n)&&(n=n.replace(e,"/[...".concat(t,"]")))}return n}catch(t){return e}}(n,Object.keys(e).length?e:Object.fromEntries(t.entries())),path:n}:{route:null,path:n}})();return r.createElement(d,{path:n,route:t,...e,basePath:function(){if(void 0!==o&&void 0!==o.env)return o.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),framework:"next"})}function f(e){return r.createElement(r.Suspense,{fallback:null},r.createElement(l,{...e}))}},1932:(e,t,n)=>{"use strict";var r=n(2892);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},3070:()=>{},4188:(e,t,n)=>{Promise.resolve().then(n.bind(n,340)),Promise.resolve().then(n.t.bind(n,3070,23))}},e=>{e.O(0,[1293,7575,4695,7358],()=>e(e.s=4188)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8203],{1929:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(4094);let a=(0,n.createServerReference)("604e221da7d1e53a392af07e4defc91423301b6668",n.callServer,void 0,n.findSourceMapURL,"setVisibilityAction")},3160:(e,t,r)=>{"use strict";r.d(t,{R:()=>a});var n=r(4094);let a=(0,n.createServerReference)("601b12dded4f2a95f0cfd3ee7586bbb91555662b74",n.callServer,void 0,n.findSourceMapURL,"setAutoSyncAction")},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return i.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}});let n=r(3609),a=r(4433),i=r(7041)},6521:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3483,23)),Promise.resolve().then(r.bind(r,9464)),Promise.resolve().then(r.bind(r,1123)),Promise.resolve().then(r.bind(r,6597)),Promise.resolve().then(r.bind(r,4059))},9464:(e,t,r)=>{"use strict";r.d(t,{ShareRowActions:()=>d});var n=r(655),a=r(4519),i=r(1929),s=r(3160),o=r(4094);let c=(0,o.createServerReference)("40c1e2583896b3c4303bdbb5fd24338dc278eca377",o.callServer,void 0,o.findSourceMapURL,"deleteShareAction"),l={public:"badge badge-success",unlisted:"badge",private:"badge badge-warning"};function d(e){let{slug:t,visibility:r,autoSync:o}=e,[d,u]=(0,a.useState)(r),[b,p]=(0,a.useState)(o),[f,h]=(0,a.useState)(!1),[m,v]=(0,a.useState)(!1),[x,g]=(0,a.useState)(null),[y,w]=(0,a.useTransition)(),[S,k]=(0,a.useTransition)();async function j(){try{await navigator.clipboard.writeText("".concat(window.location.origin,"/r/").concat(t)),h(!0),setTimeout(()=>h(!1),1400)}catch(e){}}return(0,n.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-1.5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsxs)("label",{className:"relative",children:[(0,n.jsx)("span",{className:"sr-only",children:"Visibility"}),(0,n.jsxs)("select",{value:d,onChange:e=>{var r;(r=e.target.value)!==d&&(u(r),g(null),k(async()=>{let e=await (0,i.P)(t,r);e.ok||(u(d),g(e.error))}))},disabled:S,className:"".concat(l[d]," cursor-pointer appearance-none border-0 bg-transparent pr-3 disabled:opacity-60"),children:[(0,n.jsx)("option",{value:"public",children:"Public"}),(0,n.jsx)("option",{value:"unlisted",children:"Unlisted"}),(0,n.jsx)("option",{value:"private",children:"Private"})]})]}),(0,n.jsxs)("button",{type:"button",onClick:function(){let e=!b;p(e),g(null),k(async()=>{let r=await (0,s.R)(t,e);r.ok||(p(!e),g(r.error))})},disabled:S,className:"badge cursor-pointer ".concat(b?"badge-accent":""," disabled:opacity-60"),title:b?"Auto-sync ON — share stays current as the local session changes":"Auto-sync OFF — share is a one-time snapshot",children:[(0,n.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full ".concat(b?"bg-accent":"bg-ink-4")}),b?"sync on":"sync off"]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("button",{type:"button",onClick:j,className:"rounded-md border border-surface-border bg-surface-2 px-2 py-1 text-2xs font-medium text-ink-2 hover:bg-surface-3 hover:text-ink-1",children:f?"Copied":"Copy link"}),(0,n.jsx)("button",{type:"button",onClick:async()=>{try{await navigator.clipboard.writeText("promptarc pull ".concat(t)),v(!0),setTimeout(()=>v(!1),1500)}catch(e){}},className:"rounded-md border border-surface-border bg-surface-2 px-2 py-1 text-2xs font-medium text-ink-2 hover:bg-surface-3 hover:text-ink-1",title:"Copy `promptarc pull` command for another machine",children:m?"Copied!":"Pull"}),(0,n.jsx)("a",{href:"/api/share/download/".concat(t),download:!0,className:"rounded-md border border-surface-border bg-surface-2 px-2 py-1 text-2xs font-medium text-ink-2 hover:bg-surface-3 hover:text-ink-1",title:"Download session as .jsonl file (redacted)",children:"Download"}),(0,n.jsx)("button",{type:"button",onClick:function(){window.confirm("Delete this share? The public link will stop working immediately and cannot be undone.")&&(g(null),w(async()=>{let e=await c(t);e.ok||g(e.error)}))},disabled:y,className:"rounded-md border border-danger/30 bg-danger/10 px-2 py-1 text-2xs font-medium text-danger hover:bg-danger/20 disabled:cursor-not-allowed disabled:opacity-60",children:y?"Deleting…":"Delete"})]}),x?(0,n.jsx)("span",{className:"max-w-[12rem] truncate text-2xs text-danger",title:x,children:x}):null]})}}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=6521)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7806],{2109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(655);function r(e){let{children:t,className:n="",hoverable:r=!1}=e;return(0,s.jsx)("div",{className:"card ".concat(r?"card-hover":""," ").concat(n),children:t})}},3660:(e,t,n)=>{"use strict";n.d(t,{FQ:()=>l,Kc:()=>d,v7:()=>i});let s=new Intl.NumberFormat("en-US"),r=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),a=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"});function l(e){return s.format(e)}function i(e){return e?"".concat(!e?"—":r.format(e)," \xb7 ").concat(e?a.format(e):""):"—"}let c=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],o=new Intl.RelativeTimeFormat("en-US",{numeric:"auto"});function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!e)return"—";let n=Math.round((e.getTime()-t.getTime())/1e3);for(let[e,t]of c)if(Math.abs(n)>=t||"second"===e)return o.format(Math.round(n/t),e);return o.format(n,"second")}},3863:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,5830)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))},5830:(e,t,n)=>{"use strict";n.d(t,{ProjectList:()=>m});var s=n(655),r=n(4519),a=n(3483),l=n.n(a),i=n(2109),c=n(5840),o=n(3660);let d=[{kind:"all",label:"All"},{kind:"claude-code",label:"Claude Code"},{kind:"codex",label:"Codex"},{kind:"cursor",label:"Cursor"}];function u(e){return"codex"===e?"Codex":"cursor"===e?"Cursor":null}function m(e){let{projects:t}=e,[n,a]=(0,r.useState)(""),[m,x]=(0,r.useState)("all"),h=(0,r.useMemo)(()=>{let e=new Set;for(let n of t)e.add(n.agentSource);return e},[t]),f=h.size>1,g=(0,r.useMemo)(()=>{let e=t;if("all"!==m&&(e=e.filter(e=>e.agentSource===m)),n.trim()){let t=n.toLowerCase().split(/\s+/).filter(Boolean);e=e.filter(e=>{let n="".concat(e.name," ").concat(e.key).toLowerCase();return t.every(e=>n.includes(e))})}return e},[t,n,m]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)("div",{className:"mb-4 flex gap-1 rounded-md border border-surface-border bg-surface-0 p-0.5 w-fit",children:d.filter(e=>"all"===e.kind||h.has(e.kind)).map(e=>{let n="all"===e.kind?t.length:t.filter(t=>t.agentSource===e.kind).length;return(0,s.jsxs)("button",{type:"button",onClick:()=>x(e.kind),className:"rounded-md px-3 py-1.5 text-xs font-medium transition-colors ".concat(m===e.kind?"bg-surface-2 text-ink-1":"text-ink-3 hover:text-ink-1"),children:[e.label,(0,s.jsx)("span",{className:"ml-1.5 tabular-nums text-ink-4",children:n})]},e.kind)})}):null,(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("input",{type:"text",value:n,onChange:e=>a(e.target.value),placeholder:"Search projects...",className:"w-full rounded-md border border-surface-border bg-surface-0 px-3 py-2 text-sm text-ink-1 placeholder:text-ink-4 focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent"}),n.trim()&&(0,s.jsxs)("div",{className:"mt-1.5 text-2xs text-ink-3",children:[g.length," of ",t.length," result",1===t.length?"":"s"]})]}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:g.map(e=>(0,s.jsx)(l(),{href:"/my-projects/".concat(encodeURIComponent(e.key)),children:(0,s.jsx)(i.Z,{hoverable:!0,className:"px-5 py-4",children:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"truncate text-sm font-semibold text-ink-1",children:e.name}),u(e.agentSource)?(0,s.jsx)(c.E,{variant:"accent",children:u(e.agentSource)}):null,e.syncing?(0,s.jsx)(c.E,{variant:"success",children:"syncing"}):null]}),(0,s.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-2xs text-ink-3",children:[(0,s.jsxs)("span",{children:[(0,o.FQ)(e.shareCount)," shares"]}),e.publicCount>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:[e.publicCount," public"]})]}):null,e.unlistedCount>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:[e.unlistedCount," unlisted"]})]}):null,e.privateCount>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:[e.privateCount," private"]})]}):null,e.totalViews>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)(c.E,{variant:"accent",children:[(0,o.FQ)(e.totalViews)," views"]})]}):null]})]}),(0,s.jsx)("div",{className:"shrink-0 text-2xs text-ink-3",children:e.lastActivityAt&&e.shareCount>0?(0,o.Kc)(new Date(e.lastActivityAt)):"no activity yet"})]})})},e.key))})]})}},5840:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var s=n(655);let r={default:"badge",accent:"badge badge-accent",success:"badge badge-success",warning:"badge badge-warning",danger:"badge badge-danger"};function a(e){let{children:t,variant:n="default"}=e;return(0,s.jsx)("span",{className:r[n],children:t})}}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=3863)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{1929:(e,t,n)=>{"use strict";n.d(t,{P:()=>a});var r=n(4094);let a=(0,r.createServerReference)("604e221da7d1e53a392af07e4defc91423301b6668",r.callServer,void 0,r.findSourceMapURL,"setVisibilityAction")},2109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(655);function a(e){let{children:t,className:n="",hoverable:a=!1}=e;return(0,r.jsx)("div",{className:"card ".concat(a?"card-hover":""," ").concat(n),children:t})}},3160:(e,t,n)=>{"use strict";n.d(t,{R:()=>a});var r=n(4094);let a=(0,r.createServerReference)("601b12dded4f2a95f0cfd3ee7586bbb91555662b74",r.callServer,void 0,r.findSourceMapURL,"setAutoSyncAction")},3660:(e,t,n)=>{"use strict";n.d(t,{FQ:()=>l,Kc:()=>d,v7:()=>c});let r=new Intl.NumberFormat("en-US"),a=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),s=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"});function l(e){return r.format(e)}function c(e){return e?"".concat(!e?"—":a.format(e)," \xb7 ").concat(e?s.format(e):""):"—"}let i=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],o=new Intl.RelativeTimeFormat("en-US",{numeric:"auto"});function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!e)return"—";let n=Math.round((e.getTime()-t.getTime())/1e3);for(let[e,t]of i)if(Math.abs(n)>=t||"second"===e)return o.format(Math.round(n/t),e);return o.format(n,"second")}},4094:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}});let r=n(3609),a=n(4433),s=n(7041)},5840:(e,t,n)=>{"use strict";n.d(t,{E:()=>s});var r=n(655);let a={default:"badge",accent:"badge badge-accent",success:"badge badge-success",warning:"badge badge-warning",danger:"badge badge-danger"};function s(e){let{children:t,variant:n="default"}=e;return(0,r.jsx)("span",{className:a[n],children:t})}},5949:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,6130)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))},6130:(e,t,n)=>{"use strict";n.d(t,{ShareList:()=>h});var r=n(655),a=n(4519),s=n(3483),l=n.n(s),c=n(2109),i=n(5840),o=n(3660),d=n(9464);let u=[{kind:"all",label:"All"},{kind:"claude-code",label:"Claude Code"},{kind:"codex",label:"Codex"},{kind:"cursor",label:"Cursor"}];function m(e){var t;return null!=(t=e.agent_source)?t:"claude-code"}function x(e){return"codex"===e?"Codex":"cursor"===e?"Cursor":null}function h(e){let{rows:t}=e,[n,s]=(0,a.useState)(""),[h,b]=(0,a.useState)("all"),f=(0,a.useMemo)(()=>{let e=new Set;for(let n of t)e.add(m(n));return e},[t]),p=f.size>1,g=(0,a.useMemo)(()=>{let e=t;if("all"!==h&&(e=e.filter(e=>m(e)===h)),n.trim()){let t=n.toLowerCase().split(/\s+/).filter(Boolean);e=e.filter(e=>{var n,r;let a="".concat(e.title," ").concat(null!=(n=e.project_name)?n:""," ").concat(null!=(r=e.project_key)?r:"").toLowerCase();return t.every(e=>a.includes(e))})}return e},[t,n,h]),v=(0,a.useMemo)(()=>(function(e){let t=new Map;for(let l of e){var n,r,a,s;let e=null!=(r=null!=(n=l.project_key)?n:l.project_name)?r:"unknown",c=t.get(e);c||(c={key:e,name:null!=(s=null!=(a=l.project_name)?a:l.project_key)?s:"Other",projectKey:l.project_key,rows:[]},t.set(e,c)),c.rows.push(l)}return Array.from(t.values()).sort((e,t)=>{var n,r,a,s;let l=new Date(null!=(a=null==(n=e.rows[0])?void 0:n.created_at)?a:0).getTime();return new Date(null!=(s=null==(r=t.rows[0])?void 0:r.created_at)?s:0).getTime()-l})})(g),[g]);return(0,r.jsxs)(r.Fragment,{children:[p?(0,r.jsx)("div",{className:"mb-4 flex gap-1 rounded-md border border-surface-border bg-surface-0 p-0.5 w-fit",children:u.filter(e=>"all"===e.kind||f.has(e.kind)).map(e=>{let n="all"===e.kind?t.length:t.filter(t=>m(t)===e.kind).length;return(0,r.jsxs)("button",{type:"button",onClick:()=>b(e.kind),className:"rounded-md px-3 py-1.5 text-xs font-medium transition-colors ".concat(h===e.kind?"bg-surface-2 text-ink-1":"text-ink-3 hover:text-ink-1"),children:[e.label,(0,r.jsx)("span",{className:"ml-1.5 tabular-nums text-ink-4",children:n})]},e.kind)})}):null,(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("input",{type:"text",value:n,onChange:e=>s(e.target.value),placeholder:"Search shares...",className:"w-full rounded-md border border-surface-border bg-surface-0 px-3 py-2 text-sm text-ink-1 placeholder:text-ink-4 focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent"}),n.trim()&&(0,r.jsxs)("div",{className:"mt-1.5 text-2xs text-ink-3",children:[g.length," of ",t.length," result",1===t.length?"":"s"]})]}),(0,r.jsx)("div",{className:"flex flex-col gap-6",children:v.map(e=>(0,r.jsxs)("section",{children:[(0,r.jsxs)("header",{className:"mb-2 flex items-baseline justify-between gap-3",children:[(0,r.jsxs)("h2",{className:"truncate text-sm font-semibold text-ink-1",children:[e.name,(0,r.jsxs)("span",{className:"ml-2 text-2xs font-normal text-ink-3",children:[(0,o.FQ)(e.rows.length)," share",1===e.rows.length?"":"s"]})]}),e.projectKey?(0,r.jsx)(l(),{href:"/my-projects/".concat(encodeURIComponent(e.projectKey)),className:"text-2xs text-ink-3 hover:text-ink-1",children:"open project →"}):null]}),(0,r.jsx)("div",{className:"flex flex-col gap-2",children:e.rows.map(e=>{var t;return(0,r.jsx)(c.Z,{className:"px-5 py-4",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)(l(),{href:"/r/".concat(e.slug),className:"line-clamp-2 text-sm font-semibold text-ink-1 hover:text-accent",children:e.title}),e.ai_summary?(0,r.jsx)("p",{className:"mt-1 line-clamp-2 text-2xs leading-relaxed text-ink-2",children:e.ai_summary}):null,(0,r.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-2xs text-ink-3",children:[x(m(e))?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.E,{variant:"accent",children:x(m(e))}),(0,r.jsx)("span",{children:"\xb7"})]}):null,(0,r.jsxs)("span",{children:[(0,o.FQ)(e.message_count)," msgs"]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,o.FQ)(e.tool_call_count)," tools"]}),e.file_change_count>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,o.FQ)(e.file_change_count)," edits"]})]}):null,(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(e.bytes/1024).toFixed(0)," KB"]}),e.view_count>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)(i.E,{variant:"accent",children:[(0,o.FQ)(e.view_count)," views"]})]}):null]}),(0,r.jsxs)("div",{className:"mt-1 truncate text-2xs text-ink-4",title:(0,o.v7)(new Date(e.created_at)),children:["shared ",(0,o.Kc)(new Date(e.created_at))," \xb7 /r/",e.slug]})]}),(0,r.jsx)(d.ShareRowActions,{slug:e.slug,visibility:null!=(t=e.visibility)?t:"unlisted",autoSync:!0===e.auto_sync})]})},e.slug)})})]},e.key))})]})}},9464:(e,t,n)=>{"use strict";n.d(t,{ShareRowActions:()=>d});var r=n(655),a=n(4519),s=n(1929),l=n(3160),c=n(4094);let i=(0,c.createServerReference)("40c1e2583896b3c4303bdbb5fd24338dc278eca377",c.callServer,void 0,c.findSourceMapURL,"deleteShareAction"),o={public:"badge badge-success",unlisted:"badge",private:"badge badge-warning"};function d(e){let{slug:t,visibility:n,autoSync:c}=e,[d,u]=(0,a.useState)(n),[m,x]=(0,a.useState)(c),[h,b]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),[g,v]=(0,a.useState)(null),[j,y]=(0,a.useTransition)(),[w,k]=(0,a.useTransition)();async function N(){try{await navigator.clipboard.writeText("".concat(window.location.origin,"/r/").concat(t)),b(!0),setTimeout(()=>b(!1),1400)}catch(e){}}return(0,r.jsxs)("div",{className:"flex shrink-0 flex-col items-end gap-1.5",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsxs)("label",{className:"relative",children:[(0,r.jsx)("span",{className:"sr-only",children:"Visibility"}),(0,r.jsxs)("select",{value:d,onChange:e=>{var n;(n=e.target.value)!==d&&(u(n),v(null),k(async()=>{let e=await (0,s.P)(t,n);e.ok||(u(d),v(e.error))}))},disabled:w,className:"".concat(o[d]," cursor-pointer appearance-none border-0 bg-transparent pr-3 disabled:opacity-60"),children:[(0,r.jsx)("option",{value:"public",children:"Public"}),(0,r.jsx)("option",{value:"unlisted",children:"Unlisted"}),(0,r.jsx)("option",{value:"private",children:"Private"})]})]}),(0,r.jsxs)("button",{type:"button",onClick:function(){let e=!m;x(e),v(null),k(async()=>{let n=await (0,l.R)(t,e);n.ok||(x(!e),v(n.error))})},disabled:w,className:"badge cursor-pointer ".concat(m?"badge-accent":""," disabled:opacity-60"),title:m?"Auto-sync ON — share stays current as the local session changes":"Auto-sync OFF — share is a one-time snapshot",children:[(0,r.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full ".concat(m?"bg-accent":"bg-ink-4")}),m?"sync on":"sync off"]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("button",{type:"button",onClick:N,className:"rounded-md border border-surface-border bg-surface-2 px-2 py-1 text-2xs font-medium text-ink-2 hover:bg-surface-3 hover:text-ink-1",children:h?"Copied":"Copy link"}),(0,r.jsx)("button",{type:"button",onClick:async()=>{try{await navigator.clipboard.writeText("promptarc pull ".concat(t)),p(!0),setTimeout(()=>p(!1),1500)}catch(e){}},className:"rounded-md border border-surface-border bg-surface-2 px-2 py-1 text-2xs font-medium text-ink-2 hover:bg-surface-3 hover:text-ink-1",title:"Copy `promptarc pull` command for another machine",children:f?"Copied!":"Pull"}),(0,r.jsx)("a",{href:"/api/share/download/".concat(t),download:!0,className:"rounded-md border border-surface-border bg-surface-2 px-2 py-1 text-2xs font-medium text-ink-2 hover:bg-surface-3 hover:text-ink-1",title:"Download session as .jsonl file (redacted)",children:"Download"}),(0,r.jsx)("button",{type:"button",onClick:function(){window.confirm("Delete this share? The public link will stop working immediately and cannot be undone.")&&(v(null),y(async()=>{let e=await i(t);e.ok||v(e.error)}))},disabled:j,className:"rounded-md border border-danger/30 bg-danger/10 px-2 py-1 text-2xs font-medium text-danger hover:bg-danger/20 disabled:cursor-not-allowed disabled:opacity-60",children:j?"Deleting…":"Delete"})]}),g?(0,r.jsx)("span",{className:"max-w-[12rem] truncate text-2xs text-danger",title:g,children:g}):null]})}}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=5949)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3831,4345,7299],{2880:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=2880)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{697:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,3483,23)),Promise.resolve().then(s.bind(s,982)),Promise.resolve().then(s.bind(s,5995)),Promise.resolve().then(s.bind(s,1123)),Promise.resolve().then(s.bind(s,6597)),Promise.resolve().then(s.bind(s,4059))},982:(e,t,s)=>{"use strict";s.d(t,{DashboardContent:()=>u});var r=s(655),n=s(4519),a=s(3483),i=s.n(a),c=s(2109),o=s(5840),l=s(3660),d=s(3692);let x=[{kind:"all",label:"All",prefix:""},{kind:"claude-code",label:"Claude Code",prefix:""},{kind:"codex",label:"Codex",prefix:"codex:"},{kind:"cursor",label:"Cursor",prefix:"cursor:"}];function u(e){let{projects:t,sessions:s,settingsMap:a,signedIn:u}=e,[m,h]=(0,n.useState)("all"),p=(0,n.useMemo)(()=>{let e=new Set;for(let s of t)s.id.startsWith("codex:")?e.add("codex"):s.id.startsWith("cursor:")?e.add("cursor"):e.add("claude-code");return e},[t]),f=p.size>1,b=(0,n.useMemo)(()=>"all"===m?t:"claude-code"===m?t.filter(e=>!e.id.startsWith("codex:")&&!e.id.startsWith("cursor:")):t.filter(e=>{var t,s;return e.id.startsWith(null!=(s=null==(t=x.find(e=>e.kind===m))?void 0:t.prefix)?s:"___")}),[t,m]),j=(0,n.useMemo)(()=>"all"===m?s:"claude-code"===m?s.filter(e=>!e.projectId.startsWith("codex:")&&!e.projectId.startsWith("cursor:")):s.filter(e=>{var t,s;return e.projectId.startsWith(null!=(s=null==(t=x.find(e=>e.kind===m))?void 0:t.prefix)?s:"___")}),[s,m]),g={syncToCloud:!1};return(0,r.jsxs)(r.Fragment,{children:[f?(0,r.jsx)("div",{className:"mb-6 flex gap-1 rounded-md border border-surface-border bg-surface-0 p-0.5 w-fit",children:x.filter(e=>"all"===e.kind||p.has(e.kind)).map(e=>{let s="all"===e.kind?t.length:"claude-code"===e.kind?t.filter(e=>!e.id.startsWith("codex:")&&!e.id.startsWith("cursor:")).length:t.filter(t=>t.id.startsWith(e.prefix)).length;return(0,r.jsxs)("button",{type:"button",onClick:()=>h(e.kind),className:"rounded-md px-3 py-1.5 text-xs font-medium transition-colors ".concat(m===e.kind?"bg-surface-2 text-ink-1":"text-ink-3 hover:text-ink-1"),children:[e.label,(0,r.jsx)("span",{className:"ml-1.5 tabular-nums text-ink-4",children:s})]},e.kind)})}):null,(0,r.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[1.1fr_1fr]",children:[(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"mb-3 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Projects"}),(0,r.jsx)("div",{className:"flex flex-col gap-2",children:b.map(e=>{var t;let s=null!=(t=a[e.id])?t:g,n=e.id.startsWith("codex:"),x=e.id.startsWith("cursor:");return(0,r.jsxs)("div",{className:"flex items-stretch gap-2",children:[(0,r.jsx)(i(),{href:"/projects/".concat(encodeURIComponent(e.id)),className:"min-w-0 flex-1",children:(0,r.jsxs)(c.Z,{hoverable:!0,className:"flex items-center gap-4 px-5 py-4",children:[(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"truncate text-sm font-semibold text-ink-1",children:e.name}),(0,r.jsxs)(o.E,{children:[(0,l.FQ)(e.sessionCount)," sessions"]}),n?(0,r.jsx)(o.E,{variant:"accent",children:"Codex"}):x?(0,r.jsx)(o.E,{variant:"accent",children:"Cursor"}):null,s.syncToCloud?(0,r.jsx)(o.E,{variant:"success",children:"syncing"}):null]}),(0,r.jsx)("div",{className:"mt-0.5 truncate font-mono text-2xs text-ink-3",children:e.path})]}),(0,r.jsx)("div",{className:"text-2xs text-ink-3",children:e.lastActiveAt?(0,l.Kc)(new Date(e.lastActiveAt)):""})]})}),n||x?null:(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)(d.ProjectSettingsButton,{projectKey:e.id,initial:s,signedIn:u,sessionCount:e.sessionCount})})]},e.id)})})]}),(0,r.jsxs)("section",{children:[(0,r.jsx)("h2",{className:"mb-3 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Recent sessions"}),(0,r.jsx)("div",{className:"flex flex-col gap-2",children:j.slice(0,12).map(e=>{var t;let s=e.projectId.startsWith("codex:")?"Codex":e.projectId.startsWith("cursor:")?"Cursor":null;return(0,r.jsx)(i(),{href:"/sessions/".concat(encodeURIComponent(e.projectId),"/").concat(encodeURIComponent(e.id)),children:(0,r.jsxs)(c.Z,{hoverable:!0,className:"px-5 py-4",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,r.jsx)("span",{className:"line-clamp-1 text-sm font-medium text-ink-1",children:e.title}),(0,r.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:(0,l.Kc)(new Date(null!=(t=e.endedAt)?t:e.startedAt))})]}),(0,r.jsxs)("div",{className:"mt-1 flex items-center gap-2 text-2xs text-ink-3",children:[e.projectName?(0,r.jsx)("span",{children:e.projectName}):null,e.projectName?(0,r.jsx)("span",{children:"\xb7"}):null,s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.E,{variant:"accent",children:s}),(0,r.jsx)("span",{children:"\xb7"})]}):null,(0,r.jsxs)("span",{children:[(0,l.FQ)(e.messageCount)," msgs"]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,l.FQ)(e.toolCallCount)," tools"]}),e.fileChangeCount>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,l.FQ)(e.fileChangeCount)," edits"]})]}):null,e.hasErrors?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsx)(o.E,{variant:"danger",children:"errors"})]}):null]})]})},"".concat(e.projectId,"/").concat(e.id))})})]})]})]})}},2109:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});var r=s(655);function n(e){let{children:t,className:s="",hoverable:n=!1}=e;return(0,r.jsx)("div",{className:"card ".concat(n?"card-hover":""," ").concat(s),children:t})}},3660:(e,t,s)=>{"use strict";s.d(t,{FQ:()=>i,Kc:()=>d,v7:()=>c});let r=new Intl.NumberFormat("en-US"),n=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),a=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"});function i(e){return r.format(e)}function c(e){return e?"".concat(!e?"—":n.format(e)," \xb7 ").concat(e?a.format(e):""):"—"}let o=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],l=new Intl.RelativeTimeFormat("en-US",{numeric:"auto"});function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!e)return"—";let s=Math.round((e.getTime()-t.getTime())/1e3);for(let[e,t]of o)if(Math.abs(s)>=t||"second"===e)return l.format(Math.round(s/t),e);return l.format(s,"second")}},3692:(e,t,s)=>{"use strict";s.d(t,{ProjectSettingsButton:()=>c});var r=s(655),n=s(4519),a=s(4094);let i=(0,a.createServerReference)("4040ec48cb8a5b57c7617a575b90d5e8155f685372",a.callServer,void 0,a.findSourceMapURL,"upsertProjectSettingsAction");function c(e){let{projectKey:t,initial:s,signedIn:a,sessionCount:c,variant:l="icon"}=e,[d,x]=(0,n.useState)(!1),[u,m]=(0,n.useState)(s),[h,p]=(0,n.useState)(null),[f,b]=(0,n.useTransition)(),j="icon"===l?(0,r.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),x(!0)},className:"rounded-md border border-surface-border bg-surface-1 p-1.5 text-ink-3 hover:border-surface-4 hover:text-ink-1",title:"Project settings","aria-label":"Project settings",children:(0,r.jsx)(o,{})}):(0,r.jsxs)("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-md border border-surface-border bg-surface-1 px-3 py-1.5 text-xs font-medium text-ink-2 hover:border-surface-4 hover:text-ink-1",children:[(0,r.jsx)(o,{}),"Project settings",u.syncToCloud?(0,r.jsx)("span",{className:"rounded-full bg-success/15 px-1.5 py-0.5 text-2xs text-success",children:"syncing"}):null]});return(0,r.jsxs)(r.Fragment,{children:[j,d?(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:e=>{e.stopPropagation(),x(!1)},children:(0,r.jsxs)("div",{className:"w-full max-w-md overflow-hidden rounded-xl border border-surface-border bg-surface-1 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("header",{className:"flex items-center justify-between border-b border-surface-border px-5 py-3",children:[(0,r.jsxs)("h2",{className:"truncate text-sm font-semibold text-ink-1",children:["Project settings \xb7 ",(0,r.jsx)("span",{className:"font-mono text-ink-3",children:function(e){var t;if(!e.startsWith("-"))return e;let s=e.split("-").filter(Boolean);return null!=(t=s[s.length-1])?t:e}(t)})]}),(0,r.jsx)("button",{type:"button",onClick:()=>x(!1),className:"rounded-md p-1 text-ink-3 hover:bg-surface-2 hover:text-ink-1",children:"\xd7"})]}),(0,r.jsxs)("div",{className:"space-y-4 px-5 py-4",children:[a?null:(0,r.jsx)("p",{className:"rounded-md border border-warning/30 bg-warning/10 px-3 py-2 text-2xs text-warning",children:"Sign in to save project settings to your account."}),(0,r.jsxs)("fieldset",{children:[(0,r.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Sync to cloud"}),(0,r.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,r.jsx)("input",{type:"checkbox",className:"mt-0.5",checked:u.syncToCloud,onChange:e=>(function(e){let s={...u,...e};m(s),p(null),b(async()=>{let e=await i({projectKey:t,archiveNewSessions:s.syncToCloud});e.ok||(p(e.error),m(u))})})({syncToCloud:e.target.checked}),disabled:!a||f}),(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:"font-medium text-ink-1",children:"Back up this project to my account"}),(0,r.jsxs)("span",{className:"ml-1 text-ink-3",children:["— uploads every session as a private cloud copy",null!=c&&c>0?" (".concat(c," session").concat(1===c?"":"s"," will sync now, plus any new ones going forward)"):" (existing and new)",". Promote individual sessions to unlisted/public from My shares."]})]})]})]}),h?(0,r.jsx)("p",{className:"rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-2xs text-danger",children:h}):null]}),(0,r.jsxs)("footer",{className:"border-t border-surface-border bg-surface-0/40 px-5 py-3 text-2xs text-ink-3",children:["Projects are never public. Use the ",(0,r.jsx)("strong",{children:"Share session"})," ","button on a session to publish individual ones."]})]})}):null]})}function o(){return(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:[(0,r.jsx)("circle",{cx:"8",cy:"8",r:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,r.jsx)("path",{d:"M8 1v2m0 10v2M3.5 3.5l1.4 1.4m6.2 6.2l1.4 1.4M1 8h2m10 0h2M3.5 12.5l1.4-1.4m6.2-6.2l1.4-1.4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}},4094:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{callServer:function(){return r.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let r=s(3609),n=s(4433),a=s(7041)},5840:(e,t,s)=>{"use strict";s.d(t,{E:()=>a});var r=s(655);let n={default:"badge",accent:"badge badge-accent",success:"badge badge-success",warning:"badge badge-warning",danger:"badge badge-danger"};function a(e){let{children:t,variant:s="default"}=e;return(0,r.jsx)("span",{className:n[s],children:t})}},5995:(e,t,s)=>{"use strict";s.d(t,{InstallCTA:()=>a});var r=s(655),n=s(4519);function a(){return(0,r.jsxs)("section",{className:"relative px-6 py-20 sm:py-28",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-accent/30 to-transparent"}),(0,r.jsx)("div",{className:"mx-auto max-w-[820px]",children:(0,r.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border border-surface-border bg-surface-1 shadow-2xl shadow-black/30",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-10",style:{background:"radial-gradient(ellipse at top right, rgba(129,140,248,0.15), transparent 50%), radial-gradient(ellipse at bottom left, rgba(99,102,241,0.1), transparent 50%)"}}),(0,r.jsxs)("div",{className:"px-8 py-12 sm:px-12",children:[(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-accent",children:"Get started"}),(0,r.jsx)("h2",{className:"mt-2 text-3xl font-semibold tracking-tight text-ink-0 sm:text-4xl",children:"One command. Zero config."}),(0,r.jsx)("p",{className:"mx-auto mt-3 max-w-md text-sm leading-relaxed text-ink-2",children:"Run it, browse your sessions, share what matters. Nothing leaves your machine until you click Share."})]}),(0,r.jsx)("div",{className:"mx-auto mt-8 max-w-md",children:(0,r.jsx)(i,{command:"npx promptarc"})}),(0,r.jsxs)("div",{className:"mt-10 grid gap-4 sm:grid-cols-3",children:[(0,r.jsxs)(c,{n:"01",title:"Multi-agent",children:["Reads ",(0,r.jsx)("code",{className:"font-mono text-2xs",children:"~/.claude/"}),","," ",(0,r.jsx)("code",{className:"font-mono text-2xs",children:"~/.codex/"}),", and"," ",(0,r.jsx)("code",{className:"font-mono text-2xs",children:"~/.cursor/"})," ","in one dashboard with tabs."]}),(0,r.jsx)(c,{n:"02",title:"Zero config",children:"No accounts. No setup. Run one command and your sessions are instantly browseable with inline diffs."}),(0,r.jsx)(c,{n:"03",title:"AI-powered",children:"Every shared session gets an automatic AI summary. Full-text search across your entire cloud archive."})]}),(0,r.jsx)("div",{className:"mt-8 flex justify-center",children:(0,r.jsxs)("a",{href:"https://www.npmjs.com/package/promptarc",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-md border border-surface-border bg-surface-2 px-4 py-2 text-xs font-medium text-ink-2 transition-colors hover:border-surface-4 hover:text-ink-1",children:[(0,r.jsx)(o,{}),"View on npm"]})})]})]})})]})}function i(e){let{command:t}=e,[s,a]=(0,n.useState)(!1);async function i(){try{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),1500)}catch(e){}}return(0,r.jsxs)("button",{type:"button",onClick:i,className:"group flex w-full items-center justify-between gap-3 rounded-xl border border-surface-border bg-surface-0 px-5 py-3.5 font-mono text-sm text-ink-1 transition-all hover:border-surface-4 hover:shadow-lg hover:shadow-black/20",children:[(0,r.jsxs)("span",{children:[(0,r.jsx)("span",{className:"text-ink-4",children:"$"})," ",t]}),(0,r.jsx)("span",{className:"shrink-0 rounded-md border border-surface-border bg-surface-2 px-2 py-0.5 text-2xs font-sans text-ink-3 transition-colors group-hover:border-surface-4 group-hover:text-ink-1",children:s?"copied!":"copy"})]})}function c(e){let{n:t,title:s,children:n}=e;return(0,r.jsxs)("div",{className:"rounded-xl border border-surface-border bg-surface-0/50 px-5 py-5",children:[(0,r.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,r.jsx)("span",{className:"flex h-6 w-6 items-center justify-center rounded-md border border-accent/30 bg-accent-soft font-mono text-2xs font-bold text-accent",children:t}),(0,r.jsx)("span",{className:"text-xs font-semibold uppercase tracking-wider text-ink-3",children:s})]}),(0,r.jsx)("p",{className:"text-2xs leading-relaxed text-ink-2",children:n})]})}function o(){return(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,r.jsx)("rect",{x:"1",y:"3",width:"12",height:"8",rx:"1",stroke:"currentColor",strokeWidth:"1.3"}),(0,r.jsx)("path",{d:"M4 6v2.5M7 6v2.5M7 7.5h1.5V6",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]})}}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=697)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7066,9584,9877],{4462:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=4462)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6801],{3692:(e,r,t)=>{"use strict";t.d(r,{ProjectSettingsButton:()=>c});var s=t(655),n=t(4519),o=t(4094);let i=(0,o.createServerReference)("4040ec48cb8a5b57c7617a575b90d5e8155f685372",o.callServer,void 0,o.findSourceMapURL,"upsertProjectSettingsAction");function c(e){let{projectKey:r,initial:t,signedIn:o,sessionCount:c,variant:a="icon"}=e,[d,u]=(0,n.useState)(!1),[x,p]=(0,n.useState)(t),[b,h]=(0,n.useState)(null),[f,m]=(0,n.useTransition)(),g="icon"===a?(0,s.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),u(!0)},className:"rounded-md border border-surface-border bg-surface-1 p-1.5 text-ink-3 hover:border-surface-4 hover:text-ink-1",title:"Project settings","aria-label":"Project settings",children:(0,s.jsx)(l,{})}):(0,s.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"inline-flex items-center gap-1.5 rounded-md border border-surface-border bg-surface-1 px-3 py-1.5 text-xs font-medium text-ink-2 hover:border-surface-4 hover:text-ink-1",children:[(0,s.jsx)(l,{}),"Project settings",x.syncToCloud?(0,s.jsx)("span",{className:"rounded-full bg-success/15 px-1.5 py-0.5 text-2xs text-success",children:"syncing"}):null]});return(0,s.jsxs)(s.Fragment,{children:[g,d?(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:e=>{e.stopPropagation(),u(!1)},children:(0,s.jsxs)("div",{className:"w-full max-w-md overflow-hidden rounded-xl border border-surface-border bg-surface-1 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("header",{className:"flex items-center justify-between border-b border-surface-border px-5 py-3",children:[(0,s.jsxs)("h2",{className:"truncate text-sm font-semibold text-ink-1",children:["Project settings \xb7 ",(0,s.jsx)("span",{className:"font-mono text-ink-3",children:function(e){var r;if(!e.startsWith("-"))return e;let t=e.split("-").filter(Boolean);return null!=(r=t[t.length-1])?r:e}(r)})]}),(0,s.jsx)("button",{type:"button",onClick:()=>u(!1),className:"rounded-md p-1 text-ink-3 hover:bg-surface-2 hover:text-ink-1",children:"\xd7"})]}),(0,s.jsxs)("div",{className:"space-y-4 px-5 py-4",children:[o?null:(0,s.jsx)("p",{className:"rounded-md border border-warning/30 bg-warning/10 px-3 py-2 text-2xs text-warning",children:"Sign in to save project settings to your account."}),(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Sync to cloud"}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5",checked:x.syncToCloud,onChange:e=>(function(e){let t={...x,...e};p(t),h(null),m(async()=>{let e=await i({projectKey:r,archiveNewSessions:t.syncToCloud});e.ok||(h(e.error),p(x))})})({syncToCloud:e.target.checked}),disabled:!o||f}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-ink-1",children:"Back up this project to my account"}),(0,s.jsxs)("span",{className:"ml-1 text-ink-3",children:["— uploads every session as a private cloud copy",null!=c&&c>0?" (".concat(c," session").concat(1===c?"":"s"," will sync now, plus any new ones going forward)"):" (existing and new)",". Promote individual sessions to unlisted/public from My shares."]})]})]})]}),b?(0,s.jsx)("p",{className:"rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-2xs text-danger",children:b}):null]}),(0,s.jsxs)("footer",{className:"border-t border-surface-border bg-surface-0/40 px-5 py-3 text-2xs text-ink-3",children:["Projects are never public. Use the ",(0,s.jsx)("strong",{children:"Share session"})," ","button on a session to publish individual ones."]})]})}):null]})}function l(){return(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,s.jsx)("path",{d:"M8 1v2m0 10v2M3.5 3.5l1.4 1.4m6.2 6.2l1.4 1.4M1 8h2m10 0h2M3.5 12.5l1.4-1.4m6.2-6.2l1.4-1.4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}},4094:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let s=t(3609),n=t(4433),o=t(7041)},9563:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,3483,23)),Promise.resolve().then(t.bind(t,3692)),Promise.resolve().then(t.bind(t,1123)),Promise.resolve().then(t.bind(t,6597)),Promise.resolve().then(t.bind(t,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=9563)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9485],{1455:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,3483,23)),Promise.resolve().then(t.bind(t,9677)),Promise.resolve().then(t.bind(t,1123)),Promise.resolve().then(t.bind(t,6597)),Promise.resolve().then(t.bind(t,4059)),Promise.resolve().then(t.bind(t,4785)),Promise.resolve().then(t.bind(t,4485))},4485:(e,r,t)=>{"use strict";t.d(r,{ToolCall:()=>a});var n=t(655),s=t(4519);function o(e){var r;let{preview:t}=e,[o,a]=(0,s.useState)(!1);if(!t.text.trim())return null;let i=null!=(r=t.text.split("\n",1)[0])?r:"",c=t.text.includes("\n")||t.truncated;return(0,n.jsxs)("div",{className:"overflow-hidden rounded-md border text-2xs ".concat(t.isError?"border-danger/30 bg-danger/5":"border-surface-border bg-surface-0/40"),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>c&&a(e=>!e),disabled:!c,className:"flex w-full items-center gap-2 px-3 py-1 text-left ".concat(c?"hover:bg-surface-2/40":""),children:[(0,n.jsx)("span",{className:"rounded px-1.5 py-px font-mono ".concat(t.isError?"bg-danger/20 text-danger":"bg-surface-2 text-ink-3"),children:t.isError?"error":"output"}),(0,n.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:i||"(empty)"}),c?(0,n.jsx)("span",{className:"text-ink-4",children:o?"▾":"▸"}):null]}),o?(0,n.jsxs)("pre",{className:"max-h-72 overflow-auto whitespace-pre-wrap border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:[t.text,t.truncated?(0,n.jsx)("span",{className:"text-ink-4",children:"\n… truncated (".concat(t.fullLines," lines)")}):null]}):null]})}function a(e){let{name:r,input:t,result:a,diff:c}=e,[l,d]=(0,s.useState)(!1),u=function(e,r){var t,s,o,a,i,c,l,d,u,x,p;if(!r||"object"!=typeof r)return"";switch(e){case"Bash":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(s=null!=(t=r.command)?t:r.description)?s:"")});case"Read":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(o=r.file_path)?o:"")});case"Edit":case"Write":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(a=r.file_path)?a:"")});case"Grep":return(0,n.jsxs)("code",{className:"font-mono",children:[String(null!=(i=r.pattern)?i:""),r.path?" in ".concat(r.path):""]});case"Glob":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(c=r.pattern)?c:"")});case"TaskCreate":return String(null!=(l=r.subject)?l:"");case"TaskUpdate":return"".concat(String(null!=(d=r.taskId)?d:"")," → ").concat(String(null!=(u=r.status)?u:""));case"Agent":return String(null!=(p=null!=(x=r.description)?x:r.prompt)?p:"");default:for(let[,e]of Object.entries(r))if("string"==typeof e&&e.length>0)return e;return""}}(r,t);return(0,n.jsxs)("div",{className:"overflow-hidden rounded-md border border-surface-border bg-surface-1/80",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-2xs hover:bg-surface-2",children:[(0,n.jsx)(i,{open:l}),(0,n.jsx)("span",{className:"rounded bg-accent-soft px-1.5 py-px font-mono text-2xs text-accent",children:r}),(0,n.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:u})]}),l?(0,n.jsx)("pre",{className:"max-h-72 overflow-auto border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:function(e){try{return JSON.stringify(e,null,2)}catch(r){return String(e)}}(t)}):null,c?(0,n.jsx)("div",{className:"border-t border-surface-border p-2",children:c}):null,a?(0,n.jsx)("div",{className:"border-t border-surface-border p-2",children:(0,n.jsx)(o,{preview:a})}):null]})}function i(e){let{open:r}=e;return(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"shrink-0 text-ink-3 transition-transform ".concat(r?"rotate-90":""),children:(0,n.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},4785:(e,r,t)=>{"use strict";t.d(r,{ThinkingBlock:()=>o});var n=t(655),s=t(4519);function o(e){let{text:r}=e,[t,o]=(0,s.useState)(!1);return r.trim()?(0,n.jsxs)("details",{className:"group rounded-md border border-surface-border bg-surface-1/60 text-2xs",open:t,onToggle:e=>o(e.target.open),children:[(0,n.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2 px-3 py-1.5 text-ink-3 hover:text-ink-2",children:[(0,n.jsx)(a,{open:t}),(0,n.jsx)("span",{className:"font-medium uppercase tracking-wider",children:"Thinking"}),(0,n.jsxs)("span",{className:"text-ink-4",children:[r.length," chars"]})]}),(0,n.jsx)("pre",{className:"whitespace-pre-wrap border-t border-surface-border px-3 py-2 font-mono text-2xs text-ink-3",children:r})]}):null}function a(e){let{open:r}=e;return(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"transition-transform ".concat(r?"rotate-90":""),children:(0,n.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},9677:(e,r,t)=>{"use strict";t.d(r,{PRSummaryButton:()=>o});var n=t(655),s=t(4519);function o(e){let{slug:r}=e,[t,o]=(0,s.useState)("idle"),[c,l]=(0,s.useState)(""),[d,u]=(0,s.useState)(""),[x,p]=(0,s.useState)(!1);async function h(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o("loading"),u("");try{let n=await fetch("/api/ai/pr-summary",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({slug:r,force:e})});if(!n.ok){var t;let e=await n.json();throw Error(null!=(t=e.error)?t:"HTTP ".concat(n.status))}let s=await n.json();l(s.markdown),o(s.stale?"stale":"done")}catch(e){u(e instanceof Error?e.message:String(e)),o("error")}}async function m(){try{await navigator.clipboard.writeText(c),p(!0),setTimeout(()=>p(!1),1500)}catch(e){}}return"idle"===t?(0,n.jsxs)("button",{type:"button",onClick:()=>h(!1),className:"flex w-full items-center gap-2 rounded-md border border-surface-border bg-surface-1 px-3 py-2 text-xs font-medium text-ink-2 hover:border-surface-4 hover:text-ink-1",children:[(0,n.jsx)(a,{}),"Generate PR description"]}):"loading"===t?(0,n.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-surface-border bg-surface-1 px-3 py-2 text-xs text-ink-3",children:[(0,n.jsx)(i,{}),"Generating..."]}):"error"===t?(0,n.jsxs)("div",{className:"rounded-md border border-danger/30 bg-danger/10 px-3 py-2",children:[(0,n.jsx)("p",{className:"text-2xs text-danger",children:d}),(0,n.jsx)("button",{type:"button",onClick:()=>h(!0),className:"mt-1 text-2xs font-medium text-danger hover:underline",children:"Try again"})]}):(0,n.jsxs)("div",{className:"rounded-md border border-surface-border bg-surface-1",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between border-b border-surface-border px-3 py-2",children:[(0,n.jsx)("span",{className:"text-2xs font-medium text-ink-3",children:"PR description"}),(0,n.jsx)("button",{type:"button",onClick:m,className:"rounded border border-surface-border bg-surface-2 px-2 py-0.5 text-2xs font-medium text-ink-2 hover:border-surface-4 hover:text-ink-1",children:x?"Copied!":"Copy"})]}),(0,n.jsx)("pre",{className:"max-h-64 overflow-y-auto whitespace-pre-wrap p-3 font-mono text-2xs leading-relaxed text-ink-2",children:c}),"stale"===t?(0,n.jsxs)("div",{className:"border-t border-warning/20 bg-warning/5 px-3 py-2",children:[(0,n.jsx)("p",{className:"text-2xs text-warning",children:"Session updated since this was generated."}),(0,n.jsx)("button",{type:"button",onClick:()=>h(!0),className:"mt-1 text-2xs font-medium text-warning hover:underline",children:"Regenerate"})]}):(0,n.jsx)("div",{className:"border-t border-surface-border px-3 py-1.5 text-2xs text-ink-4",children:"Paste into your GitHub PR body"})]})}function a(){return(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("circle",{cx:"5",cy:"4",r:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,n.jsx)("circle",{cx:"11",cy:"12",r:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,n.jsx)("path",{d:"M5 6v6M11 10V6c0-1-1-2-3-2",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}function i(){return(0,n.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin text-accent",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.6",opacity:"0.25"}),(0,n.jsx)("path",{d:"M14 8a6 6 0 0 0-6-6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]})}}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=1455)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2959],{224:(e,t,n)=>{"use strict";n.d(t,{CloudSearchBox:()=>c});var r=n(655),s=n(4519),a=n(3483),l=n.n(a),i=n(3660);function c(){let[e,t]=(0,s.useState)(""),[n,a]=(0,s.useState)([]),[c,o]=(0,s.useState)(!1),[u,d]=(0,s.useState)(!1),[m,h]=(0,s.useState)(null),x=(0,s.useRef)(null),f=(0,s.useCallback)(async e=>{if(e.trim().length<2){a([]),d(!1);return}o(!0),h(null);try{let n=await fetch("/api/search",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({q:e.trim(),limit:30})});if(!n.ok){var t;let e=await n.json();throw Error(null!=(t=e.error)?t:"HTTP ".concat(n.status))}let r=await n.json();a(r.results),d(!0)}catch(e){h(e instanceof Error?e.message:String(e)),a([]),d(!0)}finally{o(!1)}},[]);return(0,r.jsxs)("div",{children:[(0,r.jsx)("form",{onSubmit:function(t){t.preventDefault(),x.current&&clearTimeout(x.current),f(e)},className:"mb-6",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("input",{type:"text",value:e,onChange:e=>{var n;t(n=e.target.value),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>f(n),350)},placeholder:'Search... e.g. "OAuth redirect error" or "tsconfig"',autoFocus:!0,className:"flex-1 rounded-md border border-surface-border bg-surface-0 px-4 py-2.5 text-sm text-ink-1 placeholder:text-ink-4 focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent"}),(0,r.jsx)("button",{type:"submit",disabled:c||e.trim().length<2,className:"shrink-0 rounded-md border border-accent/40 bg-accent px-4 py-2.5 text-sm font-semibold text-surface-0 hover:bg-accent/90 disabled:opacity-50",children:c?"Searching...":"Search"})]})}),m?(0,r.jsx)("div",{className:"rounded-md border border-danger/30 bg-danger/10 px-4 py-3 text-sm text-danger",children:m}):null,u&&!m?(0,r.jsx)("div",{className:"mb-3 text-2xs text-ink-3",children:0===n.length?"No results found.":"".concat(n.length," result").concat(1===n.length?"":"s")}):null,n.length>0?(0,r.jsx)("div",{className:"flex flex-col gap-2",children:n.map(e=>(0,r.jsx)(l(),{href:"/r/".concat(e.slug),children:(0,r.jsxs)("div",{className:"card hoverable px-5 py-4",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,r.jsx)("span",{className:"line-clamp-1 text-sm font-medium text-ink-1",children:e.title}),(0,r.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:(0,i.Kc)(new Date(e.createdAt))})]}),e.headline?(0,r.jsx)("p",{className:"mt-1 line-clamp-2 text-2xs text-ink-2",dangerouslySetInnerHTML:{__html:e.headline}}):null,(0,r.jsxs)("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-2xs text-ink-3",children:[e.projectName?(0,r.jsx)("span",{className:"font-medium",children:e.projectName}):null,e.projectName?(0,r.jsx)("span",{children:"\xb7"}):null,(0,r.jsxs)("span",{children:[(0,i.FQ)(e.messageCount)," msgs"]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,i.FQ)(e.toolCallCount)," tools"]}),e.fileChangeCount>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,i.FQ)(e.fileChangeCount)," edits"]})]}):null,(0,r.jsx)("span",{className:"badge text-2xs",children:e.visibility})]})]})},e.slug))}):null,u||c?null:(0,r.jsxs)("div",{className:"mt-8 text-center text-sm text-ink-3",children:[(0,r.jsx)("p",{children:"Search your entire cloud archive."}),(0,r.jsx)("p",{className:"mt-2 text-2xs",children:"Try a file path, error message, command, function name, or anything from a conversation with your AI agent."})]})]})}},3660:(e,t,n)=>{"use strict";n.d(t,{FQ:()=>l,Kc:()=>u,v7:()=>i});let r=new Intl.NumberFormat("en-US"),s=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),a=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"});function l(e){return r.format(e)}function i(e){return e?"".concat(!e?"—":s.format(e)," \xb7 ").concat(e?a.format(e):""):"—"}let c=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],o=new Intl.RelativeTimeFormat("en-US",{numeric:"auto"});function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!e)return"—";let n=Math.round((e.getTime()-t.getTime())/1e3);for(let[e,t]of c)if(Math.abs(n)>=t||"second"===e)return o.format(Math.round(n/t),e);return o.format(n,"second")}},5106:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,224)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=5106)),_N_E=e.O()}]);
|
package/dist/web/.next/static/chunks/app/sessions/[projectId]/[sessionId]/page-87b4505dd32edb9d.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3025],{1768:(e,t,r)=>{"use strict";r.d(t,{LiveRefresh:()=>a});var s=r(4519),n=r(1932);function a(e){let{projectId:t,sessionId:r}=e,a=(0,n.useRouter)();return(0,s.useEffect)(()=>{let e=new EventSource("/api/local/watch?projectId=".concat(encodeURIComponent(t),"&sessionId=").concat(encodeURIComponent(r)));e.addEventListener("change",()=>{a.refresh()});let s=setInterval(()=>{a.refresh()},3e4);return()=>{e.close(),clearInterval(s)}},[t,r,a]),null}},1929:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});var s=r(4094);let n=(0,s.createServerReference)("604e221da7d1e53a392af07e4defc91423301b6668",s.callServer,void 0,s.findSourceMapURL,"setVisibilityAction")},3160:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var s=r(4094);let n=(0,s.createServerReference)("601b12dded4f2a95f0cfd3ee7586bbb91555662b74",s.callServer,void 0,s.findSourceMapURL,"setAutoSyncAction")},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return s.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let s=r(3609),n=r(4433),a=r(7041)},4485:(e,t,r)=>{"use strict";r.d(t,{ToolCall:()=>c});var s=r(655),n=r(4519);function a(e){var t;let{preview:r}=e,[a,c]=(0,n.useState)(!1);if(!r.text.trim())return null;let i=null!=(t=r.text.split("\n",1)[0])?t:"",o=r.text.includes("\n")||r.truncated;return(0,s.jsxs)("div",{className:"overflow-hidden rounded-md border text-2xs ".concat(r.isError?"border-danger/30 bg-danger/5":"border-surface-border bg-surface-0/40"),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>o&&c(e=>!e),disabled:!o,className:"flex w-full items-center gap-2 px-3 py-1 text-left ".concat(o?"hover:bg-surface-2/40":""),children:[(0,s.jsx)("span",{className:"rounded px-1.5 py-px font-mono ".concat(r.isError?"bg-danger/20 text-danger":"bg-surface-2 text-ink-3"),children:r.isError?"error":"output"}),(0,s.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:i||"(empty)"}),o?(0,s.jsx)("span",{className:"text-ink-4",children:a?"▾":"▸"}):null]}),a?(0,s.jsxs)("pre",{className:"max-h-72 overflow-auto whitespace-pre-wrap border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:[r.text,r.truncated?(0,s.jsx)("span",{className:"text-ink-4",children:"\n… truncated (".concat(r.fullLines," lines)")}):null]}):null]})}function c(e){let{name:t,input:r,result:c,diff:o}=e,[l,d]=(0,n.useState)(!1),u=function(e,t){var r,n,a,c,i,o,l,d,u,x,h;if(!t||"object"!=typeof t)return"";switch(e){case"Bash":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(n=null!=(r=t.command)?r:t.description)?n:"")});case"Read":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(a=t.file_path)?a:"")});case"Edit":case"Write":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(c=t.file_path)?c:"")});case"Grep":return(0,s.jsxs)("code",{className:"font-mono",children:[String(null!=(i=t.pattern)?i:""),t.path?" in ".concat(t.path):""]});case"Glob":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(o=t.pattern)?o:"")});case"TaskCreate":return String(null!=(l=t.subject)?l:"");case"TaskUpdate":return"".concat(String(null!=(d=t.taskId)?d:"")," → ").concat(String(null!=(u=t.status)?u:""));case"Agent":return String(null!=(h=null!=(x=t.description)?x:t.prompt)?h:"");default:for(let[,e]of Object.entries(t))if("string"==typeof e&&e.length>0)return e;return""}}(t,r);return(0,s.jsxs)("div",{className:"overflow-hidden rounded-md border border-surface-border bg-surface-1/80",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-2xs hover:bg-surface-2",children:[(0,s.jsx)(i,{open:l}),(0,s.jsx)("span",{className:"rounded bg-accent-soft px-1.5 py-px font-mono text-2xs text-accent",children:t}),(0,s.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:u})]}),l?(0,s.jsx)("pre",{className:"max-h-72 overflow-auto border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:function(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}}(r)}):null,o?(0,s.jsx)("div",{className:"border-t border-surface-border p-2",children:o}):null,c?(0,s.jsx)("div",{className:"border-t border-surface-border p-2",children:(0,s.jsx)(a,{preview:c})}):null]})}function i(e){let{open:t}=e;return(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"shrink-0 text-ink-3 transition-transform ".concat(t?"rotate-90":""),children:(0,s.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},4785:(e,t,r)=>{"use strict";r.d(t,{ThinkingBlock:()=>a});var s=r(655),n=r(4519);function a(e){let{text:t}=e,[r,a]=(0,n.useState)(!1);return t.trim()?(0,s.jsxs)("details",{className:"group rounded-md border border-surface-border bg-surface-1/60 text-2xs",open:r,onToggle:e=>a(e.target.open),children:[(0,s.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2 px-3 py-1.5 text-ink-3 hover:text-ink-2",children:[(0,s.jsx)(c,{open:r}),(0,s.jsx)("span",{className:"font-medium uppercase tracking-wider",children:"Thinking"}),(0,s.jsxs)("span",{className:"text-ink-4",children:[t.length," chars"]})]}),(0,s.jsx)("pre",{className:"whitespace-pre-wrap border-t border-surface-border px-3 py-2 font-mono text-2xs text-ink-3",children:t})]}):null}function c(e){let{open:t}=e;return(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"transition-transform ".concat(t?"rotate-90":""),children:(0,s.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},5816:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3483,23)),Promise.resolve().then(r.bind(r,1768)),Promise.resolve().then(r.bind(r,8999)),Promise.resolve().then(r.bind(r,6351)),Promise.resolve().then(r.bind(r,1123)),Promise.resolve().then(r.bind(r,6597)),Promise.resolve().then(r.bind(r,4059)),Promise.resolve().then(r.bind(r,4785)),Promise.resolve().then(r.bind(r,4485))},6351:(e,t,r)=>{"use strict";r.d(t,{ShareButton:()=>i});var s=r(655),n=r(4519),a=r(1929),c=r(3160);function i(e){let{projectId:t,sessionId:r}=e,[i,u]=(0,n.useState)(!1),[x,h]=(0,n.useState)(!1),[m,p]=(0,n.useState)(null),[b,f]=(0,n.useState)(null),[g,j]=(0,n.useState)(!1),[k,v]=(0,n.useState)("private"),[y,N]=(0,n.useState)(!1),[w,S]=(0,n.useTransition)();async function C(){h(!0),f(null),p(null);try{let n=await fetch("/api/share",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({projectId:t,sessionId:r,visibility:k,autoSync:y,_h:""})}),a=await n.json();if(!n.ok){var e,s;if(429===n.status){let t=null!=(e=a.retryAfter)?e:60,r=Math.ceil(t/60);throw Error("Rate limit hit. Please wait ".concat(r," minute").concat(1===r?"":"s"," and try again."))}if(413===n.status)throw Error("Session is too large to share (over 5 MB).");throw Error(null!=(s=a.error)?s:"HTTP ".concat(n.status))}p(a)}catch(e){f(e instanceof Error?e.message:String(e))}finally{h(!1)}}async function R(){if(m)try{await navigator.clipboard.writeText(m.url),j(!0),setTimeout(()=>j(!1),1500)}catch(e){}}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:function(){u(!0),m||x||C()},className:"rounded-md border border-accent/40 bg-accent-soft px-3 py-1.5 text-xs font-medium text-accent hover:bg-accent/20",children:"Share session"}),i?(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:()=>u(!1),children:(0,s.jsxs)("div",{className:"w-full max-w-lg overflow-hidden rounded-xl border border-surface-border bg-surface-1 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("header",{className:"flex items-center justify-between border-b border-surface-border px-5 py-3",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-ink-1",children:"Share session"}),(0,s.jsx)("button",{type:"button",onClick:()=>u(!1),className:"rounded-md p-1 text-ink-3 hover:bg-surface-2 hover:text-ink-1","aria-label":"Close",children:"\xd7"})]}),(0,s.jsx)("div",{className:"px-5 py-4",children:x?(0,s.jsx)(o,{}):b?(0,s.jsx)(l,{message:b,onRetry:C}):m?(0,s.jsx)(d,{result:m,copied:g,onCopy:R,visibility:k,onVisibilityChange:function(e){v(e),m&&S(async()=>{let t=await (0,a.P)(m.slug,e);t.ok||(v(k),f(t.error))})},autoSync:y,onAutoSyncChange:function(e){N(e),m&&S(async()=>{let t=await (0,c.R)(m.slug,e);t.ok||(N(y),f(t.error))})},saving:w}):null}),(0,s.jsxs)("footer",{className:"border-t border-surface-border bg-surface-0/40 px-5 py-3 text-2xs text-ink-3",children:["Secrets, home-directory paths, and AI thinking blocks are stripped before upload. The artifact is saved to your promptarc account — manage it from ",(0,s.jsx)("span",{className:"font-mono",children:"My shares"}),"."]})]})}):null]})}function o(){return(0,s.jsxs)("div",{className:"flex items-center gap-3 py-4 text-sm text-ink-2",children:[(0,s.jsxs)("svg",{className:"h-4 w-4 animate-spin text-accent",viewBox:"0 0 16 16",fill:"none",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.6",opacity:"0.25"}),(0,s.jsx)("path",{d:"M14 8a6 6 0 0 0-6-6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),"Building artifact and uploading…"]})}function l(e){let{message:t,onRetry:r}=e;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm text-danger",children:["Failed to share: ",t]}),(0,s.jsx)("button",{type:"button",onClick:r,className:"mt-3 rounded-md border border-surface-border bg-surface-2 px-3 py-1 text-xs text-ink-1 hover:bg-surface-3",children:"Try again"})]})}function d(e){let{result:t,copied:r,onCopy:n,visibility:a,onVisibilityChange:c,autoSync:i,onAutoSyncChange:o,saving:l}=e,d=t.redactionStats.secretsRedacted+t.redactionStats.pathsRedacted+t.redactionStats.toolResultsTruncated,m=function(e){switch(e){case"created":return{label:"Created new share",badgeClass:"badge border-accent/30 bg-accent-soft text-accent",icon:(0,s.jsx)(x,{})};case"updated":return{label:"Updated existing share",badgeClass:"badge border-warning/30 bg-warning/10 text-warning",icon:(0,s.jsx)(x,{})};case"unchanged":return{label:"Already shared — same content",badgeClass:"badge border-surface-border bg-surface-2 text-ink-2",icon:(0,s.jsx)(x,{})}}}(t.status);return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-3 inline-flex items-center gap-1.5 ".concat(m.badgeClass),children:[m.icon,(0,s.jsx)("span",{children:m.label})]}),(0,s.jsx)("label",{className:"mb-1 block text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Share link"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"text",readOnly:!0,value:t.url,className:"flex-1 rounded-md border border-surface-border bg-surface-0 px-3 py-2 font-mono text-xs text-ink-1 focus:outline-none focus:ring-1 focus:ring-accent",onFocus:e=>e.currentTarget.select()}),(0,s.jsx)("button",{type:"button",onClick:n,className:"shrink-0 rounded-md border border-surface-border bg-surface-2 px-3 py-2 text-xs font-medium text-ink-1 hover:bg-surface-3",children:r?"Copied":"Copy"})]})]}),(0,s.jsxs)("fieldset",{className:"border-t border-surface-border pt-3",children:[(0,s.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Visibility"}),(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(u,{value:"public",checked:"public"===a,onChange:()=>c("public"),label:"Public",hint:"Anyone, indexed by search engines",disabled:l}),(0,s.jsx)(u,{value:"unlisted",checked:"unlisted"===a,onChange:()=>c("unlisted"),label:"Unlisted",hint:"Anyone with the URL",disabled:l}),(0,s.jsx)(u,{value:"private",checked:"private"===a,onChange:()=>c("private"),label:"Private",hint:"Only you (must sign in)",disabled:l})]})]}),(0,s.jsxs)("fieldset",{className:"border-t border-surface-border pt-3",children:[(0,s.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Stay current"}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5",checked:i,onChange:e=>o(e.target.checked),disabled:l}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-ink-1",children:"Auto-sync changes to this share"}),(0,s.jsx)("span",{className:"ml-1 text-ink-3",children:"(re-uploads every ~5 minutes if the local session has changed)"})]})]})]}),"unchanged"===t.status?(0,s.jsx)("p",{className:"text-2xs text-ink-3",children:"The session content is identical to the existing share, so we reused it. Edit something in the session and re-share to update."}):(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-3 border-t border-surface-border pt-3 text-2xs text-ink-3",children:[(0,s.jsx)(h,{label:"Size",value:"".concat((t.bytes/1024).toFixed(1)," KB")}),(0,s.jsx)(h,{label:"Secrets",value:t.redactionStats.secretsRedacted.toString()}),(0,s.jsx)(h,{label:"Redactions",value:d.toString()})]})]})}function u(e){let{value:t,checked:r,onChange:n,label:a,hint:c,disabled:i}=e;return(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,s.jsx)("input",{type:"radio",name:"share-visibility",value:t,checked:r,onChange:n,disabled:i,className:"mt-0.5"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-ink-1",children:a}),(0,s.jsxs)("span",{className:"ml-1 text-ink-3",children:["— ",c]})]})]})}function x(){return(0,s.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-current"})}function h(e){let{label:t,value:r}=e;return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-medium uppercase tracking-wider text-ink-4",children:t}),(0,s.jsx)("span",{className:"text-sm tabular-nums text-ink-1",children:r})]})}},8999:(e,t,r)=>{"use strict";r.d(t,{ResumeCommand:()=>a});var s=r(655),n=r(4519);function a(e){let{sessionId:t,projectPath:r,agentKind:a="claude-code"}=e,[c,i]=(0,n.useState)(null),o="codex"===a?"codex --resume ".concat(t):"cursor"===a?"cursor --resume ".concat(t):"claude --resume ".concat(t),l="cd ".concat(r);async function d(e,t){try{await navigator.clipboard.writeText(e),i(t),setTimeout(()=>i(null),1500)}catch(e){}}return(0,s.jsxs)("div",{className:"card px-4 py-3",children:[(0,s.jsx)("h3",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"codex"===a?"Resume in Codex":"cursor"===a?"Resume in Cursor":"Resume in Claude Code"}),(0,s.jsx)("p",{className:"mb-2 text-2xs text-ink-3",children:"Run from a terminal in your project directory:"}),(0,s.jsxs)("button",{type:"button",onClick:()=>d(l,"cd"),className:"mb-1.5 flex w-full items-center justify-between gap-2 rounded-md border border-surface-border bg-surface-0 px-2.5 py-1.5 text-left font-mono text-2xs text-ink-2 hover:border-surface-4 hover:text-ink-1",title:"Copy",children:[(0,s.jsx)("span",{className:"truncate",children:l}),(0,s.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:"cd"===c?"✓":"copy"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>d(o,"cmd"),className:"flex w-full items-center justify-between gap-2 rounded-md border border-surface-border bg-surface-0 px-2.5 py-1.5 text-left font-mono text-2xs text-ink-2 hover:border-surface-4 hover:text-ink-1",title:"Copy",children:[(0,s.jsx)("span",{className:"truncate",children:o}),(0,s.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:"cmd"===c?"✓":"copy"})]})]})}}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=5816)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6502],{1078:(e,t,r)=>{"use strict";r.d(t,{b:()=>a});var n=r(7069);let s=null;function a(){if(s)return s;let e="https://mrrghkzfjgfszricdchr.supabase.co",t="sb_publishable_EMTUmRBbNoB8fh4T05Wp5Q_cGJP430c";if(!e||!t)throw Error("Missing NEXT_PUBLIC_SUPABASE_URL or NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY");return s=(0,n.createBrowserClient)(e,t)}},3513:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3483,23)),Promise.resolve().then(r.bind(r,6503)),Promise.resolve().then(r.bind(r,1123)),Promise.resolve().then(r.bind(r,6597)),Promise.resolve().then(r.bind(r,4059))},6503:(e,t,r)=>{"use strict";r.d(t,{SignInCard:()=>o});var n=r(655),s=r(4519),a=r(1078),i=r(9244);function o(e){let{next:t,initialError:r}=e,[o,c]=(0,s.useState)(!1),[l,d]=(0,s.useState)(r);async function h(){c(!0),d(null);try{let e=(0,a.b)(),r=new URL("/auth/callback",window.location.origin);r.searchParams.set("next",t);let{error:n}=await e.auth.signInWithOAuth({provider:"github",options:{redirectTo:r.toString()}});if(n)throw n}catch(e){d(e instanceof Error?e.message:String(e)),c(!1)}}return(0,n.jsxs)("div",{className:"mx-auto flex max-w-md flex-col items-center px-6 pt-16 text-center sm:pt-24",children:[(0,n.jsx)("img",{src:"/logo.png",alt:"promptarc",width:48,height:48,className:"mb-4 rounded-lg"}),(0,n.jsx)("h1",{className:"text-3xl font-semibold tracking-tight text-ink-0 sm:text-4xl",children:"Sign in to promptarc"}),(0,n.jsx)("p",{className:"mt-3 max-w-sm text-sm text-ink-2",children:"promptarc uses GitHub for authentication. We only request your basic public profile and email — no repository access."}),(0,n.jsxs)("button",{type:"button",onClick:h,disabled:o,className:"mt-8 inline-flex items-center gap-2 rounded-md border border-accent/40 bg-accent px-5 py-2.5 text-sm font-semibold text-surface-0 shadow-[0_0_0_1px_rgba(129,140,248,0.4),0_8px_24px_-12px_rgba(129,140,248,0.6)] hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60",children:[(0,n.jsx)(i.Hk,{className:"h-4 w-4"}),o?"Redirecting…":"Continue with GitHub"]}),l?(0,n.jsx)("p",{className:"mt-6 max-w-sm rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-2xs text-danger",children:function(e){switch(e){case"no-code":return"OAuth provider returned no authorization code.";case"exchange-failed":return"Could not exchange the authorization code for a session.";default:return e}}(l)}):null,(0,n.jsxs)("p",{className:"mt-10 max-w-sm text-2xs leading-relaxed text-ink-3",children:["By continuing you agree that promptarc may store the shared session artifacts you create. Your local"," ",(0,n.jsx)("code",{className:"font-mono",children:"~/.claude/"}),","," ",(0,n.jsx)("code",{className:"font-mono",children:"~/.codex/"}),", and"," ",(0,n.jsx)("code",{className:"font-mono",children:"~/.cursor/"})," ","data never leaves your machine until you click Share."]}),(0,n.jsxs)("div",{className:"mt-4 flex items-center gap-3 text-2xs text-ink-4",children:[(0,n.jsx)("a",{href:"/privacy",className:"hover:text-ink-2 underline decoration-ink-4/30",children:"Privacy Policy"}),(0,n.jsx)("span",{children:"\xb7"}),(0,n.jsx)("a",{href:"/terms",className:"hover:text-ink-2 underline decoration-ink-4/30",children:"Terms of Service"})]})]})}},9244:(e,t,r)=>{"use strict";r.d(t,{Hk:()=>s});var n=r(655);function s(e){let{className:t="h-4 w-4"}=e;return(0,n.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8a8 8 0 005.47 7.59c.4.07.55-.17.55-.38v-1.32c-2.22.48-2.69-1.07-2.69-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.81.06 1.23.83 1.23.83.72 1.23 1.88.87 2.34.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.13 0 0 .67-.21 2.2.82a7.7 7.7 0 014 0c1.53-1.04 2.2-.82 2.2-.82.44 1.11.16 1.93.08 2.13.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0016 8c0-4.42-3.58-8-8-8z"})})}}},e=>{e.O(0,[2994,7200,896,1029,7575,4695,7358],()=>e(e.s=3513)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150,450,565,1426,1499,1889,2119,2467,2748,3282,3559,3784,3925,3944,3972,4725,4771,5015,5125,5413,5475,6202,6963,8011,8662,9492,9751,9878],{4549:()=>{}},_=>{_.O(0,[7575,4695,7358],()=>_(_.s=4549)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7066,9584,9877],{4462:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[7200,1029,7575,4695,7358],()=>e(e.s=4462)),_N_E=e.O()}]);
|