@ankhorage/atlas 0.19.0 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +4 -4
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/prerender-manifest.json +3 -3
- package/.next/server/app/_global-error/page/build-manifest.json +1 -1
- package/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page/build-manifest.json +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/auth/github/callback/route.js +2 -2
- package/.next/server/app/api/auth/github/callback/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/github/login/route.js +2 -2
- package/.next/server/app/api/auth/github/login/route.js.nft.json +1 -1
- package/.next/server/app/api/auth/github/logout/route.js +2 -2
- package/.next/server/app/api/auth/github/logout/route.js.nft.json +1 -1
- package/.next/server/app/api/dependency-graph/route.js.nft.json +1 -1
- package/.next/server/app/api/workspace/retry/route.js +3 -3
- package/.next/server/app/api/workspace/retry/route.js.nft.json +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/page/build-manifest.json +1 -1
- package/.next/server/app/page/server-reference-manifest.json +5 -5
- package/.next/server/app/page.js +3 -3
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/chunks/[externals]__16594cb._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__112op4w._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__112op4w._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1z32dpt._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1z32dpt._.js.map +1 -0
- package/.next/server/chunks/[turbopack]_runtime.js +0 -132
- package/.next/server/chunks/[turbopack]_runtime.js.map +4 -5
- package/.next/server/chunks/_0clm3_5._.js +3 -0
- package/.next/server/chunks/_0clm3_5._.js.map +1 -0
- package/.next/server/chunks/_12-q8rr._.js +3 -0
- package/.next/server/chunks/_12-q8rr._.js.map +1 -0
- package/.next/server/chunks/_1m2ujwq._.js +3 -0
- package/.next/server/chunks/_1m2ujwq._.js.map +1 -0
- package/.next/server/chunks/_1upfrua._.js +3 -0
- package/.next/server/chunks/_1upfrua._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0_6mxrx._.js +1 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1rpv02p._.js +3 -0
- package/.next/server/chunks/ssr/{[root-of-the-server]__1qwwuix._.js.map → [root-of-the-server]__1rpv02p._.js.map} +1 -1
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +0 -132
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +4 -5
- package/.next/server/chunks/ssr/{_0itx4l8._.js → _0lahb16._.js} +4 -4
- package/.next/server/chunks/ssr/_0lahb16._.js.map +1 -0
- package/.next/server/chunks/ssr/{_0jl3v86._.js → _14-yori._.js} +4 -21
- package/.next/server/chunks/ssr/_14-yori._.js.map +1 -0
- package/.next/server/middleware-build-manifest.js +4 -4
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +6 -6
- package/.next/static/chunks/turbopack-16xk2dc34e79s.js +1 -0
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/package.json +1 -3
- package/paradox/badges/npm.svg +3 -3
- package/paradox/diagrams/architecture-overview.mmd +9 -10
- package/paradox/diagrams/export-graph.mmd +2 -3
- package/paradox/diagrams/module-relationships.mmd +7 -7
- package/paradox/index.html +138 -177
- package/paradox/paradox.json +295 -519
- package/src/app/api/auth/github/callback/route.ts +5 -8
- package/src/app/api/auth/github/login/route.ts +6 -10
- package/src/app/api/auth/github/logout/route.ts +5 -2
- package/src/features/github-auth/adapters/inbound/next/createGitHubAuthCookieStores.ts +58 -0
- package/src/features/github-auth/adapters/inbound/next/createGitHubCallbackRoute.ts +9 -39
- package/src/features/github-auth/adapters/inbound/next/createGitHubLogoutRoute.ts +3 -9
- package/src/features/github-auth/adapters/inbound/next/githubAuthCookies.ts +102 -14
- package/src/features/github-auth/adapters/inbound/next/readGitHubAuthViewAsync.ts +7 -7
- package/src/features/github-auth/composition/createGitHubAuthAdapterAsync.ts +23 -48
- package/.next/server/chunks/[externals]__047_j9_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0kl17_6._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0kl17_6._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__0zc0_9_._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__0zc0_9_._.js.map +0 -1
- package/.next/server/chunks/[root-of-the-server]__1-qgr16._.js +0 -3
- package/.next/server/chunks/[root-of-the-server]__1-qgr16._.js.map +0 -1
- package/.next/server/chunks/_0-0lsnu._.js +0 -3
- package/.next/server/chunks/_0-0lsnu._.js.map +0 -1
- package/.next/server/chunks/_0fcwlfe._.js +0 -20
- package/.next/server/chunks/_0fcwlfe._.js.map +0 -1
- package/.next/server/chunks/_0y7dqpe._.js +0 -20
- package/.next/server/chunks/_0y7dqpe._.js.map +0 -1
- package/.next/server/chunks/ssr/[root-of-the-server]__1qwwuix._.js +0 -3
- package/.next/server/chunks/ssr/_0itx4l8._.js.map +0 -1
- package/.next/server/chunks/ssr/_0jl3v86._.js.map +0 -1
- package/.next/static/chunks/turbopack-07w1w1kq0_rvo.js +0 -1
- package/src/features/github-auth/adapters/outbound/postgres/createPostgresGitHubAuthPersistence.ts +0 -235
- package/src/features/github-auth/ports/githubAuthPersistence.ts +0 -18
- /package/.next/server/chunks/{[externals]__047_j9_._.js.map → [externals]__16594cb._.js.map} +0 -0
- /package/.next/static/{jK4WG3twdKtlEqfqG7nM8 → NwI5a9X0nGevMfhoRcBQT}/_buildManifest.js +0 -0
- /package/.next/static/{jK4WG3twdKtlEqfqG7nM8 → NwI5a9X0nGevMfhoRcBQT}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{jK4WG3twdKtlEqfqG7nM8 → NwI5a9X0nGevMfhoRcBQT}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/buffer-from/index.js","../../../node_modules/buffer-from/package.json","../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../node_modules/next/dist/client/lib/console.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js","../../../node_modules/next/dist/compiled/source-map/package.json","../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../node_modules/next/dist/compiled/ws/index.js","../../../node_modules/next/dist/compiled/ws/package.json","../../../node_modules/next/dist/lib/client-and-server-references.js","../../../node_modules/next/dist/lib/constants.js","../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../node_modules/next/dist/lib/interop-default.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/lib/picocolors.js","../../../node_modules/next/dist/lib/scheduler.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../node_modules/next/dist/server/lib/lru-cache.js","../../../node_modules/next/dist/server/lib/parse-stack.js","../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../node_modules/next/dist/server/lib/source-maps.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/server/load-manifest.external.js","../../../node_modules/next/dist/server/node-environment-baseline.js","../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../node_modules/next/dist/server/node-environment.js","../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../node_modules/next/dist/server/patch-error-inspect.js","../../../node_modules/next/dist/server/require-hook.js","../../../node_modules/next/dist/server/response-cache/types.js","../../../node_modules/next/dist/server/route-kind.js","../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/shared/lib/segment.js","../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/package.json","../../../node_modules/pg-cloudflare/dist/empty.js","../../../node_modules/pg-cloudflare/package.json","../../../node_modules/pg-connection-string/index.js","../../../node_modules/pg-connection-string/package.json","../../../node_modules/pg-int8/index.js","../../../node_modules/pg-int8/package.json","../../../node_modules/pg-pool/index.js","../../../node_modules/pg-pool/package.json","../../../node_modules/pg-protocol/dist/buffer-reader.js","../../../node_modules/pg-protocol/dist/buffer-writer.js","../../../node_modules/pg-protocol/dist/index.js","../../../node_modules/pg-protocol/dist/messages.js","../../../node_modules/pg-protocol/dist/parser.js","../../../node_modules/pg-protocol/dist/serializer.js","../../../node_modules/pg-protocol/package.json","../../../node_modules/pg-types/index.js","../../../node_modules/pg-types/lib/arrayParser.js","../../../node_modules/pg-types/lib/binaryParsers.js","../../../node_modules/pg-types/lib/builtins.js","../../../node_modules/pg-types/lib/textParsers.js","../../../node_modules/pg-types/package.json","../../../node_modules/pg/esm/index.mjs","../../../node_modules/pg/lib/client.js","../../../node_modules/pg/lib/connection-parameters.js","../../../node_modules/pg/lib/connection.js","../../../node_modules/pg/lib/crypto/cert-signatures.js","../../../node_modules/pg/lib/crypto/sasl.js","../../../node_modules/pg/lib/crypto/utils.js","../../../node_modules/pg/lib/defaults.js","../../../node_modules/pg/lib/index.js","../../../node_modules/pg/lib/native/client.js","../../../node_modules/pg/lib/native/index.js","../../../node_modules/pg/lib/native/query.js","../../../node_modules/pg/lib/query.js","../../../node_modules/pg/lib/result.js","../../../node_modules/pg/lib/stream.js","../../../node_modules/pg/lib/type-overrides.js","../../../node_modules/pg/lib/utils.js","../../../node_modules/pg/package.json","../../../node_modules/pgpass/lib/helper.js","../../../node_modules/pgpass/lib/index.js","../../../node_modules/pgpass/package.json","../../../node_modules/postgres-array/index.js","../../../node_modules/postgres-array/package.json","../../../node_modules/postgres-bytea/index.js","../../../node_modules/postgres-bytea/package.json","../../../node_modules/postgres-date/index.js","../../../node_modules/postgres-date/package.json","../../../node_modules/postgres-interval/index.js","../../../node_modules/postgres-interval/package.json","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.js","../../../node_modules/react/index.js","../../../node_modules/react/package.json","../../../node_modules/source-map-support/LICENSE.md","../../../node_modules/source-map-support/README.md","../../../node_modules/source-map-support/browser-source-map-support.js","../../../node_modules/source-map-support/node_modules/source-map/lib/array-set.js","../../../node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js","../../../node_modules/source-map-support/node_modules/source-map/lib/base64.js","../../../node_modules/source-map-support/node_modules/source-map/lib/binary-search.js","../../../node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js","../../../node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js","../../../node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js","../../../node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js","../../../node_modules/source-map-support/node_modules/source-map/lib/source-node.js","../../../node_modules/source-map-support/node_modules/source-map/lib/util.js","../../../node_modules/source-map-support/node_modules/source-map/package.json","../../../node_modules/source-map-support/node_modules/source-map/source-map.js","../../../node_modules/source-map-support/package.json","../../../node_modules/source-map-support/register-hook-require.js","../../../node_modules/source-map-support/register.js","../../../node_modules/source-map-support/source-map-support.js","../../../node_modules/source-map/package.json","../../../node_modules/split2/index.js","../../../node_modules/split2/package.json","../../../node_modules/typescript/lib/_tsc.js","../../../node_modules/typescript/lib/_tsserver.js","../../../node_modules/typescript/lib/_typingsInstaller.js","../../../node_modules/typescript/lib/cs/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/de/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/es/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/fr/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/it/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/ja/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/ko/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/pl/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/ru/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/tr/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/tsc.js","../../../node_modules/typescript/lib/tsserver.js","../../../node_modules/typescript/lib/tsserverlibrary.js","../../../node_modules/typescript/lib/typesMap.json","../../../node_modules/typescript/lib/typescript.js","../../../node_modules/typescript/lib/typingsInstaller.js","../../../node_modules/typescript/lib/watchGuard.js","../../../node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json","../../../node_modules/typescript/package.json","../../../node_modules/xtend/mutable.js","../../../node_modules/xtend/package.json","../../../src/features/dependency-analysis/adapters/outbound/dependency-graph/projectDependencyImportsAsync.ts","../../../src/features/project-source/adapters/outbound/archive/materializeSourceJarAsync.ts","../../node_modules/pg-587764f78a6c7a9c","../../node_modules/typescript-279735412610ef8d","../chunks/ssr/[root-of-the-server]__0_6mxrx._.js","../chunks/ssr/[root-of-the-server]__1o19g7g._.js","../chunks/ssr/[root-of-the-server]__1qwwuix._.js","../chunks/ssr/[root-of-the-server]__1tggw0t._.js","../chunks/ssr/[root-of-the-server]__1vloqx8._.js","../chunks/ssr/[turbopack]_runtime.js","../chunks/ssr/_0itx4l8._.js","../chunks/ssr/_0jl3v86._.js","../chunks/ssr/_0lr8sfy._.js","../chunks/ssr/_172v811._.js","../chunks/ssr/_1aykeug._.js","../chunks/ssr/node_modules_01xbj_9._.js","../chunks/ssr/node_modules_1ta2ymy._.js","../chunks/ssr/node_modules_@ankhorage_zora_web-dist_06djec1._.js","../chunks/ssr/node_modules_next_dist_0nkkbfv._.js","../chunks/ssr/node_modules_next_dist_10oqhbx._.js","../chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js","../chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js","../chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892.js","../chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js","../chunks/ssr/src_app_loading_tsx_0pv7mgz._.js","../chunks/ssr/src_features_workspace_adapters_inbound_react_WorkspaceView_tsx_1dmfs2e._.js","./page/react-loadable-manifest.json","./page_client-reference-manifest.js"],"fileHashes":["ef6ac6914a3f24c9f4a98105a3bdd310","bcdfbca94848d30153fa83f8421423d7","50bb01754878225cf6730e02b44f84d6","080b874f3b4f849e98b217d61814a981","f055944aad643f53a4bf3d9e6303dce4","a5446fb306fcfec27c39f81de38ec842","9c53694dd40423680deefb5a1e3c25af","57ca86e5858543e1466b92725355539a","11eb668649d2434d25d26977b8e01e49","02186196a2cc227a67f668f00873f72a","fa8a4dd27dcbde144881044b2fa74f64","92efc99184eb4dffe99e07a90f5ad81b","18929c800606d32dc25e59d7f3455fa5","cd28bbc5151decba058dfd44bd7f47ef","a8da0851d005c95af6d4ff8b8db146ce","07b88c21a35bcfb0be55b0ecfbc01397","61445cc4a73d56b154f397d2e4213b60","4e6491a35b1970e74a940d26e575216a","0bcd39f6f5be09dab16374e3bf84459e","ce87d6acf7ef1610862d34a9c59528ea","d1e9d6e75ad3a9d63cc0825ec4ebe282","b81183ad70cf2df4130a6f7853eff593","edcceea1e2a5c13a14d12f4d422f733a","92d7eec9f49250bf6325e1b4186fb521","0b3ab74e31e82ffa9b20013ed883782e","15ad04875f6d43fc8bd602b20d828566","5fe712e91d39531cd872b189115c7a25","c07db8edca1ca7e626b14dbf4e3584a8","0aa24beea9e1b8ae34954feb1be5caa6","f9295c2e844d919b0be75fffe2e10989","9b1c71085acfacbddbca5126bca3f550","6505c89743b18298e0e22489f1d956ed","8f2d8843ff7d322ecc237601ab58e1d7","d90d4f1de46d810d671d85f21ec5d352","2eecc48be406b9c64276e31215c29e95","981807b2548ffbff8d9ad94a758813fb","9f6a333435676ba7b0045e6b0d2d9b98","2701737ab664a8fe7700053638aa0db8","33916079c6a49d35edf38970b6afa990","046a57d6280182df9f32d77ba452677f","94e9332b8f4251c1b03791e57aad9399","6978bf3fb2c443a8c9022d43a243c56a","8fb4ea2a1e97dc7ad2cbbf5641b1aa23","7175e4648ef6975b79e76f0f46dc69df","7a4c4e16ecb22ffb0ba224fa37e94a70","848334e0b7acedfd5656296df4adae7c","0a201256d245b3a0e27ed288b6ba68ae","498fc15d07579c19b3cc959a96eb5bb8","40c6916156cc44db5f0c8e266c9f1e60","1acc3875adfbadf8dd6721e71e776ecd","1eb18df669f40e7a0c8e077b365c907d","08cab8a9c8062eac4f6b9cbcc303417a","bef9750470e394d3052dfe5a7847e9a0","4d1a01dfd6b6423b2d0ff0467f613bd8","7cfcc764f9b49f84e568c2a8b481ef89","341ade317df8ec02b7d7b686949f05a3","59f473418a3a0c96c8ec855aa72bd02a","d3c2a37fdf66b455a0ed47d33fc12229","215309237f9a05ec8f52edadcd0565bf","06301f971477597e382ec18e13f95e42","5f3e641690915ca863053b107ae0493a","44cca5b4413d63e3179289d31fe1bcf1","ce930365528e6b0f94d346e8a3a6c976","85ef440bb2c4d6dcc19f40e9d77059e3","b73d42aa8f40f578ac38efd8516ad8a3","fc4f7117734aa11e26028c3a1f0e9934","4b5216f48144eab06a89f40a112df0f9","7f7c41d2d2c4e4ea0359ce7e30c4676d","a52c1bfa60cdd122eb82001cf748b39b","4daf2c54f6e769ac3f1c55e2d2356e62","67530655ee6d2037c694d851f60a4d3a","72e15054e5bb83aa2714e9aa0f2a8aaa","72944fa2cce5836dad49dfd7147626d0","3c5c716d6aebf4093db91e57fe322e0c","64c0567172a45f553110cf14514d76dc","f5232a6a89b9b1646513f6f36cfd6edc","ed734e4322f6faf639acccc2130bd1f9","3a55a78645b57706246de6914d4ce134","438a096196cbf3f40712fc244347eced","59be47cbf4cb15affb56354159123835","0258cfa61471ed365f22acb22afd12db","28dfa4cf2be84ac882b092ae5afabf32","dbfa85b37328d28f5383d4a3929cece1","4c9c4bf389c624b596102b496c6b8c73","e124239b7fff31a73bfc3e95cfc593d3","38636bd694da4120897a2a695111039c","03f54ee64db45e6ac7025c881590f862","df6b0e8744489135e6c0c0520e07cca8","48538028ed97d91e767563f56035e684","217152373b3f900ae15ce0920bb06da9","ef229e92de99756605459456a30408f5","6dadc2917fc514e7e4c6f4cabe7d69a6","a81a01b4510a203a8811e202d3537fe8","37ac4cbd6b18d52a47105218c3573c36","5ab4d38c634c37598fc59a79eeef302f","e2a4479a35cb46058fa5fa4148e39287","a5ceecfe744045263b3b4c06e4d48cce","3a4566f4bd473c7fdfbb61f33b3fc0bb","44eca32d0e78189af01db90f90423c3f","5654b3d7d7805129b98db879f3bbd2af","995585143a6aa4597bb37cc29f6b6a3b","1f0dc12ac30b54f9bce844f5ae8b0906","c5888b6071631a3067ee4ac41fbdb167","22f2a2ad0edce5f59635f5ff2103737c","9c695460b513c801721475c2933ff8cc","2e27f2fa52041541cbb3652a7b01c358","deef54fb4c402325da2038fd78856071","0399a90269a2732ffe275bb1c1dd4cdc","b85b1ae0931ff943c3ce90f3556aed6d","1ada925403e024b2696c5008d074032b","8bdef847ed46f3e06e708f5615058099","b2b087478aa863d35fc891bae4e7670b","cadec7ea862e983d41395c5078a3c77b","f49aa42851b8c64abd7d3c6266b5740e","1a9abc26bb667781ffcab22186d4dc71","53511d070615979c2c7c4665435fab18","beb970505cf67c358f0fc25d556aaa3b","fd147a0cc115a04857b458388b8af2e3","2befa262120eb08bda22cc4950ed425d","8584d3dc6c5a3a16a1e07eb28cf72856","f5146d48a4053e400f3bbd165bffff5a","86efefb541e2ec37ef89545a0b1b1a5a","6c8e737bb92a1fdc7866e1b87e05f13e","7ecaa5905bf89e0605050a80661d9746","054a56cf4743b88589b4787a18a5af59","8537615c5c175b5fb5bb463fba83edea","000c58bffff2b680ba79ea1c4c84df00","bffcc05eadd6be2e156ab0f28373bb0c","6af7cb02444956980c2a1823bcf8e1b1","df80673d81e91bde2a2cdcc2f2a71904","865e3640e3a2f1ad3b62abbfb0c5e6f4","01ab5c58501ebb12178ff7ccbc1fd0f3","66fe316a8dc752db05e0a5f2e94bb6a1","6d92d8ee4d71f7048ba632a5524a4251","f4a4fa8df6fa5ce0886e61462647f168","cf8c2762e18207fc9ce976a12f0eef72","33ee90e161ca3cb21c0fcee4b716d603","872ae4d819d1acc0ac09cabea12647de","4ae3afb0862b00ac22b85adc7ff0c5dc","96bf9a4cd2a56fdd3260adf77609559b","f0840881375db378680a96cb580311f1","e23fe18cbf50e30c41619b91af0ad839","6d8261313d70557c3665fea23df8c6ff","778c73342d2d94d312fcb3e7b8eea588","d9977bab5ed39d09c65b2aefa9f9360b","a8a99e4f7f5413459bc00f7aaa5d58c8","bd84208624245cf331235d1a0a153bb1","92aa814d5992ee39f4b9e3921e07ec78","3f853b263320192cc223258834700a32","3999f24527a18df1368738f07cd3802b","ebfca12719e4f7415d2012751f3e6fac","d332cf61cc6a9da9006808f653bd62a4","9fb287e42be0dbc39eea5c9c0a72a551","6265cf9f0c0612d6b757240db2412997","b60aa4cc4ce377957d4ef88d76dafa46","97bb859a68bb60823eb5cb110c82342e","e01e8f2f0d88d65612a6c716b861ee81","9deeaeb07e1334d14f39cda7a0ffad21","81e095fa1329b4e2503ce20b7f0b4289","dd91f547da1f4b0141e148169861316f","6e971bb6d681ff5f60b290068d0c3f8a","bd95af69943c6b10d72a1520da203070","4a2381b6235545920e394ac4d5f058ce","08bc2359960beb23ea06b975e914357f","757511f73085f73a0e94adf9383c189e","b5f2c91d23c8d2f41c9f57eababdfc08","4ee1f5ce598c324ea7ff44eb86f86188","a15fd2a199bd2ebc2c49a2ac8d7c0802","03df8436dc4fb4f9a7f1bc530c018f41","e4158eee14a83d2590ae64b6288de4da","23c91eef54c0b8286c55cda17a35e33f","a01fd23d48b34d5498f53cccfd5cc33c","ad462d8b68d1344f0d9b21207f91f70c","3054daed27702773fbd39481765b5714","a40ef73acd36df526f6f32fe9fb34692","35b42449a8e2b9b994158e6f4f456ff9","462ae64c48e37cac8caba97c2a663755","8e3699f4a36fa0e046c1cc5205e7cc88","97018eba558b1ab88585b62cf039d229","2ec2fedac2496e9327bdbc4a1fa542ab","b17d532bb40e2992cd167f2031e2b0d1","375e74cf864b2f05c42521ff4c2d5561","e0091bc2279a04c1f2374a51cd35813b","4d459059125843e25fd402cef9a7f826","3a211c7011771e78f244deec134aee1b","be348a68938b44c4dd936815eb5f5796","093c239d5809caff69cb4628e0c69a14","05256e9c32c944c7f776b516e5fc2c97","109c38e5732c5b03130445159b06cdc8","368eb9ea450b03cc4efc241b3c7db189","774584f601fc191f350276c8aefed409","8c56fb4d66ad41d844d7c3cf7bf0d2d7","b855abdb7e6397e310134a51c3ad1a1e","9682438bb347b35688ee4fb4d600ff21","c0ecdd4c5e647f3dc8766ccdaf397c68","eb6dabe08ffa2511cb3723440bb6034f","b0fc52e49949baf257fef7fde7a43b8b","9a9cd5712f4a97fa4071bef1d55aac3a","85771a0a264067b02d561456068efb79","dceab4b87bb0290429539df272aa03a7","921e167418f6615c735c8d3cfccd4030","a13bfb287a9b2553bda29e2171ef7a78","880cb274ac0d4a1dc8c1648c6b27b222","c0c5646f0dbf5db8d2872596c9de8a86","297dbbef20ee2fd58ec67f86e0790cc2","bf03467d7a28d57122e3292d5d95f134","c2b7f0b3bba6ad3ad5d1e349e4758617","a15f4d4ce6279f3f5f72ed443e481ddb","dca3cd621678a100f03e8fb7792c67bb","8330d83fd22599d93c8552edb6639829","fea1b21f96eed6887a44c9a47d15c1f8","bc99dae521082793ab57ffe142b5c3ce","121dc1fef3b304d9790bfc55de28ba6d","40c33ed53236c46a2456c41163a49a63","d4b1627e466fc7e8e45baf53de02ec44","af50971511a53e3911ff625196ef7c76","67b520968707e2a10c712afd4cd47139","e1d3b0a19862002f4005384bd8ad999f","80fcb4e0a4b2cc234b791fad10817bee","4ed9c1b8939f532ac6dde11a68571b39","777f0a15db23b06a057627b8dd11a904","834746e9a504a6f58495192a3a9ec0f3","0d7163fa3146cb8476e0de58aeee3b14","28a0d5bc44bb55b75e5a0849543e3838","1f41606d0a39875848cc5d554b22292e","835fcec210dffcbef60c255035ee739e","86bc8d4515b152ee540cf7d1e1f63323","d4bdd12b504136bd23c3a4652a8630ae","9545537ffa2ff5a2017786f6de00bfdc","5b4e247cb9178e657607dd0cc992508b","bfe80d2af465b5e5c03f26d5ab6e996b","c8782a613f579f085ea13d4d80e80b86","f72b6e4ab06ddd4f1d11cf7e15e754f8","7b9cdc171d5254d6cfd481a1d688d849","cedd0e303a2a58a21e0ed99701073ecb","117e7c79a5d6f5e8ddeae9efc0e1823c","66a0bc6ea016d75926c83b6cae75b0c9","16e46fdae0f9e53f20442b629714017f","4ef1a3576b76735811910c16c9891750"],"entryHash":"395e3c9008eb1dba2d0f4c78cabd2dd4"}
|
|
1
|
+
{"version":1,"files":["../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/buffer-from/index.js","../../../node_modules/buffer-from/package.json","../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../node_modules/next/dist/client/lib/console.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/hash.js/sha256/256.js","../../../node_modules/next/dist/compiled/hash.js/sha256/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js","../../../node_modules/next/dist/compiled/source-map/package.json","../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../node_modules/next/dist/compiled/ws/index.js","../../../node_modules/next/dist/compiled/ws/package.json","../../../node_modules/next/dist/lib/client-and-server-references.js","../../../node_modules/next/dist/lib/constants.js","../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../node_modules/next/dist/lib/interop-default.js","../../../node_modules/next/dist/lib/is-error.js","../../../node_modules/next/dist/lib/picocolors.js","../../../node_modules/next/dist/lib/scheduler.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../node_modules/next/dist/server/lib/lru-cache.js","../../../node_modules/next/dist/server/lib/parse-stack.js","../../../node_modules/next/dist/server/lib/route-cache-key.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../node_modules/next/dist/server/lib/source-maps.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/server/load-manifest.external.js","../../../node_modules/next/dist/server/node-environment-baseline.js","../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../node_modules/next/dist/server/node-environment.js","../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../../../node_modules/next/dist/server/normalizers/normalizers.js","../../../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../../../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../../../node_modules/next/dist/server/patch-error-inspect.js","../../../node_modules/next/dist/server/require-hook.js","../../../node_modules/next/dist/server/response-cache/types.js","../../../node_modules/next/dist/server/route-kind.js","../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/shared/lib/segment.js","../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/package.json","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.js","../../../node_modules/react/index.js","../../../node_modules/react/package.json","../../../node_modules/source-map-support/LICENSE.md","../../../node_modules/source-map-support/README.md","../../../node_modules/source-map-support/browser-source-map-support.js","../../../node_modules/source-map-support/node_modules/source-map/lib/array-set.js","../../../node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js","../../../node_modules/source-map-support/node_modules/source-map/lib/base64.js","../../../node_modules/source-map-support/node_modules/source-map/lib/binary-search.js","../../../node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js","../../../node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js","../../../node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js","../../../node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js","../../../node_modules/source-map-support/node_modules/source-map/lib/source-node.js","../../../node_modules/source-map-support/node_modules/source-map/lib/util.js","../../../node_modules/source-map-support/node_modules/source-map/package.json","../../../node_modules/source-map-support/node_modules/source-map/source-map.js","../../../node_modules/source-map-support/package.json","../../../node_modules/source-map-support/register-hook-require.js","../../../node_modules/source-map-support/register.js","../../../node_modules/source-map-support/source-map-support.js","../../../node_modules/source-map/package.json","../../../node_modules/typescript/lib/_tsc.js","../../../node_modules/typescript/lib/_tsserver.js","../../../node_modules/typescript/lib/_typingsInstaller.js","../../../node_modules/typescript/lib/cs/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/de/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/es/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/fr/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/it/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/ja/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/ko/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/pl/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/ru/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/tr/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/tsc.js","../../../node_modules/typescript/lib/tsserver.js","../../../node_modules/typescript/lib/tsserverlibrary.js","../../../node_modules/typescript/lib/typesMap.json","../../../node_modules/typescript/lib/typescript.js","../../../node_modules/typescript/lib/typingsInstaller.js","../../../node_modules/typescript/lib/watchGuard.js","../../../node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json","../../../node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json","../../../node_modules/typescript/package.json","../../../src/features/dependency-analysis/adapters/outbound/dependency-graph/projectDependencyImportsAsync.ts","../../../src/features/project-source/adapters/outbound/archive/materializeSourceJarAsync.ts","../../node_modules/typescript-279735412610ef8d","../chunks/ssr/[root-of-the-server]__0_6mxrx._.js","../chunks/ssr/[root-of-the-server]__1o19g7g._.js","../chunks/ssr/[root-of-the-server]__1rpv02p._.js","../chunks/ssr/[root-of-the-server]__1tggw0t._.js","../chunks/ssr/[root-of-the-server]__1vloqx8._.js","../chunks/ssr/[turbopack]_runtime.js","../chunks/ssr/_0lahb16._.js","../chunks/ssr/_0lr8sfy._.js","../chunks/ssr/_14-yori._.js","../chunks/ssr/_172v811._.js","../chunks/ssr/_1aykeug._.js","../chunks/ssr/node_modules_01xbj_9._.js","../chunks/ssr/node_modules_1ta2ymy._.js","../chunks/ssr/node_modules_@ankhorage_zora_web-dist_06djec1._.js","../chunks/ssr/node_modules_next_dist_0nkkbfv._.js","../chunks/ssr/node_modules_next_dist_10oqhbx._.js","../chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js","../chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js","../chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892.js","../chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js","../chunks/ssr/src_app_loading_tsx_0pv7mgz._.js","../chunks/ssr/src_features_workspace_adapters_inbound_react_WorkspaceView_tsx_1dmfs2e._.js","./page/react-loadable-manifest.json","./page_client-reference-manifest.js"],"fileHashes":["ef6ac6914a3f24c9f4a98105a3bdd310","bcdfbca94848d30153fa83f8421423d7","50bb01754878225cf6730e02b44f84d6","080b874f3b4f849e98b217d61814a981","f055944aad643f53a4bf3d9e6303dce4","a5446fb306fcfec27c39f81de38ec842","9c53694dd40423680deefb5a1e3c25af","57ca86e5858543e1466b92725355539a","11eb668649d2434d25d26977b8e01e49","02186196a2cc227a67f668f00873f72a","fa8a4dd27dcbde144881044b2fa74f64","92efc99184eb4dffe99e07a90f5ad81b","18929c800606d32dc25e59d7f3455fa5","cd28bbc5151decba058dfd44bd7f47ef","a8da0851d005c95af6d4ff8b8db146ce","07b88c21a35bcfb0be55b0ecfbc01397","61445cc4a73d56b154f397d2e4213b60","4e6491a35b1970e74a940d26e575216a","0bcd39f6f5be09dab16374e3bf84459e","ce87d6acf7ef1610862d34a9c59528ea","d1e9d6e75ad3a9d63cc0825ec4ebe282","b81183ad70cf2df4130a6f7853eff593","edcceea1e2a5c13a14d12f4d422f733a","92d7eec9f49250bf6325e1b4186fb521","0b3ab74e31e82ffa9b20013ed883782e","15ad04875f6d43fc8bd602b20d828566","5fe712e91d39531cd872b189115c7a25","c07db8edca1ca7e626b14dbf4e3584a8","0aa24beea9e1b8ae34954feb1be5caa6","f9295c2e844d919b0be75fffe2e10989","9b1c71085acfacbddbca5126bca3f550","6505c89743b18298e0e22489f1d956ed","8f2d8843ff7d322ecc237601ab58e1d7","d90d4f1de46d810d671d85f21ec5d352","2eecc48be406b9c64276e31215c29e95","981807b2548ffbff8d9ad94a758813fb","9f6a333435676ba7b0045e6b0d2d9b98","2701737ab664a8fe7700053638aa0db8","33916079c6a49d35edf38970b6afa990","046a57d6280182df9f32d77ba452677f","94e9332b8f4251c1b03791e57aad9399","6978bf3fb2c443a8c9022d43a243c56a","8fb4ea2a1e97dc7ad2cbbf5641b1aa23","7175e4648ef6975b79e76f0f46dc69df","7a4c4e16ecb22ffb0ba224fa37e94a70","848334e0b7acedfd5656296df4adae7c","0a201256d245b3a0e27ed288b6ba68ae","498fc15d07579c19b3cc959a96eb5bb8","40c6916156cc44db5f0c8e266c9f1e60","1acc3875adfbadf8dd6721e71e776ecd","1eb18df669f40e7a0c8e077b365c907d","08cab8a9c8062eac4f6b9cbcc303417a","bef9750470e394d3052dfe5a7847e9a0","4d1a01dfd6b6423b2d0ff0467f613bd8","7cfcc764f9b49f84e568c2a8b481ef89","341ade317df8ec02b7d7b686949f05a3","59f473418a3a0c96c8ec855aa72bd02a","d3c2a37fdf66b455a0ed47d33fc12229","215309237f9a05ec8f52edadcd0565bf","06301f971477597e382ec18e13f95e42","5f3e641690915ca863053b107ae0493a","44cca5b4413d63e3179289d31fe1bcf1","ce930365528e6b0f94d346e8a3a6c976","85ef440bb2c4d6dcc19f40e9d77059e3","b73d42aa8f40f578ac38efd8516ad8a3","fc4f7117734aa11e26028c3a1f0e9934","4b5216f48144eab06a89f40a112df0f9","7f7c41d2d2c4e4ea0359ce7e30c4676d","a52c1bfa60cdd122eb82001cf748b39b","4daf2c54f6e769ac3f1c55e2d2356e62","67530655ee6d2037c694d851f60a4d3a","72e15054e5bb83aa2714e9aa0f2a8aaa","72944fa2cce5836dad49dfd7147626d0","3c5c716d6aebf4093db91e57fe322e0c","64c0567172a45f553110cf14514d76dc","f5232a6a89b9b1646513f6f36cfd6edc","ed734e4322f6faf639acccc2130bd1f9","3a55a78645b57706246de6914d4ce134","438a096196cbf3f40712fc244347eced","59be47cbf4cb15affb56354159123835","0258cfa61471ed365f22acb22afd12db","28dfa4cf2be84ac882b092ae5afabf32","dbfa85b37328d28f5383d4a3929cece1","4c9c4bf389c624b596102b496c6b8c73","e124239b7fff31a73bfc3e95cfc593d3","38636bd694da4120897a2a695111039c","03f54ee64db45e6ac7025c881590f862","df6b0e8744489135e6c0c0520e07cca8","48538028ed97d91e767563f56035e684","217152373b3f900ae15ce0920bb06da9","ef229e92de99756605459456a30408f5","6dadc2917fc514e7e4c6f4cabe7d69a6","a81a01b4510a203a8811e202d3537fe8","37ac4cbd6b18d52a47105218c3573c36","5ab4d38c634c37598fc59a79eeef302f","e2a4479a35cb46058fa5fa4148e39287","a5ceecfe744045263b3b4c06e4d48cce","3a4566f4bd473c7fdfbb61f33b3fc0bb","44eca32d0e78189af01db90f90423c3f","5654b3d7d7805129b98db879f3bbd2af","995585143a6aa4597bb37cc29f6b6a3b","1f0dc12ac30b54f9bce844f5ae8b0906","c5888b6071631a3067ee4ac41fbdb167","22f2a2ad0edce5f59635f5ff2103737c","9c695460b513c801721475c2933ff8cc","2e27f2fa52041541cbb3652a7b01c358","deef54fb4c402325da2038fd78856071","0399a90269a2732ffe275bb1c1dd4cdc","b85b1ae0931ff943c3ce90f3556aed6d","dd91f547da1f4b0141e148169861316f","6e971bb6d681ff5f60b290068d0c3f8a","bd95af69943c6b10d72a1520da203070","4a2381b6235545920e394ac4d5f058ce","08bc2359960beb23ea06b975e914357f","757511f73085f73a0e94adf9383c189e","b5f2c91d23c8d2f41c9f57eababdfc08","4ee1f5ce598c324ea7ff44eb86f86188","a15fd2a199bd2ebc2c49a2ac8d7c0802","03df8436dc4fb4f9a7f1bc530c018f41","e4158eee14a83d2590ae64b6288de4da","23c91eef54c0b8286c55cda17a35e33f","a01fd23d48b34d5498f53cccfd5cc33c","ad462d8b68d1344f0d9b21207f91f70c","3054daed27702773fbd39481765b5714","a40ef73acd36df526f6f32fe9fb34692","35b42449a8e2b9b994158e6f4f456ff9","462ae64c48e37cac8caba97c2a663755","8e3699f4a36fa0e046c1cc5205e7cc88","97018eba558b1ab88585b62cf039d229","2ec2fedac2496e9327bdbc4a1fa542ab","b17d532bb40e2992cd167f2031e2b0d1","375e74cf864b2f05c42521ff4c2d5561","e0091bc2279a04c1f2374a51cd35813b","be348a68938b44c4dd936815eb5f5796","093c239d5809caff69cb4628e0c69a14","05256e9c32c944c7f776b516e5fc2c97","109c38e5732c5b03130445159b06cdc8","368eb9ea450b03cc4efc241b3c7db189","774584f601fc191f350276c8aefed409","8c56fb4d66ad41d844d7c3cf7bf0d2d7","b855abdb7e6397e310134a51c3ad1a1e","9682438bb347b35688ee4fb4d600ff21","c0ecdd4c5e647f3dc8766ccdaf397c68","eb6dabe08ffa2511cb3723440bb6034f","b0fc52e49949baf257fef7fde7a43b8b","9a9cd5712f4a97fa4071bef1d55aac3a","85771a0a264067b02d561456068efb79","dceab4b87bb0290429539df272aa03a7","921e167418f6615c735c8d3cfccd4030","a13bfb287a9b2553bda29e2171ef7a78","880cb274ac0d4a1dc8c1648c6b27b222","c0c5646f0dbf5db8d2872596c9de8a86","297dbbef20ee2fd58ec67f86e0790cc2","bf03467d7a28d57122e3292d5d95f134","c2b7f0b3bba6ad3ad5d1e349e4758617","a15f4d4ce6279f3f5f72ed443e481ddb","dca3cd621678a100f03e8fb7792c67bb","bc99dae521082793ab57ffe142b5c3ce","121dc1fef3b304d9790bfc55de28ba6d","d4b1627e466fc7e8e45baf53de02ec44","7ec8dc74a1b4f3e0c9c52ce8fb1f7125","67b520968707e2a10c712afd4cd47139","d068d31e6b19185ab32b90d04f21b07f","80fcb4e0a4b2cc234b791fad10817bee","4ed9c1b8939f532ac6dde11a68571b39","0b2250eb6c263d49271dd230dd6cb198","f103ca264f132d3b39832fe795fb877b","28a0d5bc44bb55b75e5a0849543e3838","d230847bb3492b39fb4f313940c173b8","1f41606d0a39875848cc5d554b22292e","835fcec210dffcbef60c255035ee739e","86bc8d4515b152ee540cf7d1e1f63323","d4bdd12b504136bd23c3a4652a8630ae","9545537ffa2ff5a2017786f6de00bfdc","5b4e247cb9178e657607dd0cc992508b","bfe80d2af465b5e5c03f26d5ab6e996b","c8782a613f579f085ea13d4d80e80b86","f72b6e4ab06ddd4f1d11cf7e15e754f8","7b9cdc171d5254d6cfd481a1d688d849","cedd0e303a2a58a21e0ed99701073ecb","117e7c79a5d6f5e8ddeae9efc0e1823c","66a0bc6ea016d75926c83b6cae75b0c9","16e46fdae0f9e53f20442b629714017f","4ef1a3576b76735811910c16c9891750"],"entryHash":"f138fb5af16044ba347923994280c0b5"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[874,(e,r,s)=>{r.exports=e.x("buffer",()=>require("buffer"))},27699,(e,r,s)=>{r.exports=e.x("events",()=>require("events"))},22734,(e,r,s)=>{r.exports=e.x("fs",()=>require("fs"))},2157,(e,r,s)=>{r.exports=e.x("node:fs",()=>require("node:fs"))},12714,(e,r,s)=>{r.exports=e.x("node:fs/promises",()=>require("node:fs/promises"))},60526,(e,r,s)=>{r.exports=e.x("node:os",()=>require("node:os"))},50227,(e,r,s)=>{r.exports=e.x("node:path",()=>require("node:path"))},88646,(e,r,s)=>{r.exports=e.x("node:stream/promises",()=>require("node:stream/promises"))},5365,(e,r,s)=>{r.exports=e.x("process",()=>require("process"))},88947,(e,r,s)=>{r.exports=e.x("stream",()=>require("stream"))},8314,(e,r,s)=>{r.exports=e.x("typescript-279735412610ef8d",()=>require("typescript-279735412610ef8d"))},24361,(e,r,s)=>{r.exports=e.x("util",()=>require("util"))},6461,(e,r,s)=>{r.exports=e.x("zlib",()=>require("zlib"))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Bexternals%5D__16594cb._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(e,t,r)=>{t.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},6941,24013,e=>{"use strict";function t(e){return{exchangeCodeAsync:(t,i)=>r(e,{code:t,redirect_uri:i}),refreshTokenAsync:(t,i)=>r(e,{grant_type:"refresh_token",refresh_token:t},i)}}async function r(e,t,r){let n=new URLSearchParams({client_id:e.clientId,client_secret:e.clientSecret,...t}),o=await (e.fetcher??fetch)("https://github.com/login/oauth/access_token",{method:"POST",redirect:"error",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:n,signal:AbortSignal.timeout(e.requestTimeoutMs??15e3)});if(!o.ok)throw Error("GitHub token exchange failed.");let s=function(e){var t,r,i,n;if(!a(e)||!("string"==typeof(t=e).access_token&&t.access_token.length>0)||void 0!==(r=e).token_type&&("string"!=typeof r.token_type||"bearer"!==r.token_type.toLowerCase())||!(void 0===(i=e).refresh_token||"string"==typeof i.refresh_token&&i.refresh_token.length>0)||!(void 0===(n=e).expires_in||"number"==typeof n.expires_in&&Number.isSafeInteger(n.expires_in)&&n.expires_in>0))throw Error("GitHub returned an invalid token response.");return{accessToken:e.access_token,..."string"==typeof e.refresh_token?{refreshToken:e.refresh_token}:{},..."number"==typeof e.expires_in?{expiresIn:e.expires_in}:{}}}(await o.json()),u=await i(e,s.accessToken);if(void 0!==r&&u.id!==r)throw Error("GitHub identity changed during token refresh.");return{accessToken:s.accessToken,...void 0===s.refreshToken?{}:{refreshToken:s.refreshToken},...void 0===s.expiresIn?{}:{expiresAt:(e.now??Date.now)()+1e3*s.expiresIn},tokenType:"bearer",user:u}}async function i(e,t){var r;let i=await (e.fetcher??fetch)("https://api.github.com/user",{method:"GET",redirect:"error",headers:{Accept:"application/vnd.github+json",Authorization:"Bearer "+t,"X-GitHub-Api-Version":"2022-11-28"},signal:AbortSignal.timeout(e.requestTimeoutMs??15e3)});if(!i.ok)throw Error("GitHub identity verification failed.");let n=await i.json();if(!(a(r=n)&&"number"==typeof r.id&&Number.isSafeInteger(r.id)&&r.id>0&&"string"==typeof r.login&&""!==r.login.trim()))throw Error("GitHub returned an invalid user identity.");return{id:String(n.id),username:n.login,..."string"==typeof n.name&&""!==n.name.trim()?{displayName:n.name}:{},..."string"==typeof n.email&&""!==n.email.trim()?{email:n.email}:{},..."string"==typeof n.avatar_url&&n.avatar_url.startsWith("https://")?{avatarUrl:n.avatar_url}:{}}}function a(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}async function n(e,t){if("github"!==t.provider)return l("provider_disabled","GitHub is the only supported provider.");if(!e.redirectUris.includes(t.redirectUri))return l("invalid_redirect_uri","The callback URL is not allowlisted.");if(!function(e,t){let r="oauth-app"===e.authorizationMode?["read:user","repo"]:["offline_access"];if(void 0===t)return"github-app"===e.authorizationMode;let i=new Set(t);return i.size===t.length&&t.every(e=>r.includes(e))&&("github-app"===e.authorizationMode||i.has("read:user"))}(e,t.scopes)||void 0!==t.queryParams&&Object.keys(t.queryParams).length>0)return l("authorization_failed","Unsupported GitHub App authorization parameters.");let r={attemptId:o(e.createAttemptId),state:o(e.createState),redirectUri:t.redirectUri,expiresAt:(e.now??Date.now)()+(e.authorizationAttemptTtlMs??6e5)};try{var i,a,n;let o;return await e.authorizationAttempts.purgeExpired((e.now??Date.now)()),await e.authorizationAttempts.create(r),{ok:!0,data:{attemptId:r.attemptId,provider:"github",redirectUri:r.redirectUri,authorizationUrl:(i=e.clientId,a=r,n=t.scopes,(o=new URL("https://github.com/login/oauth/authorize")).searchParams.set("client_id",i),o.searchParams.set("redirect_uri",a.redirectUri),o.searchParams.set("state",a.state),n&&n.length>0&&o.searchParams.set("scope",n.join(" ")),o.toString())}}}catch{return l("authorization_failed","Unable to start GitHub authorization.")}}function o(e){return e?.()??crypto.randomUUID()}async function s(e,r){let i=await u(e,r.attemptId);if(null===i)return c("authorization_attempt_not_found","callback");if("cancelled"===r.response.type)return{ok:!1,status:"cancelled",provider:"github",reason:r.response.reason};if("error"===r.response.type)return c("provider_error","transport");let a=function(e,t){try{let r=new URL(e),i=new URL(t);if(r.origin!==i.origin||r.pathname!==i.pathname||""!==r.hash||1!==r.searchParams.getAll("state").length||r.searchParams.getAll("code").length>1||r.searchParams.getAll("error").length>1)return null;let a=r.searchParams.get("state");if(!a)return null;let n=r.searchParams.get("code"),o=r.searchParams.get("error");return{state:a,...n?{code:n}:{},...o?{error:o}:{}}}catch{return null}}(r.response.url,i.redirectUri);if(null===a)return c("invalid_callback","callback");if(a.state!==i.state)return c("state_mismatch","callback");if("access_denied"===a.error)return{ok:!1,status:"cancelled",provider:"github",reason:"provider_denied"};if(void 0!==a.error)return c("provider_error","callback");if(void 0===a.code)return c("invalid_callback","callback");try{let r=t(e),n=await r.exchangeCodeAsync(a.code,i.redirectUri);try{await e.sessions.save(n)}catch{return c("session_persistence_failed","session")}return{ok:!0,status:"authenticated",provider:"github",session:n}}catch{return c("code_exchange_failed","exchange")}}async function u(e,t){try{return await e.authorizationAttempts.consume(t,(e.now??Date.now)())}catch{return null}}function c(e,t){return{ok:!1,status:"error",error:{code:e,stage:t,provider:"github",recoverable:!1,message:"GitHub authorization failed."}}}function l(e,t){return{ok:!1,error:{code:e,message:t,stage:"start",provider:"github",recoverable:!1}}}async function p(e,t){if(t?.allDevices)return{ok:!1,error:{code:"unsupported_operation",message:"Global sign-out is not supported."}};try{return await e.sessions.clear(),{ok:!0}}catch{return f("Unable to end the local session.")}}async function d(e){try{let t=await e.sessions.get(),r=t?.expiresAt!==void 0&&t.expiresAt<=(e.now??Date.now)();return{ok:!0,data:r?null:t}}catch{return f("Unable to read the local session.")}}async function h(e,t){try{let r=await e.sessions.get();if(null===r)return{ok:!0,data:null};if(!r.refreshToken)return void 0===r.expiresAt||r.expiresAt>(e.now??Date.now)()?{ok:!0,data:r}:f("GitHub authorization has expired.");let i=await t.refreshTokenAsync(r.refreshToken,r.user.id);return await e.sessions.save(i),{ok:!0,data:i}}catch{return f("GitHub session refresh failed.")}}function f(e){return{ok:!1,error:{code:"invalid_session",message:e}}}function m(e){return void 0===e||Number.isSafeInteger(e)&&e>0}function g(e){try{let t=new URL(e);return"https:"===t.protocol&&!t.username&&!t.password&&!t.search&&!t.hash&&t.toString()===e}catch{return!1}}function b(){return{ok:!1,error:{code:"unsupported_operation",message:"GitHub uses browser authorization."}}}e.s(["createGitHubAuthAdapter",0,function(e){let r;var i=e;if(!i.clientId.trim()||!i.clientSecret.trim()||0===i.redirectUris.length||!m(i.authorizationAttemptTtlMs)||!m(i.requestTimeoutMs))throw Error("Invalid GitHub App authorization configuration.");if(!i.redirectUris.every(g))throw Error("GitHub OAuth callback URLs must be explicitly allowlisted HTTPS URLs.");return{...(r=t(e),{signOut:t=>p(e,t),getSession:()=>d(e),refreshSession:()=>h(e,r)}),startAuthorization:t=>n(e,t),completeAuthorization:t=>s(e,t),signIn:()=>Promise.resolve(b()),signUp:()=>Promise.resolve(b()),requestPasswordReset:()=>Promise.resolve(b()),verifyOtp:()=>Promise.resolve(b())}}],6941),e.s(["createGitHubAuthCookieStores",0,function(e){let{authorizationAttempt:t,session:r}=e;return{authorizationAttempts:{create:e=>{if(void 0!==t)throw Error("GitHub authorization attempt exists.");return t=e,Promise.resolve()},consume:(e,r)=>{let i=t;return t=void 0,Promise.resolve(i?.attemptId===e&&i.expiresAt>r?i:null)},purgeExpired:e=>(void 0!==t&&t.expiresAt<=e&&(t=void 0),Promise.resolve())},readAuthorizationAttempt:()=>t,sessions:{clear:()=>(r=void 0,Promise.resolve()),get:()=>Promise.resolve(r??null),save:e=>(r=e,Promise.resolve())}}}],24013)},57345,e=>{"use strict";var t=e.i(66680);let r="__Host-atlas-github-attempt",i="__Host-atlas-github-session";function a(){return{httpOnly:!0,path:"/",sameSite:"lax",secure:!0}}function n(e,r){let i=(0,t.randomBytes)(12),a=(0,t.createCipheriv)("aes-256-gcm",s(),i);a.setAAD(Buffer.from(`atlas-github-auth:${r}:v1`));let n=Buffer.concat([a.update(JSON.stringify(e),"utf8"),a.final()]);return[i,a.getAuthTag(),n].map(e=>e.toString("base64url")).join(".")}function o(e,r){try{let[i,a,n,...o]=e.split(".");if(o.length>0)return;let u=(0,t.createDecipheriv)("aes-256-gcm",s(),Buffer.from(i,"base64url"));return u.setAAD(Buffer.from(`atlas-github-auth:${r}:v1`)),u.setAuthTag(Buffer.from(a,"base64url")),JSON.parse(Buffer.concat([u.update(Buffer.from(n,"base64url")),u.final()]).toString("utf8"))}catch{return}}function s(){let e=process.env.ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY,t=void 0===e?Buffer.alloc(0):Buffer.from(e,"base64");if(32!==t.length||t.toString("base64")!==e)throw Error("ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY must be 32 Base64-encoded bytes.");return t}function u(e){return void 0===e||!Number.isFinite(e)||e<=Date.now()}function c(e,t){return e?.match(RegExp(`(?:^|;\\s*)${t}=([^;]+)`,"u"))?.[1]}e.s(["clearGitHubAuthAttemptCookie",0,function(e){e.delete(r)},"clearGitHubAuthSessionCookie",0,function(e){e.delete(i)},"hasGitHubAuthCookieEncryptionKey",0,function(){try{return s(),!0}catch{return!1}},"readGitHubAuthAttempt",0,function(e){let t=c(e,r),i=void 0===t?void 0:o(t,"attempt");return void 0===i||u(i.expiresAt)?void 0:i},"readGitHubAuthSession",0,function(e){let t=c(e,i),r=void 0===t?void 0:o(t,"session");return void 0===r||u(r.expiresAt)?void 0:r},"setGitHubAuthAttemptCookie",0,function(e,t){t.set(r,n(e,"attempt"),{...a(),maxAge:Math.max(1,Math.ceil((e.expiresAt-Date.now())/1e3))})},"setGitHubAuthSessionCookie",0,function(e,t){let r=Math.min(e.expiresAt??Number.MAX_SAFE_INTEGER,Date.now()+288e5),o={...e,expiresAt:r};t.set(i,n(o,"session"),{...a(),maxAge:Math.max(1,Math.ceil((r-Date.now())/1e3))})}])},30591,e=>{"use strict";let t={callbackUrl:"https://atlas.ankhorage.com/api/auth/github/callback",publicScopes:["read:user"],privateRepositoryScopes:["read:user","repo"]};e.s(["githubAuthConfiguration",0,t,"githubAuthorizationScopes",0,function(e){return e?t.privateRepositoryScopes:t.publicScopes}])},54012,e=>{"use strict";var t=e.i(6941),r=e.i(24013),i=e.i(57345),a=e.i(30591);e.s(["createGitHubAuthAdapterAsync",0,function(e={}){let n,o,s=(n=process.env.ATLAS_GITHUB_OAUTH_CLIENT_ID,o=process.env.ATLAS_GITHUB_OAUTH_CLIENT_SECRET,n&&o?{clientId:n,clientSecret:o}:null);if(null===s)return Promise.resolve({available:!1,message:"GitHub sign-in is not configured."});if(!(0,i.hasGitHubAuthCookieEncryptionKey)())return Promise.resolve({available:!1,message:"GitHub sign-in is temporarily unavailable."});try{let i=(0,r.createGitHubAuthCookieStores)(e);return Promise.resolve({adapter:(0,t.createGitHubAuthAdapter)({authorizationMode:"oauth-app",authorizationAttempts:i.authorizationAttempts,clientId:s.clientId,clientSecret:s.clientSecret,redirectUris:[a.githubAuthConfiguration.callbackUrl],sessions:i.sessions}),available:!0,readAuthorizationAttempt:i.readAuthorizationAttempt})}catch{return Promise.resolve({available:!1,message:"GitHub sign-in is temporarily unavailable."})}}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__112op4w._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubOAuthGateway.ts","../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubOAuthFlow.ts","../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubSessionOperations.ts","../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubAuthAdapter.ts","../../../src/features/github-auth/adapters/inbound/next/createGitHubAuthCookieStores.ts","../../../src/features/github-auth/adapters/inbound/next/githubAuthCookies.ts","../../../src/features/github-auth/application/githubAuthConfiguration.ts","../../../src/features/github-auth/composition/createGitHubAuthAdapterAsync.ts"],"sourcesContent":["import type { AuthSession, AuthUser } from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig } from '../../../../types/github.js';\n\nconst TOKEN_URL = 'https://github.com/login/oauth/access_token';\nconst USER_URL = 'https://api.github.com/user';\n\n/*** Bind the confidential GitHub user-token exchange and refresh to a fixed provider endpoint. */\nexport function createGitHubOAuthGateway(config: GitHubAuthConfig) {\n return {\n exchangeCodeAsync: (code: string, redirectUri: string) =>\n readSessionAsync(config, { code, redirect_uri: redirectUri }),\n refreshTokenAsync: (refreshToken: string, expectedUserId: string) =>\n readSessionAsync(\n config,\n { grant_type: 'refresh_token', refresh_token: refreshToken },\n expectedUserId,\n ),\n };\n}\n\n/*** Exchange a GitHub user token and verify that it matches the expected identity when refreshing. */\nasync function readSessionAsync(\n config: GitHubAuthConfig,\n parameters: Readonly<Record<string, string>>,\n expectedUserId?: string,\n): Promise<AuthSession> {\n const body = new URLSearchParams({\n client_id: config.clientId,\n client_secret: config.clientSecret,\n ...parameters,\n });\n const response = await (config.fetcher ?? fetch)(TOKEN_URL, {\n method: 'POST',\n redirect: 'error',\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n body,\n signal: AbortSignal.timeout(config.requestTimeoutMs ?? 15_000),\n });\n if (!response.ok) throw new Error('GitHub token exchange failed.');\n const value: unknown = await response.json();\n const token = readToken(value);\n const user = await readUserAsync(config, token.accessToken);\n if (expectedUserId !== undefined && user.id !== expectedUserId)\n throw new Error('GitHub identity changed during token refresh.');\n return {\n accessToken: token.accessToken,\n ...(token.refreshToken === undefined ? {} : { refreshToken: token.refreshToken }),\n ...(token.expiresIn === undefined\n ? {}\n : { expiresAt: (config.now ?? Date.now)() + token.expiresIn * 1_000 }),\n tokenType: 'bearer',\n user,\n };\n}\n\n/*** Request the authoritative GitHub user for this token rather than trusting account hints. */\nasync function readUserAsync(config: GitHubAuthConfig, token: string): Promise<AuthUser> {\n const response = await (config.fetcher ?? fetch)(USER_URL, {\n method: 'GET',\n redirect: 'error',\n headers: {\n Accept: 'application/vnd.github+json',\n Authorization: 'Bearer ' + token,\n 'X-GitHub-Api-Version': '2022-11-28',\n },\n signal: AbortSignal.timeout(config.requestTimeoutMs ?? 15_000),\n });\n if (!response.ok) throw new Error('GitHub identity verification failed.');\n const value: unknown = await response.json();\n if (!isValidGitHubUser(value)) throw new Error('GitHub returned an invalid user identity.');\n return {\n id: String(value.id),\n username: value.login,\n ...(typeof value.name === 'string' && value.name.trim() !== ''\n ? { displayName: value.name }\n : {}),\n ...(typeof value.email === 'string' && value.email.trim() !== '' ? { email: value.email } : {}),\n ...(typeof value.avatar_url === 'string' && value.avatar_url.startsWith('https://')\n ? { avatarUrl: value.avatar_url }\n : {}),\n };\n}\n\n/*** Reject non-bearer, malformed, missing or nonexpiring-looking GitHub OAuth responses. */\nfunction readToken(value: unknown): {\n readonly accessToken: string;\n readonly refreshToken?: string;\n readonly expiresIn?: number;\n} {\n if (\n !isRecord(value) ||\n !hasValidAccessToken(value) ||\n !hasValidTokenType(value) ||\n !hasValidRefreshToken(value) ||\n !hasValidTokenExpiration(value)\n )\n throw new Error('GitHub returned an invalid token response.');\n return {\n accessToken: value.access_token,\n ...(typeof value.refresh_token === 'string' ? { refreshToken: value.refresh_token } : {}),\n ...(typeof value.expires_in === 'number' ? { expiresIn: value.expires_in } : {}),\n };\n}\n\n/*** Validate the signed-in GitHub account's stable numeric identity and login. */\nfunction isValidGitHubUser(value: unknown): value is GitHubUserRecord {\n return (\n isRecord(value) &&\n typeof value.id === 'number' &&\n Number.isSafeInteger(value.id) &&\n value.id > 0 &&\n typeof value.login === 'string' &&\n value.login.trim() !== ''\n );\n}\n\ninterface GitHubUserRecord extends Record<string, unknown> {\n id: number;\n login: string;\n}\n\n/*** Require a non-empty opaque OAuth access token. */\nfunction hasValidAccessToken(\n value: Record<string, unknown>,\n): value is Record<string, unknown> & { access_token: string } {\n return typeof value.access_token === 'string' && value.access_token.length > 0;\n}\n\n/*** Only accept a bearer token when GitHub states a token type. */\nfunction hasValidTokenType(value: Record<string, unknown>): boolean {\n return (\n value.token_type === undefined ||\n (typeof value.token_type === 'string' && value.token_type.toLowerCase() === 'bearer')\n );\n}\n\n/*** Reject refresh credentials of unexpected provider data types. */\nfunction hasValidRefreshToken(value: Record<string, unknown>): boolean {\n return (\n value.refresh_token === undefined ||\n (typeof value.refresh_token === 'string' && value.refresh_token.length > 0)\n );\n}\n\n/*** Accept optional positive integer GitHub access-token lifetimes. */\nfunction hasValidTokenExpiration(value: Record<string, unknown>): boolean {\n return (\n value.expires_in === undefined ||\n (typeof value.expires_in === 'number' &&\n Number.isSafeInteger(value.expires_in) &&\n value.expires_in > 0)\n );\n}\n\n/*** Narrow untrusted provider JSON before inspecting its fields. */\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport type {\n AuthOAuthCompletionResult,\n AuthOAuthError,\n AuthOAuthStartResult,\n CompleteOAuthAuthorizationInput,\n StartOAuthAuthorizationInput,\n} from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig, GitHubAuthorizationAttempt } from '../../../../types/github.js';\nimport { createGitHubOAuthGateway } from './createGitHubOAuthGateway.js';\n\nconst DEFAULT_TTL_MS = 600_000;\n\n/*** Provide OAuth start/completion using durable one-use attempts and verified GitHub identity. */\nexport function createGitHubOAuthFlow(\n config: GitHubAuthConfig,\n): Pick<AuthPort, 'startAuthorization' | 'completeAuthorization'> {\n return {\n startAuthorization: (input) => startAuthorizationAsync(config, input),\n completeAuthorization: (input) => completeAuthorizationAsync(config, input),\n };\n}\n\n/*** Verify the provider, callback, and requested permissions before storing a new attempt. */\nasync function startAuthorizationAsync(\n config: GitHubAuthConfig,\n input: StartOAuthAuthorizationInput,\n): Promise<AuthOAuthStartResult> {\n if (input.provider !== 'github')\n return oauthStartError('provider_disabled', 'GitHub is the only supported provider.');\n if (!config.redirectUris.includes(input.redirectUri))\n return oauthStartError('invalid_redirect_uri', 'The callback URL is not allowlisted.');\n if (\n !hasSupportedScopes(config, input.scopes) ||\n (input.queryParams !== undefined && Object.keys(input.queryParams).length > 0)\n )\n return oauthStartError(\n 'authorization_failed',\n 'Unsupported GitHub App authorization parameters.',\n );\n\n const attempt: GitHubAuthorizationAttempt = {\n attemptId: createOpaqueValue(config.createAttemptId),\n state: createOpaqueValue(config.createState),\n redirectUri: input.redirectUri,\n expiresAt: (config.now ?? Date.now)() + (config.authorizationAttemptTtlMs ?? DEFAULT_TTL_MS),\n };\n try {\n await config.authorizationAttempts.purgeExpired((config.now ?? Date.now)());\n await config.authorizationAttempts.create(attempt);\n return {\n ok: true,\n data: {\n attemptId: attempt.attemptId,\n provider: 'github',\n redirectUri: attempt.redirectUri,\n authorizationUrl: createAuthorizationUrl(config.clientId, attempt, input.scopes),\n },\n };\n } catch {\n return oauthStartError('authorization_failed', 'Unable to start GitHub authorization.');\n }\n}\n\n/*** Generate host-overridable opaque OAuth values without detaching the platform Crypto receiver. */\nfunction createOpaqueValue(factory: (() => string) | undefined): string {\n return factory?.() ?? crypto.randomUUID();\n}\n\n/*** Restrict each GitHub authorization protocol to its documented, least-privilege scope vocabulary. */\nfunction hasSupportedScopes(\n config: GitHubAuthConfig,\n scopes: readonly string[] | undefined,\n): boolean {\n const permittedScopes =\n config.authorizationMode === 'oauth-app' ? ['read:user', 'repo'] : ['offline_access'];\n if (scopes === undefined) return config.authorizationMode === 'github-app';\n const uniqueScopes = new Set(scopes);\n return (\n uniqueScopes.size === scopes.length &&\n scopes.every((scope) => permittedScopes.includes(scope)) &&\n (config.authorizationMode === 'github-app' || uniqueScopes.has('read:user'))\n );\n}\n\n/*** Construct GitHub's fixed OAuth endpoint without accepting arbitrary caller query parameters. */\nfunction createAuthorizationUrl(\n clientId: string,\n attempt: GitHubAuthorizationAttempt,\n scopes: readonly string[] | undefined,\n): string {\n const url = new URL('https://github.com/login/oauth/authorize');\n url.searchParams.set('client_id', clientId);\n url.searchParams.set('redirect_uri', attempt.redirectUri);\n url.searchParams.set('state', attempt.state);\n if (scopes && scopes.length > 0) url.searchParams.set('scope', scopes.join(' '));\n return url.toString();\n}\n\n/*** Consume the OAuth attempt before validation and persist only verified GitHub sessions. */\nasync function completeAuthorizationAsync(\n config: GitHubAuthConfig,\n input: CompleteOAuthAuthorizationInput,\n): Promise<AuthOAuthCompletionResult> {\n const attempt = await consumeAttemptAsync(config, input.attemptId);\n if (attempt === null) return oauthError('authorization_attempt_not_found', 'callback');\n if (input.response.type === 'cancelled')\n return { ok: false, status: 'cancelled', provider: 'github', reason: input.response.reason };\n if (input.response.type === 'error') return oauthError('provider_error', 'transport');\n const callback = parseCallback(input.response.url, attempt.redirectUri);\n if (callback === null) return oauthError('invalid_callback', 'callback');\n if (callback.state !== attempt.state) return oauthError('state_mismatch', 'callback');\n if (callback.error === 'access_denied')\n return { ok: false, status: 'cancelled', provider: 'github', reason: 'provider_denied' };\n if (callback.error !== undefined) return oauthError('provider_error', 'callback');\n if (callback.code === undefined) return oauthError('invalid_callback', 'callback');\n try {\n const gateway = createGitHubOAuthGateway(config);\n const session = await gateway.exchangeCodeAsync(callback.code, attempt.redirectUri);\n try {\n await config.sessions.save(session);\n } catch {\n return oauthError('session_persistence_failed', 'session');\n }\n return { ok: true, status: 'authenticated', provider: 'github', session };\n } catch {\n return oauthError('code_exchange_failed', 'exchange');\n }\n}\n\n/*** Retire the pending authorization even when storage fails or the attempt is expired. */\nasync function consumeAttemptAsync(\n config: GitHubAuthConfig,\n attemptId: string,\n): Promise<GitHubAuthorizationAttempt | null> {\n try {\n return await config.authorizationAttempts.consume(attemptId, (config.now ?? Date.now)());\n } catch {\n return null;\n }\n}\n\n/*** Bind a callback to its configured HTTPS origin/path and a single OAuth state value. */\nfunction parseCallback(\n urlText: string,\n redirectUri: string,\n): { readonly state: string; readonly code?: string; readonly error?: string } | null {\n try {\n const actual = new URL(urlText);\n const expected = new URL(redirectUri);\n if (\n actual.origin !== expected.origin ||\n actual.pathname !== expected.pathname ||\n actual.hash !== '' ||\n actual.searchParams.getAll('state').length !== 1 ||\n actual.searchParams.getAll('code').length > 1 ||\n actual.searchParams.getAll('error').length > 1\n )\n return null;\n const state = actual.searchParams.get('state');\n if (!state) return null;\n const code = actual.searchParams.get('code');\n const error = actual.searchParams.get('error');\n return { state, ...(code ? { code } : {}), ...(error ? { error } : {}) };\n } catch {\n return null;\n }\n}\n\n/*** Return contract-compatible OAuth failures without raw codes, tokens, or provider payloads. */\nfunction oauthError(\n code: AuthOAuthError['code'],\n stage: AuthOAuthError['stage'],\n): AuthOAuthCompletionResult {\n return {\n ok: false,\n status: 'error',\n error: {\n code,\n stage,\n provider: 'github',\n recoverable: false,\n message: 'GitHub authorization failed.',\n },\n };\n}\n\n/*** Refuse incorrect provider setup with a portable, nonsecret OAuth start result. */\nfunction oauthStartError(code: AuthOAuthError['code'], message: string): AuthOAuthStartResult {\n return {\n ok: false,\n error: {\n code,\n message,\n stage: 'start',\n provider: 'github',\n recoverable: false,\n },\n };\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport type { AuthResult, AuthSession, SignOutInput } from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig } from '../../../../types/github.js';\nimport { createGitHubOAuthGateway } from './createGitHubOAuthGateway.js';\n\n/*** Bind session-related AuthPort operations to a request-scoped durable host store. */\nexport function createGitHubSessionOperations(\n config: GitHubAuthConfig,\n): Pick<AuthPort, 'signOut' | 'getSession' | 'refreshSession'> {\n const gateway = createGitHubOAuthGateway(config);\n return {\n signOut: (input) => signOutAsync(config, input),\n getSession: () => getSessionAsync(config),\n refreshSession: () => refreshSessionAsync(config, gateway),\n };\n}\n\n/*** Remove only the host's local session; never claim global GitHub sign-out. */\nasync function signOutAsync(config: GitHubAuthConfig, input?: SignOutInput): Promise<AuthResult> {\n if (input?.allDevices)\n return {\n ok: false,\n error: { code: 'unsupported_operation', message: 'Global sign-out is not supported.' },\n };\n try {\n await config.sessions.clear();\n return { ok: true };\n } catch {\n return sessionError('Unable to end the local session.');\n }\n}\n\n/*** Read the stored session without silently treating expired tokens as authenticated. */\nasync function getSessionAsync(config: GitHubAuthConfig): Promise<AuthResult<AuthSession | null>> {\n try {\n const session = await config.sessions.get();\n const expired =\n session?.expiresAt !== undefined && session.expiresAt <= (config.now ?? Date.now)();\n return { ok: true, data: expired ? null : session };\n } catch {\n return sessionError('Unable to read the local session.');\n }\n}\n\n/*** Refresh a token and fail closed if GitHub returns another user identity. */\nasync function refreshSessionAsync(\n config: GitHubAuthConfig,\n gateway: ReturnType<typeof createGitHubOAuthGateway>,\n): Promise<AuthResult<AuthSession | null>> {\n try {\n const session = await config.sessions.get();\n if (session === null) return { ok: true, data: null };\n if (!session.refreshToken) {\n return session.expiresAt === undefined || session.expiresAt > (config.now ?? Date.now)()\n ? { ok: true, data: session }\n : sessionError('GitHub authorization has expired.');\n }\n const refreshed = await gateway.refreshTokenAsync(session.refreshToken, session.user.id);\n await config.sessions.save(refreshed);\n return { ok: true, data: refreshed };\n } catch {\n return sessionError('GitHub session refresh failed.');\n }\n}\n\n/*** Normalize session failures without exposing secrets from storage or GitHub. */\nfunction sessionError<T>(message: string): AuthResult<T> {\n return { ok: false, error: { code: 'invalid_session', message } };\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport type { AuthResult, AuthSession, AuthUser } from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig } from '../../../../types/github.js';\nimport { createGitHubOAuthFlow } from './createGitHubOAuthFlow.js';\nimport { createGitHubSessionOperations } from './createGitHubSessionOperations.js';\n\n/*** Implement the published AuthPort with GitHub OAuth and explicitly unsupported credentials operations. */\nexport function createGitHubAuthAdapter(config: GitHubAuthConfig): AuthPort {\n validateConfig(config);\n return {\n ...createGitHubSessionOperations(config),\n ...createGitHubOAuthFlow(config),\n signIn: () => Promise.resolve(unsupported<AuthSession>()),\n signUp: () => Promise.resolve(unsupported<AuthSession | AuthUser>()),\n requestPasswordReset: () => Promise.resolve(unsupported<void>()),\n verifyOtp: () => Promise.resolve(unsupported<AuthSession>()),\n };\n}\n\n/*** Refuse configuration with secrets missing or callbacks that cannot be trusted. */\nfunction validateConfig(config: GitHubAuthConfig): void {\n if (\n !config.clientId.trim() ||\n !config.clientSecret.trim() ||\n config.redirectUris.length === 0 ||\n !isOptionalPositiveInteger(config.authorizationAttemptTtlMs) ||\n !isOptionalPositiveInteger(config.requestTimeoutMs)\n )\n throw new Error('Invalid GitHub App authorization configuration.');\n if (!config.redirectUris.every(isSecureRedirectUri))\n throw new Error('GitHub OAuth callback URLs must be explicitly allowlisted HTTPS URLs.');\n}\n\n/*** Validate an optional positive integer without bloating the adapter configuration policy. */\nfunction isOptionalPositiveInteger(value: number | undefined): boolean {\n return value === undefined || (Number.isSafeInteger(value) && value > 0);\n}\n\n/*** Require exact canonical HTTPS callback URIs without embedded credentials or query data. */\nfunction isSecureRedirectUri(value: string): boolean {\n try {\n const url = new URL(value);\n return (\n url.protocol === 'https:' &&\n !url.username &&\n !url.password &&\n !url.search &&\n !url.hash &&\n url.toString() === value\n );\n } catch {\n return false;\n }\n}\n\n/*** Make unsupported provider operations fail closed rather than simulate successful auth. */\nfunction unsupported<T>(): AuthResult<T> {\n return {\n ok: false,\n error: { code: 'unsupported_operation', message: 'GitHub uses browser authorization.' },\n };\n}\n","import type {\n GitHubAuthorizationAttempt,\n GitHubAuthorizationAttemptStore,\n GitHubSessionStore,\n} from '@ankhorage/auth-github';\nimport type { AuthSession } from '@ankhorage/contracts/auth';\n\n/*** Adapt one request's encrypted cookie values to the published GitHub adapter stores without introducing a provider-specific OAuth flow. */\nexport function createGitHubAuthCookieStores(\n input: GitHubAuthCookieStoreInput\n): GitHubAuthCookieStores {\n let { authorizationAttempt, session } = input;\n return {\n authorizationAttempts: {\n create: attempt => {\n if (authorizationAttempt !== undefined)\n throw new Error('GitHub authorization attempt exists.');\n authorizationAttempt = attempt;\n return Promise.resolve();\n },\n consume: (attemptId, now) => {\n const candidate = authorizationAttempt;\n authorizationAttempt = undefined;\n return Promise.resolve(\n candidate?.attemptId === attemptId && candidate.expiresAt > now ? candidate : null\n );\n },\n purgeExpired: now => {\n if (authorizationAttempt !== undefined && authorizationAttempt.expiresAt <= now)\n authorizationAttempt = undefined;\n return Promise.resolve();\n },\n },\n readAuthorizationAttempt: () => authorizationAttempt,\n sessions: {\n clear: () => {\n session = undefined;\n return Promise.resolve();\n },\n get: () => Promise.resolve(session ?? null),\n save: nextSession => {\n session = nextSession;\n return Promise.resolve();\n },\n },\n };\n}\n\ninterface GitHubAuthCookieStoreInput {\n readonly authorizationAttempt?: GitHubAuthorizationAttempt;\n readonly session?: AuthSession;\n}\n\ninterface GitHubAuthCookieStores {\n readonly authorizationAttempts: GitHubAuthorizationAttemptStore;\n readonly readAuthorizationAttempt: () => GitHubAuthorizationAttempt | undefined;\n readonly sessions: GitHubSessionStore;\n}\n","import { createCipheriv, createDecipheriv, randomBytes } from 'node:crypto';\n\nimport type { GitHubAuthorizationAttempt } from '@ankhorage/auth-github';\nimport type { AuthSession } from '@ankhorage/contracts/auth';\nimport type { ResponseCookies } from 'next/dist/server/web/spec-extension/cookies';\n\n/*** Keep GitHub credentials encrypted and authenticated in host-only browser cookies. */\nconst githubAuthCookieNames = {\n attempt: '__Host-atlas-github-attempt',\n session: '__Host-atlas-github-session',\n} as const;\n\n/*** Store a short-lived OAuth attempt so the callback state is bound to the initiating browser. */\nexport function setGitHubAuthAttemptCookie(\n attempt: GitHubAuthorizationAttempt,\n cookies: ResponseCookies\n): void {\n cookies.set(githubAuthCookieNames.attempt, sealCookieValue(attempt, 'attempt'), {\n ...cookieOptions(),\n maxAge: Math.max(1, Math.ceil((attempt.expiresAt - Date.now()) / 1_000)),\n });\n}\n\n/*** Store a locally bounded GitHub session; provider tokens never appear in readable browser storage. */\nexport function setGitHubAuthSessionCookie(session: AuthSession, cookies: ResponseCookies): void {\n const expiresAt = Math.min(session.expiresAt ?? Number.MAX_SAFE_INTEGER, Date.now() + 28_800_000);\n const boundedSession = { ...session, expiresAt };\n cookies.set(githubAuthCookieNames.session, sealCookieValue(boundedSession, 'session'), {\n ...cookieOptions(),\n maxAge: Math.max(1, Math.ceil((expiresAt - Date.now()) / 1_000)),\n });\n}\n\n/*** Remove transient authorization state after a callback, whether it succeeded or failed. */\nexport function clearGitHubAuthAttemptCookie(cookies: ResponseCookies): void {\n cookies.delete(githubAuthCookieNames.attempt);\n}\n\n/*** Remove the opaque local session after the adapter revokes its stored credentials. */\nexport function clearGitHubAuthSessionCookie(cookies: ResponseCookies): void {\n cookies.delete(githubAuthCookieNames.session);\n}\n\n/*** Use host-only, HTTPS, HttpOnly, SameSite cookies; no token ever enters browser-readable storage. */\nfunction cookieOptions() {\n return { httpOnly: true, path: '/', sameSite: 'lax' as const, secure: true };\n}\n\n/*** Decode a verified session only in a server route or server component. */\nexport function readGitHubAuthSession(cookieHeader: string | null): AuthSession | undefined {\n const session = readCookie(cookieHeader, githubAuthCookieNames.session);\n const opened =\n session === undefined ? undefined : openCookieValue<AuthSession>(session, 'session');\n return opened === undefined || isExpired(opened.expiresAt) ? undefined : opened;\n}\n\n/*** Decode a verified authorization attempt only for the OAuth callback. */\nexport function readGitHubAuthAttempt(\n cookieHeader: string | null\n): GitHubAuthorizationAttempt | undefined {\n const attempt = readCookie(cookieHeader, githubAuthCookieNames.attempt);\n const opened =\n attempt === undefined\n ? undefined\n : openCookieValue<GitHubAuthorizationAttempt>(attempt, 'attempt');\n return opened === undefined || isExpired(opened.expiresAt) ? undefined : opened;\n}\n\n/*** Report whether the deployment has a valid cookie key without exposing or deriving its value. */\nexport function hasGitHubAuthCookieEncryptionKey(): boolean {\n try {\n readEncryptionKey();\n return true;\n } catch {\n return false;\n }\n}\n\n/*** Encrypt and authenticate cookie content with the deployment-owned 256-bit key. */\nfunction sealCookieValue(value: unknown, purpose: 'attempt' | 'session'): string {\n const iv = randomBytes(12);\n const cipher = createCipheriv('aes-256-gcm', readEncryptionKey(), iv);\n cipher.setAAD(Buffer.from(`atlas-github-auth:${purpose}:v1`));\n const ciphertext = Buffer.concat([cipher.update(JSON.stringify(value), 'utf8'), cipher.final()]);\n return [iv, cipher.getAuthTag(), ciphertext].map(part => part.toString('base64url')).join('.');\n}\n\n/*** Reject malformed, tampered, or incorrectly purposed cookie values without revealing their content. */\nfunction openCookieValue<T>(value: string, purpose: 'attempt' | 'session'): T | undefined {\n try {\n const [iv, tag, ciphertext, ...unexpected] = value.split('.');\n if (unexpected.length > 0) return undefined;\n const decipher = createDecipheriv(\n 'aes-256-gcm',\n readEncryptionKey(),\n Buffer.from(iv, 'base64url')\n );\n decipher.setAAD(Buffer.from(`atlas-github-auth:${purpose}:v1`));\n decipher.setAuthTag(Buffer.from(tag, 'base64url'));\n return JSON.parse(\n Buffer.concat([\n decipher.update(Buffer.from(ciphertext, 'base64url')),\n decipher.final(),\n ]).toString('utf8')\n ) as T;\n } catch {\n return undefined;\n }\n}\n\n/*** Require a stable, server-only encryption key rather than falling back to plaintext or process memory. */\nfunction readEncryptionKey(): Buffer {\n const value = process.env.ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY;\n const key = value === undefined ? Buffer.alloc(0) : Buffer.from(value, 'base64');\n if (key.length !== 32 || key.toString('base64') !== value)\n throw new Error('ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY must be 32 Base64-encoded bytes.');\n return key;\n}\n\n/*** Reject locally expired sealed values even if a browser or attacker retains their cookie. */\nfunction isExpired(expiresAt: number | undefined): boolean {\n return expiresAt === undefined || !Number.isFinite(expiresAt) || expiresAt <= Date.now();\n}\n\n/*** Read only an exact host-owned cookie name. */\nfunction readCookie(cookieHeader: string | null, name: string): string | undefined {\n return cookieHeader?.match(new RegExp(`(?:^|;\\\\s*)${name}=([^;]+)`, 'u'))?.[1];\n}\n","/*** Keep the GitHub OAuth callback and requested permissions explicit and deployment-auditable. */\nexport const githubAuthConfiguration = {\n callbackUrl: 'https://atlas.ankhorage.com/api/auth/github/callback',\n publicScopes: ['read:user'],\n privateRepositoryScopes: ['read:user', 'repo'],\n} as const;\n\n/*** Select only the scopes the person explicitly consented to for this authorization attempt. */\nexport function githubAuthorizationScopes(privateRepositoryAccess: boolean): readonly string[] {\n return privateRepositoryAccess\n ? githubAuthConfiguration.privateRepositoryScopes\n : githubAuthConfiguration.publicScopes;\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport { createGitHubAuthAdapter, type GitHubAuthorizationAttempt } from '@ankhorage/auth-github';\nimport type { AuthSession } from '@ankhorage/contracts/auth';\n\nimport { createGitHubAuthCookieStores } from '@/features/github-auth/adapters/inbound/next/createGitHubAuthCookieStores';\nimport { hasGitHubAuthCookieEncryptionKey } from '@/features/github-auth/adapters/inbound/next/githubAuthCookies';\nimport { githubAuthConfiguration } from '@/features/github-auth/application/githubAuthConfiguration';\n\n/*** Compose the released GitHub adapter against request-scoped encrypted-cookie values. */\nexport function createGitHubAuthAdapterAsync(\n input: GitHubAuthAdapterInput = {}\n): Promise<GitHubAuthAdapterAvailability> {\n const configuration = readGitHubAuthEnvironment();\n if (configuration === null)\n return Promise.resolve({ available: false, message: 'GitHub sign-in is not configured.' });\n if (!hasGitHubAuthCookieEncryptionKey())\n return Promise.resolve({\n available: false,\n message: 'GitHub sign-in is temporarily unavailable.',\n });\n\n try {\n const stores = createGitHubAuthCookieStores(input);\n return Promise.resolve({\n adapter: createGitHubAuthAdapter({\n authorizationMode: 'oauth-app',\n authorizationAttempts: stores.authorizationAttempts,\n clientId: configuration.clientId,\n clientSecret: configuration.clientSecret,\n redirectUris: [githubAuthConfiguration.callbackUrl],\n sessions: stores.sessions,\n }),\n available: true,\n readAuthorizationAttempt: stores.readAuthorizationAttempt,\n });\n } catch {\n return Promise.resolve({\n available: false,\n message: 'GitHub sign-in is temporarily unavailable.',\n });\n }\n}\n\n/*** Read secrets only on the server and reject partial OAuth configuration rather than degrading to shared credentials. */\nfunction readGitHubAuthEnvironment(): GitHubAuthEnvironment | null {\n const clientId = process.env.ATLAS_GITHUB_OAUTH_CLIENT_ID;\n const clientSecret = process.env.ATLAS_GITHUB_OAUTH_CLIENT_SECRET;\n return clientId && clientSecret ? { clientId, clientSecret } : null;\n}\n\ninterface GitHubAuthEnvironment {\n readonly clientId: string;\n readonly clientSecret: string;\n}\n\nexport interface GitHubAuthAdapterInput {\n readonly authorizationAttempt?: GitHubAuthorizationAttempt;\n readonly session?: AuthSession;\n}\n\nexport type GitHubAuthAdapterAvailability =\n | {\n readonly adapter: AuthPort;\n readonly available: true;\n readonly readAuthorizationAttempt: () => GitHubAuthorizationAttempt | undefined;\n }\n | { readonly available: false; readonly message: string };\n"],"names":["expectedUserId","config","fetcher","headers","readUserAsync","accessToken","githubAuthCookieNames","attempt","session","setGitHubAuthAttemptCookie","cookies","set","sealCookieValue","cookieOptions","maxAge","Math","max","ceil","expiresAt","Date","now","setGitHubAuthSessionCookie","min","Number","MAX_SAFE_INTEGER","boundedSession","clearGitHubAuthAttemptCookie","delete","clearGitHubAuthSessionCookie","httpOnly","path","sameSite","secure","readGitHubAuthSession","cookieHeader","readCookie","opened","undefined","openCookieValue","isExpired","readGitHubAuthAttempt","hasGitHubAuthCookieEncryptionKey","readEncryptionKey","value","purpose","iv","cipher","setAAD","Buffer","from","ciphertext","concat","update","JSON","stringify","final","getAuthTag","map","part","toString","join","tag","unexpected","split","length","decipher","setAuthTag","parse","process","env","ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY","key","alloc","Error","isFinite","name","match","RegExp","githubAuthConfiguration","callbackUrl","publicScopes","privateRepositoryScopes","githubAuthorizationScopes","privateRepositoryAccess","createGitHubAuthAdapterAsync","input","configuration","readGitHubAuthEnvironment","Promise","resolve","available","message","stores","adapter","authorizationMode","authorizationAttempts","clientId","clientSecret","redirectUris","sessions","readAuthorizationAttempt","ATLAS_GITHUB_OAUTH_CLIENT_ID","ATLAS_GITHUB_OAUTH_CLIENT_SECRET"],"mappings":"mkDAQyC,CAAwB,IEEhB,CAAC,CAAC,EFD1C,CACL,MGDY,YHCZ,CAAA,EAAkC,ECSN,EAAE,ADR5B,EAAiB,EEC2B,ADOe,ADRlC,CECoB,ADOqB,KDRvC,ECQyB,ADRnB,EAAF,UAAc,CAAE,CAAW,CAAE,CAAC,QAAH,WACzC,CAAC,CCQC,CDRqB,IACxC,CGFqC,CHGnC,EACA,CAAE,CCKoE,CAAd,AAAe,CDNjE,OACM,CAAE,eAAe,CAAE,aAAa,CAAE,CAAY,CAAE,CAC5D,SAD0D,KAC5C,CACf,MAML,CGR2B,AAAE,CHS7B,CGT6B,AHSe,CAAA,CGTP,AHSO,EAG5C,CERG,GFQG,ECEG,CAAA,GDFQ,gBAAA,WACJ,EAAO,IERC,AFQF,ACEK,IDFI,eACX,CCC2B,CDDpB,YAAY,CCEG,ADDrC,GAAG,CAAA,GAEC,EAAW,ECGT,IDHe,CAAC,EAAO,KCGG,EDHI,EAAI,KCGE,ED/B5B,CA4BiC,WG5BrB,EAAE,CDAC,ADMA,EAAE,ACNA,GCAG,GDAG,ADMA,sBDNsB,CAAC,AA4BF,EG5BI,CAAC,KDAK,ADMA,CCNC,ADMA,eDwB3D,iBAER,CCQG,MDRK,mBACR,eAAgB,4CAGlB,CCQG,MDRK,YAAY,OAAA,CAAQ,EAAO,IAAD,YAAiB,EAAI,QAEzD,CERG,EFQC,CAAA,EAAU,EAAA,CAAA,MAAU,AAAI,MAAM,MGNR,IAAI,uBHQ9B,IAAA,EAAc,AA4ChB,GEnDiB,MFmDR,AAAU,CAAc,AA5CP,CCiE8B,ECvE3C,KF+Fc,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WlB,QAAQC,GAjCHkB,AAiCM,CAACc,4BAA4B,CACnDJ,EAAe7B,QAAQC,GAAG,CAACiC,gCAAgC,CAC1DN,GAAYC,EAAe,UAAED,eAAUC,CAAa,EAAI,MAlC/D,GAAsB,OAAlBX,EACF,OAAOE,QAAQC,OAAO,CAAC,CAAEC,UAAW,GAAOC,QAAS,mCAAoC,GAC1F,GAAI,CAAC,CAAA,EAAA,EAAA,gCAAA,AAAgC,IACnC,OAAOH,QAAQC,OAAO,CAAC,CACrBC,WAAW,EACXC,QAAS,4CACX,GAEF,GAAI,CACF,IAAMC,EAAS,CAAA,EAAA,EAAA,4BAA4B,AAA5B,EAA6BP,GAC5C,OAAOG,QAAQC,OAAO,CAAC,CACrBI,QAAS,CAAA,EAAA,EAAA,uBAAA,AAAuB,EAAC,CAC/BC,kBAAmB,YACnBC,sBAAuBH,EAAOG,qBAAqB,CACnDC,SAAUV,EAAcU,QAAQ,CAChCC,aAAcX,EAAcW,YAAY,CACxCC,aAAc,CAAC,EAAA,uBAAuB,CAACnB,WAAW,CAAC,CACnDoB,SAAUP,EAAOO,QACnB,AAD2B,GAE3BT,WAAW,EACXU,yBAA0BR,EAAOQ,wBAAwB,AAC3D,EACF,CAAE,KAAM,CACN,OAAOZ,QAAQC,OAAO,CAAC,CACrBC,WAAW,EACXC,QAAS,4CACX,EACF,CACF","ignoreList":[0,1,2,3]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[54799,(e,t,r)=>{t.exports=e.x("crypto",()=>require("crypto"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},20635,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(e,t,r)=>{t.exports=e.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},6941,24013,e=>{"use strict";function t(e){return{exchangeCodeAsync:(t,i)=>r(e,{code:t,redirect_uri:i}),refreshTokenAsync:(t,i)=>r(e,{grant_type:"refresh_token",refresh_token:t},i)}}async function r(e,t,r){let n=new URLSearchParams({client_id:e.clientId,client_secret:e.clientSecret,...t}),o=await (e.fetcher??fetch)("https://github.com/login/oauth/access_token",{method:"POST",redirect:"error",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:n,signal:AbortSignal.timeout(e.requestTimeoutMs??15e3)});if(!o.ok)throw Error("GitHub token exchange failed.");let s=function(e){var t,r,i,n;if(!a(e)||!("string"==typeof(t=e).access_token&&t.access_token.length>0)||void 0!==(r=e).token_type&&("string"!=typeof r.token_type||"bearer"!==r.token_type.toLowerCase())||!(void 0===(i=e).refresh_token||"string"==typeof i.refresh_token&&i.refresh_token.length>0)||!(void 0===(n=e).expires_in||"number"==typeof n.expires_in&&Number.isSafeInteger(n.expires_in)&&n.expires_in>0))throw Error("GitHub returned an invalid token response.");return{accessToken:e.access_token,..."string"==typeof e.refresh_token?{refreshToken:e.refresh_token}:{},..."number"==typeof e.expires_in?{expiresIn:e.expires_in}:{}}}(await o.json()),u=await i(e,s.accessToken);if(void 0!==r&&u.id!==r)throw Error("GitHub identity changed during token refresh.");return{accessToken:s.accessToken,...void 0===s.refreshToken?{}:{refreshToken:s.refreshToken},...void 0===s.expiresIn?{}:{expiresAt:(e.now??Date.now)()+1e3*s.expiresIn},tokenType:"bearer",user:u}}async function i(e,t){var r;let i=await (e.fetcher??fetch)("https://api.github.com/user",{method:"GET",redirect:"error",headers:{Accept:"application/vnd.github+json",Authorization:"Bearer "+t,"X-GitHub-Api-Version":"2022-11-28"},signal:AbortSignal.timeout(e.requestTimeoutMs??15e3)});if(!i.ok)throw Error("GitHub identity verification failed.");let n=await i.json();if(!(a(r=n)&&"number"==typeof r.id&&Number.isSafeInteger(r.id)&&r.id>0&&"string"==typeof r.login&&""!==r.login.trim()))throw Error("GitHub returned an invalid user identity.");return{id:String(n.id),username:n.login,..."string"==typeof n.name&&""!==n.name.trim()?{displayName:n.name}:{},..."string"==typeof n.email&&""!==n.email.trim()?{email:n.email}:{},..."string"==typeof n.avatar_url&&n.avatar_url.startsWith("https://")?{avatarUrl:n.avatar_url}:{}}}function a(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}async function n(e,t){if("github"!==t.provider)return l("provider_disabled","GitHub is the only supported provider.");if(!e.redirectUris.includes(t.redirectUri))return l("invalid_redirect_uri","The callback URL is not allowlisted.");if(!function(e,t){let r="oauth-app"===e.authorizationMode?["read:user","repo"]:["offline_access"];if(void 0===t)return"github-app"===e.authorizationMode;let i=new Set(t);return i.size===t.length&&t.every(e=>r.includes(e))&&("github-app"===e.authorizationMode||i.has("read:user"))}(e,t.scopes)||void 0!==t.queryParams&&Object.keys(t.queryParams).length>0)return l("authorization_failed","Unsupported GitHub App authorization parameters.");let r={attemptId:o(e.createAttemptId),state:o(e.createState),redirectUri:t.redirectUri,expiresAt:(e.now??Date.now)()+(e.authorizationAttemptTtlMs??6e5)};try{var i,a,n;let o;return await e.authorizationAttempts.purgeExpired((e.now??Date.now)()),await e.authorizationAttempts.create(r),{ok:!0,data:{attemptId:r.attemptId,provider:"github",redirectUri:r.redirectUri,authorizationUrl:(i=e.clientId,a=r,n=t.scopes,(o=new URL("https://github.com/login/oauth/authorize")).searchParams.set("client_id",i),o.searchParams.set("redirect_uri",a.redirectUri),o.searchParams.set("state",a.state),n&&n.length>0&&o.searchParams.set("scope",n.join(" ")),o.toString())}}}catch{return l("authorization_failed","Unable to start GitHub authorization.")}}function o(e){return e?.()??crypto.randomUUID()}async function s(e,r){let i=await u(e,r.attemptId);if(null===i)return c("authorization_attempt_not_found","callback");if("cancelled"===r.response.type)return{ok:!1,status:"cancelled",provider:"github",reason:r.response.reason};if("error"===r.response.type)return c("provider_error","transport");let a=function(e,t){try{let r=new URL(e),i=new URL(t);if(r.origin!==i.origin||r.pathname!==i.pathname||""!==r.hash||1!==r.searchParams.getAll("state").length||r.searchParams.getAll("code").length>1||r.searchParams.getAll("error").length>1)return null;let a=r.searchParams.get("state");if(!a)return null;let n=r.searchParams.get("code"),o=r.searchParams.get("error");return{state:a,...n?{code:n}:{},...o?{error:o}:{}}}catch{return null}}(r.response.url,i.redirectUri);if(null===a)return c("invalid_callback","callback");if(a.state!==i.state)return c("state_mismatch","callback");if("access_denied"===a.error)return{ok:!1,status:"cancelled",provider:"github",reason:"provider_denied"};if(void 0!==a.error)return c("provider_error","callback");if(void 0===a.code)return c("invalid_callback","callback");try{let r=t(e),n=await r.exchangeCodeAsync(a.code,i.redirectUri);try{await e.sessions.save(n)}catch{return c("session_persistence_failed","session")}return{ok:!0,status:"authenticated",provider:"github",session:n}}catch{return c("code_exchange_failed","exchange")}}async function u(e,t){try{return await e.authorizationAttempts.consume(t,(e.now??Date.now)())}catch{return null}}function c(e,t){return{ok:!1,status:"error",error:{code:e,stage:t,provider:"github",recoverable:!1,message:"GitHub authorization failed."}}}function l(e,t){return{ok:!1,error:{code:e,message:t,stage:"start",provider:"github",recoverable:!1}}}async function p(e,t){if(t?.allDevices)return{ok:!1,error:{code:"unsupported_operation",message:"Global sign-out is not supported."}};try{return await e.sessions.clear(),{ok:!0}}catch{return f("Unable to end the local session.")}}async function d(e){try{let t=await e.sessions.get(),r=t?.expiresAt!==void 0&&t.expiresAt<=(e.now??Date.now)();return{ok:!0,data:r?null:t}}catch{return f("Unable to read the local session.")}}async function h(e,t){try{let r=await e.sessions.get();if(null===r)return{ok:!0,data:null};if(!r.refreshToken)return void 0===r.expiresAt||r.expiresAt>(e.now??Date.now)()?{ok:!0,data:r}:f("GitHub authorization has expired.");let i=await t.refreshTokenAsync(r.refreshToken,r.user.id);return await e.sessions.save(i),{ok:!0,data:i}}catch{return f("GitHub session refresh failed.")}}function f(e){return{ok:!1,error:{code:"invalid_session",message:e}}}function m(e){return void 0===e||Number.isSafeInteger(e)&&e>0}function g(e){try{let t=new URL(e);return"https:"===t.protocol&&!t.username&&!t.password&&!t.search&&!t.hash&&t.toString()===e}catch{return!1}}function b(){return{ok:!1,error:{code:"unsupported_operation",message:"GitHub uses browser authorization."}}}e.s(["createGitHubAuthAdapter",0,function(e){let r;var i=e;if(!i.clientId.trim()||!i.clientSecret.trim()||0===i.redirectUris.length||!m(i.authorizationAttemptTtlMs)||!m(i.requestTimeoutMs))throw Error("Invalid GitHub App authorization configuration.");if(!i.redirectUris.every(g))throw Error("GitHub OAuth callback URLs must be explicitly allowlisted HTTPS URLs.");return{...(r=t(e),{signOut:t=>p(e,t),getSession:()=>d(e),refreshSession:()=>h(e,r)}),startAuthorization:t=>n(e,t),completeAuthorization:t=>s(e,t),signIn:()=>Promise.resolve(b()),signUp:()=>Promise.resolve(b()),requestPasswordReset:()=>Promise.resolve(b()),verifyOtp:()=>Promise.resolve(b())}}],6941),e.s(["createGitHubAuthCookieStores",0,function(e){let{authorizationAttempt:t,session:r}=e;return{authorizationAttempts:{create:e=>{if(void 0!==t)throw Error("GitHub authorization attempt exists.");return t=e,Promise.resolve()},consume:(e,r)=>{let i=t;return t=void 0,Promise.resolve(i?.attemptId===e&&i.expiresAt>r?i:null)},purgeExpired:e=>(void 0!==t&&t.expiresAt<=e&&(t=void 0),Promise.resolve())},readAuthorizationAttempt:()=>t,sessions:{clear:()=>(r=void 0,Promise.resolve()),get:()=>Promise.resolve(r??null),save:e=>(r=e,Promise.resolve())}}}],24013)},57345,e=>{"use strict";var t=e.i(66680);let r="__Host-atlas-github-attempt",i="__Host-atlas-github-session";function a(){return{httpOnly:!0,path:"/",sameSite:"lax",secure:!0}}function n(e,r){let i=(0,t.randomBytes)(12),a=(0,t.createCipheriv)("aes-256-gcm",s(),i);a.setAAD(Buffer.from(`atlas-github-auth:${r}:v1`));let n=Buffer.concat([a.update(JSON.stringify(e),"utf8"),a.final()]);return[i,a.getAuthTag(),n].map(e=>e.toString("base64url")).join(".")}function o(e,r){try{let[i,a,n,...o]=e.split(".");if(o.length>0)return;let u=(0,t.createDecipheriv)("aes-256-gcm",s(),Buffer.from(i,"base64url"));return u.setAAD(Buffer.from(`atlas-github-auth:${r}:v1`)),u.setAuthTag(Buffer.from(a,"base64url")),JSON.parse(Buffer.concat([u.update(Buffer.from(n,"base64url")),u.final()]).toString("utf8"))}catch{return}}function s(){let e=process.env.ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY,t=void 0===e?Buffer.alloc(0):Buffer.from(e,"base64");if(32!==t.length||t.toString("base64")!==e)throw Error("ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY must be 32 Base64-encoded bytes.");return t}function u(e){return void 0===e||!Number.isFinite(e)||e<=Date.now()}function c(e,t){return e?.match(RegExp(`(?:^|;\\s*)${t}=([^;]+)`,"u"))?.[1]}e.s(["clearGitHubAuthAttemptCookie",0,function(e){e.delete(r)},"clearGitHubAuthSessionCookie",0,function(e){e.delete(i)},"hasGitHubAuthCookieEncryptionKey",0,function(){try{return s(),!0}catch{return!1}},"readGitHubAuthAttempt",0,function(e){let t=c(e,r),i=void 0===t?void 0:o(t,"attempt");return void 0===i||u(i.expiresAt)?void 0:i},"readGitHubAuthSession",0,function(e){let t=c(e,i),r=void 0===t?void 0:o(t,"session");return void 0===r||u(r.expiresAt)?void 0:r},"setGitHubAuthAttemptCookie",0,function(e,t){t.set(r,n(e,"attempt"),{...a(),maxAge:Math.max(1,Math.ceil((e.expiresAt-Date.now())/1e3))})},"setGitHubAuthSessionCookie",0,function(e,t){let r=Math.min(e.expiresAt??Number.MAX_SAFE_INTEGER,Date.now()+288e5),o={...e,expiresAt:r};t.set(i,n(o,"session"),{...a(),maxAge:Math.max(1,Math.ceil((r-Date.now())/1e3))})}])},30591,e=>{"use strict";let t={callbackUrl:"https://atlas.ankhorage.com/api/auth/github/callback",publicScopes:["read:user"],privateRepositoryScopes:["read:user","repo"]};e.s(["githubAuthConfiguration",0,t,"githubAuthorizationScopes",0,function(e){return e?t.privateRepositoryScopes:t.publicScopes}])},54012,e=>{"use strict";var t=e.i(6941),r=e.i(24013),i=e.i(57345),a=e.i(30591);e.s(["createGitHubAuthAdapterAsync",0,function(e={}){let n,o,s=(n=process.env.ATLAS_GITHUB_OAUTH_CLIENT_ID,o=process.env.ATLAS_GITHUB_OAUTH_CLIENT_SECRET,n&&o?{clientId:n,clientSecret:o}:null);if(null===s)return Promise.resolve({available:!1,message:"GitHub sign-in is not configured."});if(!(0,i.hasGitHubAuthCookieEncryptionKey)())return Promise.resolve({available:!1,message:"GitHub sign-in is temporarily unavailable."});try{let i=(0,r.createGitHubAuthCookieStores)(e);return Promise.resolve({adapter:(0,t.createGitHubAuthAdapter)({authorizationMode:"oauth-app",authorizationAttempts:i.authorizationAttempts,clientId:s.clientId,clientSecret:s.clientSecret,redirectUris:[a.githubAuthConfiguration.callbackUrl],sessions:i.sessions}),available:!0,readAuthorizationAttempt:i.readAuthorizationAttempt})}catch{return Promise.resolve({available:!1,message:"GitHub sign-in is temporarily unavailable."})}}])}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__1z32dpt._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubOAuthGateway.ts","../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubOAuthFlow.ts","../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubSessionOperations.ts","../../../node_modules/%40ankhorage/auth-github/src/features/auth/adapters/github/createGitHubAuthAdapter.ts","../../../src/features/github-auth/adapters/inbound/next/createGitHubAuthCookieStores.ts","../../../src/features/github-auth/adapters/inbound/next/githubAuthCookies.ts","../../../src/features/github-auth/application/githubAuthConfiguration.ts","../../../src/features/github-auth/composition/createGitHubAuthAdapterAsync.ts"],"sourcesContent":["import type { AuthSession, AuthUser } from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig } from '../../../../types/github.js';\n\nconst TOKEN_URL = 'https://github.com/login/oauth/access_token';\nconst USER_URL = 'https://api.github.com/user';\n\n/*** Bind the confidential GitHub user-token exchange and refresh to a fixed provider endpoint. */\nexport function createGitHubOAuthGateway(config: GitHubAuthConfig) {\n return {\n exchangeCodeAsync: (code: string, redirectUri: string) =>\n readSessionAsync(config, { code, redirect_uri: redirectUri }),\n refreshTokenAsync: (refreshToken: string, expectedUserId: string) =>\n readSessionAsync(\n config,\n { grant_type: 'refresh_token', refresh_token: refreshToken },\n expectedUserId,\n ),\n };\n}\n\n/*** Exchange a GitHub user token and verify that it matches the expected identity when refreshing. */\nasync function readSessionAsync(\n config: GitHubAuthConfig,\n parameters: Readonly<Record<string, string>>,\n expectedUserId?: string,\n): Promise<AuthSession> {\n const body = new URLSearchParams({\n client_id: config.clientId,\n client_secret: config.clientSecret,\n ...parameters,\n });\n const response = await (config.fetcher ?? fetch)(TOKEN_URL, {\n method: 'POST',\n redirect: 'error',\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n body,\n signal: AbortSignal.timeout(config.requestTimeoutMs ?? 15_000),\n });\n if (!response.ok) throw new Error('GitHub token exchange failed.');\n const value: unknown = await response.json();\n const token = readToken(value);\n const user = await readUserAsync(config, token.accessToken);\n if (expectedUserId !== undefined && user.id !== expectedUserId)\n throw new Error('GitHub identity changed during token refresh.');\n return {\n accessToken: token.accessToken,\n ...(token.refreshToken === undefined ? {} : { refreshToken: token.refreshToken }),\n ...(token.expiresIn === undefined\n ? {}\n : { expiresAt: (config.now ?? Date.now)() + token.expiresIn * 1_000 }),\n tokenType: 'bearer',\n user,\n };\n}\n\n/*** Request the authoritative GitHub user for this token rather than trusting account hints. */\nasync function readUserAsync(config: GitHubAuthConfig, token: string): Promise<AuthUser> {\n const response = await (config.fetcher ?? fetch)(USER_URL, {\n method: 'GET',\n redirect: 'error',\n headers: {\n Accept: 'application/vnd.github+json',\n Authorization: 'Bearer ' + token,\n 'X-GitHub-Api-Version': '2022-11-28',\n },\n signal: AbortSignal.timeout(config.requestTimeoutMs ?? 15_000),\n });\n if (!response.ok) throw new Error('GitHub identity verification failed.');\n const value: unknown = await response.json();\n if (!isValidGitHubUser(value)) throw new Error('GitHub returned an invalid user identity.');\n return {\n id: String(value.id),\n username: value.login,\n ...(typeof value.name === 'string' && value.name.trim() !== ''\n ? { displayName: value.name }\n : {}),\n ...(typeof value.email === 'string' && value.email.trim() !== '' ? { email: value.email } : {}),\n ...(typeof value.avatar_url === 'string' && value.avatar_url.startsWith('https://')\n ? { avatarUrl: value.avatar_url }\n : {}),\n };\n}\n\n/*** Reject non-bearer, malformed, missing or nonexpiring-looking GitHub OAuth responses. */\nfunction readToken(value: unknown): {\n readonly accessToken: string;\n readonly refreshToken?: string;\n readonly expiresIn?: number;\n} {\n if (\n !isRecord(value) ||\n !hasValidAccessToken(value) ||\n !hasValidTokenType(value) ||\n !hasValidRefreshToken(value) ||\n !hasValidTokenExpiration(value)\n )\n throw new Error('GitHub returned an invalid token response.');\n return {\n accessToken: value.access_token,\n ...(typeof value.refresh_token === 'string' ? { refreshToken: value.refresh_token } : {}),\n ...(typeof value.expires_in === 'number' ? { expiresIn: value.expires_in } : {}),\n };\n}\n\n/*** Validate the signed-in GitHub account's stable numeric identity and login. */\nfunction isValidGitHubUser(value: unknown): value is GitHubUserRecord {\n return (\n isRecord(value) &&\n typeof value.id === 'number' &&\n Number.isSafeInteger(value.id) &&\n value.id > 0 &&\n typeof value.login === 'string' &&\n value.login.trim() !== ''\n );\n}\n\ninterface GitHubUserRecord extends Record<string, unknown> {\n id: number;\n login: string;\n}\n\n/*** Require a non-empty opaque OAuth access token. */\nfunction hasValidAccessToken(\n value: Record<string, unknown>,\n): value is Record<string, unknown> & { access_token: string } {\n return typeof value.access_token === 'string' && value.access_token.length > 0;\n}\n\n/*** Only accept a bearer token when GitHub states a token type. */\nfunction hasValidTokenType(value: Record<string, unknown>): boolean {\n return (\n value.token_type === undefined ||\n (typeof value.token_type === 'string' && value.token_type.toLowerCase() === 'bearer')\n );\n}\n\n/*** Reject refresh credentials of unexpected provider data types. */\nfunction hasValidRefreshToken(value: Record<string, unknown>): boolean {\n return (\n value.refresh_token === undefined ||\n (typeof value.refresh_token === 'string' && value.refresh_token.length > 0)\n );\n}\n\n/*** Accept optional positive integer GitHub access-token lifetimes. */\nfunction hasValidTokenExpiration(value: Record<string, unknown>): boolean {\n return (\n value.expires_in === undefined ||\n (typeof value.expires_in === 'number' &&\n Number.isSafeInteger(value.expires_in) &&\n value.expires_in > 0)\n );\n}\n\n/*** Narrow untrusted provider JSON before inspecting its fields. */\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport type {\n AuthOAuthCompletionResult,\n AuthOAuthError,\n AuthOAuthStartResult,\n CompleteOAuthAuthorizationInput,\n StartOAuthAuthorizationInput,\n} from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig, GitHubAuthorizationAttempt } from '../../../../types/github.js';\nimport { createGitHubOAuthGateway } from './createGitHubOAuthGateway.js';\n\nconst DEFAULT_TTL_MS = 600_000;\n\n/*** Provide OAuth start/completion using durable one-use attempts and verified GitHub identity. */\nexport function createGitHubOAuthFlow(\n config: GitHubAuthConfig,\n): Pick<AuthPort, 'startAuthorization' | 'completeAuthorization'> {\n return {\n startAuthorization: (input) => startAuthorizationAsync(config, input),\n completeAuthorization: (input) => completeAuthorizationAsync(config, input),\n };\n}\n\n/*** Verify the provider, callback, and requested permissions before storing a new attempt. */\nasync function startAuthorizationAsync(\n config: GitHubAuthConfig,\n input: StartOAuthAuthorizationInput,\n): Promise<AuthOAuthStartResult> {\n if (input.provider !== 'github')\n return oauthStartError('provider_disabled', 'GitHub is the only supported provider.');\n if (!config.redirectUris.includes(input.redirectUri))\n return oauthStartError('invalid_redirect_uri', 'The callback URL is not allowlisted.');\n if (\n !hasSupportedScopes(config, input.scopes) ||\n (input.queryParams !== undefined && Object.keys(input.queryParams).length > 0)\n )\n return oauthStartError(\n 'authorization_failed',\n 'Unsupported GitHub App authorization parameters.',\n );\n\n const attempt: GitHubAuthorizationAttempt = {\n attemptId: createOpaqueValue(config.createAttemptId),\n state: createOpaqueValue(config.createState),\n redirectUri: input.redirectUri,\n expiresAt: (config.now ?? Date.now)() + (config.authorizationAttemptTtlMs ?? DEFAULT_TTL_MS),\n };\n try {\n await config.authorizationAttempts.purgeExpired((config.now ?? Date.now)());\n await config.authorizationAttempts.create(attempt);\n return {\n ok: true,\n data: {\n attemptId: attempt.attemptId,\n provider: 'github',\n redirectUri: attempt.redirectUri,\n authorizationUrl: createAuthorizationUrl(config.clientId, attempt, input.scopes),\n },\n };\n } catch {\n return oauthStartError('authorization_failed', 'Unable to start GitHub authorization.');\n }\n}\n\n/*** Generate host-overridable opaque OAuth values without detaching the platform Crypto receiver. */\nfunction createOpaqueValue(factory: (() => string) | undefined): string {\n return factory?.() ?? crypto.randomUUID();\n}\n\n/*** Restrict each GitHub authorization protocol to its documented, least-privilege scope vocabulary. */\nfunction hasSupportedScopes(\n config: GitHubAuthConfig,\n scopes: readonly string[] | undefined,\n): boolean {\n const permittedScopes =\n config.authorizationMode === 'oauth-app' ? ['read:user', 'repo'] : ['offline_access'];\n if (scopes === undefined) return config.authorizationMode === 'github-app';\n const uniqueScopes = new Set(scopes);\n return (\n uniqueScopes.size === scopes.length &&\n scopes.every((scope) => permittedScopes.includes(scope)) &&\n (config.authorizationMode === 'github-app' || uniqueScopes.has('read:user'))\n );\n}\n\n/*** Construct GitHub's fixed OAuth endpoint without accepting arbitrary caller query parameters. */\nfunction createAuthorizationUrl(\n clientId: string,\n attempt: GitHubAuthorizationAttempt,\n scopes: readonly string[] | undefined,\n): string {\n const url = new URL('https://github.com/login/oauth/authorize');\n url.searchParams.set('client_id', clientId);\n url.searchParams.set('redirect_uri', attempt.redirectUri);\n url.searchParams.set('state', attempt.state);\n if (scopes && scopes.length > 0) url.searchParams.set('scope', scopes.join(' '));\n return url.toString();\n}\n\n/*** Consume the OAuth attempt before validation and persist only verified GitHub sessions. */\nasync function completeAuthorizationAsync(\n config: GitHubAuthConfig,\n input: CompleteOAuthAuthorizationInput,\n): Promise<AuthOAuthCompletionResult> {\n const attempt = await consumeAttemptAsync(config, input.attemptId);\n if (attempt === null) return oauthError('authorization_attempt_not_found', 'callback');\n if (input.response.type === 'cancelled')\n return { ok: false, status: 'cancelled', provider: 'github', reason: input.response.reason };\n if (input.response.type === 'error') return oauthError('provider_error', 'transport');\n const callback = parseCallback(input.response.url, attempt.redirectUri);\n if (callback === null) return oauthError('invalid_callback', 'callback');\n if (callback.state !== attempt.state) return oauthError('state_mismatch', 'callback');\n if (callback.error === 'access_denied')\n return { ok: false, status: 'cancelled', provider: 'github', reason: 'provider_denied' };\n if (callback.error !== undefined) return oauthError('provider_error', 'callback');\n if (callback.code === undefined) return oauthError('invalid_callback', 'callback');\n try {\n const gateway = createGitHubOAuthGateway(config);\n const session = await gateway.exchangeCodeAsync(callback.code, attempt.redirectUri);\n try {\n await config.sessions.save(session);\n } catch {\n return oauthError('session_persistence_failed', 'session');\n }\n return { ok: true, status: 'authenticated', provider: 'github', session };\n } catch {\n return oauthError('code_exchange_failed', 'exchange');\n }\n}\n\n/*** Retire the pending authorization even when storage fails or the attempt is expired. */\nasync function consumeAttemptAsync(\n config: GitHubAuthConfig,\n attemptId: string,\n): Promise<GitHubAuthorizationAttempt | null> {\n try {\n return await config.authorizationAttempts.consume(attemptId, (config.now ?? Date.now)());\n } catch {\n return null;\n }\n}\n\n/*** Bind a callback to its configured HTTPS origin/path and a single OAuth state value. */\nfunction parseCallback(\n urlText: string,\n redirectUri: string,\n): { readonly state: string; readonly code?: string; readonly error?: string } | null {\n try {\n const actual = new URL(urlText);\n const expected = new URL(redirectUri);\n if (\n actual.origin !== expected.origin ||\n actual.pathname !== expected.pathname ||\n actual.hash !== '' ||\n actual.searchParams.getAll('state').length !== 1 ||\n actual.searchParams.getAll('code').length > 1 ||\n actual.searchParams.getAll('error').length > 1\n )\n return null;\n const state = actual.searchParams.get('state');\n if (!state) return null;\n const code = actual.searchParams.get('code');\n const error = actual.searchParams.get('error');\n return { state, ...(code ? { code } : {}), ...(error ? { error } : {}) };\n } catch {\n return null;\n }\n}\n\n/*** Return contract-compatible OAuth failures without raw codes, tokens, or provider payloads. */\nfunction oauthError(\n code: AuthOAuthError['code'],\n stage: AuthOAuthError['stage'],\n): AuthOAuthCompletionResult {\n return {\n ok: false,\n status: 'error',\n error: {\n code,\n stage,\n provider: 'github',\n recoverable: false,\n message: 'GitHub authorization failed.',\n },\n };\n}\n\n/*** Refuse incorrect provider setup with a portable, nonsecret OAuth start result. */\nfunction oauthStartError(code: AuthOAuthError['code'], message: string): AuthOAuthStartResult {\n return {\n ok: false,\n error: {\n code,\n message,\n stage: 'start',\n provider: 'github',\n recoverable: false,\n },\n };\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport type { AuthResult, AuthSession, SignOutInput } from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig } from '../../../../types/github.js';\nimport { createGitHubOAuthGateway } from './createGitHubOAuthGateway.js';\n\n/*** Bind session-related AuthPort operations to a request-scoped durable host store. */\nexport function createGitHubSessionOperations(\n config: GitHubAuthConfig,\n): Pick<AuthPort, 'signOut' | 'getSession' | 'refreshSession'> {\n const gateway = createGitHubOAuthGateway(config);\n return {\n signOut: (input) => signOutAsync(config, input),\n getSession: () => getSessionAsync(config),\n refreshSession: () => refreshSessionAsync(config, gateway),\n };\n}\n\n/*** Remove only the host's local session; never claim global GitHub sign-out. */\nasync function signOutAsync(config: GitHubAuthConfig, input?: SignOutInput): Promise<AuthResult> {\n if (input?.allDevices)\n return {\n ok: false,\n error: { code: 'unsupported_operation', message: 'Global sign-out is not supported.' },\n };\n try {\n await config.sessions.clear();\n return { ok: true };\n } catch {\n return sessionError('Unable to end the local session.');\n }\n}\n\n/*** Read the stored session without silently treating expired tokens as authenticated. */\nasync function getSessionAsync(config: GitHubAuthConfig): Promise<AuthResult<AuthSession | null>> {\n try {\n const session = await config.sessions.get();\n const expired =\n session?.expiresAt !== undefined && session.expiresAt <= (config.now ?? Date.now)();\n return { ok: true, data: expired ? null : session };\n } catch {\n return sessionError('Unable to read the local session.');\n }\n}\n\n/*** Refresh a token and fail closed if GitHub returns another user identity. */\nasync function refreshSessionAsync(\n config: GitHubAuthConfig,\n gateway: ReturnType<typeof createGitHubOAuthGateway>,\n): Promise<AuthResult<AuthSession | null>> {\n try {\n const session = await config.sessions.get();\n if (session === null) return { ok: true, data: null };\n if (!session.refreshToken) {\n return session.expiresAt === undefined || session.expiresAt > (config.now ?? Date.now)()\n ? { ok: true, data: session }\n : sessionError('GitHub authorization has expired.');\n }\n const refreshed = await gateway.refreshTokenAsync(session.refreshToken, session.user.id);\n await config.sessions.save(refreshed);\n return { ok: true, data: refreshed };\n } catch {\n return sessionError('GitHub session refresh failed.');\n }\n}\n\n/*** Normalize session failures without exposing secrets from storage or GitHub. */\nfunction sessionError<T>(message: string): AuthResult<T> {\n return { ok: false, error: { code: 'invalid_session', message } };\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport type { AuthResult, AuthSession, AuthUser } from '@ankhorage/contracts/auth';\n\nimport type { GitHubAuthConfig } from '../../../../types/github.js';\nimport { createGitHubOAuthFlow } from './createGitHubOAuthFlow.js';\nimport { createGitHubSessionOperations } from './createGitHubSessionOperations.js';\n\n/*** Implement the published AuthPort with GitHub OAuth and explicitly unsupported credentials operations. */\nexport function createGitHubAuthAdapter(config: GitHubAuthConfig): AuthPort {\n validateConfig(config);\n return {\n ...createGitHubSessionOperations(config),\n ...createGitHubOAuthFlow(config),\n signIn: () => Promise.resolve(unsupported<AuthSession>()),\n signUp: () => Promise.resolve(unsupported<AuthSession | AuthUser>()),\n requestPasswordReset: () => Promise.resolve(unsupported<void>()),\n verifyOtp: () => Promise.resolve(unsupported<AuthSession>()),\n };\n}\n\n/*** Refuse configuration with secrets missing or callbacks that cannot be trusted. */\nfunction validateConfig(config: GitHubAuthConfig): void {\n if (\n !config.clientId.trim() ||\n !config.clientSecret.trim() ||\n config.redirectUris.length === 0 ||\n !isOptionalPositiveInteger(config.authorizationAttemptTtlMs) ||\n !isOptionalPositiveInteger(config.requestTimeoutMs)\n )\n throw new Error('Invalid GitHub App authorization configuration.');\n if (!config.redirectUris.every(isSecureRedirectUri))\n throw new Error('GitHub OAuth callback URLs must be explicitly allowlisted HTTPS URLs.');\n}\n\n/*** Validate an optional positive integer without bloating the adapter configuration policy. */\nfunction isOptionalPositiveInteger(value: number | undefined): boolean {\n return value === undefined || (Number.isSafeInteger(value) && value > 0);\n}\n\n/*** Require exact canonical HTTPS callback URIs without embedded credentials or query data. */\nfunction isSecureRedirectUri(value: string): boolean {\n try {\n const url = new URL(value);\n return (\n url.protocol === 'https:' &&\n !url.username &&\n !url.password &&\n !url.search &&\n !url.hash &&\n url.toString() === value\n );\n } catch {\n return false;\n }\n}\n\n/*** Make unsupported provider operations fail closed rather than simulate successful auth. */\nfunction unsupported<T>(): AuthResult<T> {\n return {\n ok: false,\n error: { code: 'unsupported_operation', message: 'GitHub uses browser authorization.' },\n };\n}\n","import type {\n GitHubAuthorizationAttempt,\n GitHubAuthorizationAttemptStore,\n GitHubSessionStore,\n} from '@ankhorage/auth-github';\nimport type { AuthSession } from '@ankhorage/contracts/auth';\n\n/*** Adapt one request's encrypted cookie values to the published GitHub adapter stores without introducing a provider-specific OAuth flow. */\nexport function createGitHubAuthCookieStores(\n input: GitHubAuthCookieStoreInput\n): GitHubAuthCookieStores {\n let { authorizationAttempt, session } = input;\n return {\n authorizationAttempts: {\n create: attempt => {\n if (authorizationAttempt !== undefined)\n throw new Error('GitHub authorization attempt exists.');\n authorizationAttempt = attempt;\n return Promise.resolve();\n },\n consume: (attemptId, now) => {\n const candidate = authorizationAttempt;\n authorizationAttempt = undefined;\n return Promise.resolve(\n candidate?.attemptId === attemptId && candidate.expiresAt > now ? candidate : null\n );\n },\n purgeExpired: now => {\n if (authorizationAttempt !== undefined && authorizationAttempt.expiresAt <= now)\n authorizationAttempt = undefined;\n return Promise.resolve();\n },\n },\n readAuthorizationAttempt: () => authorizationAttempt,\n sessions: {\n clear: () => {\n session = undefined;\n return Promise.resolve();\n },\n get: () => Promise.resolve(session ?? null),\n save: nextSession => {\n session = nextSession;\n return Promise.resolve();\n },\n },\n };\n}\n\ninterface GitHubAuthCookieStoreInput {\n readonly authorizationAttempt?: GitHubAuthorizationAttempt;\n readonly session?: AuthSession;\n}\n\ninterface GitHubAuthCookieStores {\n readonly authorizationAttempts: GitHubAuthorizationAttemptStore;\n readonly readAuthorizationAttempt: () => GitHubAuthorizationAttempt | undefined;\n readonly sessions: GitHubSessionStore;\n}\n","import { createCipheriv, createDecipheriv, randomBytes } from 'node:crypto';\n\nimport type { GitHubAuthorizationAttempt } from '@ankhorage/auth-github';\nimport type { AuthSession } from '@ankhorage/contracts/auth';\nimport type { ResponseCookies } from 'next/dist/server/web/spec-extension/cookies';\n\n/*** Keep GitHub credentials encrypted and authenticated in host-only browser cookies. */\nconst githubAuthCookieNames = {\n attempt: '__Host-atlas-github-attempt',\n session: '__Host-atlas-github-session',\n} as const;\n\n/*** Store a short-lived OAuth attempt so the callback state is bound to the initiating browser. */\nexport function setGitHubAuthAttemptCookie(\n attempt: GitHubAuthorizationAttempt,\n cookies: ResponseCookies\n): void {\n cookies.set(githubAuthCookieNames.attempt, sealCookieValue(attempt, 'attempt'), {\n ...cookieOptions(),\n maxAge: Math.max(1, Math.ceil((attempt.expiresAt - Date.now()) / 1_000)),\n });\n}\n\n/*** Store a locally bounded GitHub session; provider tokens never appear in readable browser storage. */\nexport function setGitHubAuthSessionCookie(session: AuthSession, cookies: ResponseCookies): void {\n const expiresAt = Math.min(session.expiresAt ?? Number.MAX_SAFE_INTEGER, Date.now() + 28_800_000);\n const boundedSession = { ...session, expiresAt };\n cookies.set(githubAuthCookieNames.session, sealCookieValue(boundedSession, 'session'), {\n ...cookieOptions(),\n maxAge: Math.max(1, Math.ceil((expiresAt - Date.now()) / 1_000)),\n });\n}\n\n/*** Remove transient authorization state after a callback, whether it succeeded or failed. */\nexport function clearGitHubAuthAttemptCookie(cookies: ResponseCookies): void {\n cookies.delete(githubAuthCookieNames.attempt);\n}\n\n/*** Remove the opaque local session after the adapter revokes its stored credentials. */\nexport function clearGitHubAuthSessionCookie(cookies: ResponseCookies): void {\n cookies.delete(githubAuthCookieNames.session);\n}\n\n/*** Use host-only, HTTPS, HttpOnly, SameSite cookies; no token ever enters browser-readable storage. */\nfunction cookieOptions() {\n return { httpOnly: true, path: '/', sameSite: 'lax' as const, secure: true };\n}\n\n/*** Decode a verified session only in a server route or server component. */\nexport function readGitHubAuthSession(cookieHeader: string | null): AuthSession | undefined {\n const session = readCookie(cookieHeader, githubAuthCookieNames.session);\n const opened =\n session === undefined ? undefined : openCookieValue<AuthSession>(session, 'session');\n return opened === undefined || isExpired(opened.expiresAt) ? undefined : opened;\n}\n\n/*** Decode a verified authorization attempt only for the OAuth callback. */\nexport function readGitHubAuthAttempt(\n cookieHeader: string | null\n): GitHubAuthorizationAttempt | undefined {\n const attempt = readCookie(cookieHeader, githubAuthCookieNames.attempt);\n const opened =\n attempt === undefined\n ? undefined\n : openCookieValue<GitHubAuthorizationAttempt>(attempt, 'attempt');\n return opened === undefined || isExpired(opened.expiresAt) ? undefined : opened;\n}\n\n/*** Report whether the deployment has a valid cookie key without exposing or deriving its value. */\nexport function hasGitHubAuthCookieEncryptionKey(): boolean {\n try {\n readEncryptionKey();\n return true;\n } catch {\n return false;\n }\n}\n\n/*** Encrypt and authenticate cookie content with the deployment-owned 256-bit key. */\nfunction sealCookieValue(value: unknown, purpose: 'attempt' | 'session'): string {\n const iv = randomBytes(12);\n const cipher = createCipheriv('aes-256-gcm', readEncryptionKey(), iv);\n cipher.setAAD(Buffer.from(`atlas-github-auth:${purpose}:v1`));\n const ciphertext = Buffer.concat([cipher.update(JSON.stringify(value), 'utf8'), cipher.final()]);\n return [iv, cipher.getAuthTag(), ciphertext].map(part => part.toString('base64url')).join('.');\n}\n\n/*** Reject malformed, tampered, or incorrectly purposed cookie values without revealing their content. */\nfunction openCookieValue<T>(value: string, purpose: 'attempt' | 'session'): T | undefined {\n try {\n const [iv, tag, ciphertext, ...unexpected] = value.split('.');\n if (unexpected.length > 0) return undefined;\n const decipher = createDecipheriv(\n 'aes-256-gcm',\n readEncryptionKey(),\n Buffer.from(iv, 'base64url')\n );\n decipher.setAAD(Buffer.from(`atlas-github-auth:${purpose}:v1`));\n decipher.setAuthTag(Buffer.from(tag, 'base64url'));\n return JSON.parse(\n Buffer.concat([\n decipher.update(Buffer.from(ciphertext, 'base64url')),\n decipher.final(),\n ]).toString('utf8')\n ) as T;\n } catch {\n return undefined;\n }\n}\n\n/*** Require a stable, server-only encryption key rather than falling back to plaintext or process memory. */\nfunction readEncryptionKey(): Buffer {\n const value = process.env.ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY;\n const key = value === undefined ? Buffer.alloc(0) : Buffer.from(value, 'base64');\n if (key.length !== 32 || key.toString('base64') !== value)\n throw new Error('ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY must be 32 Base64-encoded bytes.');\n return key;\n}\n\n/*** Reject locally expired sealed values even if a browser or attacker retains their cookie. */\nfunction isExpired(expiresAt: number | undefined): boolean {\n return expiresAt === undefined || !Number.isFinite(expiresAt) || expiresAt <= Date.now();\n}\n\n/*** Read only an exact host-owned cookie name. */\nfunction readCookie(cookieHeader: string | null, name: string): string | undefined {\n return cookieHeader?.match(new RegExp(`(?:^|;\\\\s*)${name}=([^;]+)`, 'u'))?.[1];\n}\n","/*** Keep the GitHub OAuth callback and requested permissions explicit and deployment-auditable. */\nexport const githubAuthConfiguration = {\n callbackUrl: 'https://atlas.ankhorage.com/api/auth/github/callback',\n publicScopes: ['read:user'],\n privateRepositoryScopes: ['read:user', 'repo'],\n} as const;\n\n/*** Select only the scopes the person explicitly consented to for this authorization attempt. */\nexport function githubAuthorizationScopes(privateRepositoryAccess: boolean): readonly string[] {\n return privateRepositoryAccess\n ? githubAuthConfiguration.privateRepositoryScopes\n : githubAuthConfiguration.publicScopes;\n}\n","import type { AuthPort } from '@ankhorage/auth';\nimport { createGitHubAuthAdapter, type GitHubAuthorizationAttempt } from '@ankhorage/auth-github';\nimport type { AuthSession } from '@ankhorage/contracts/auth';\n\nimport { createGitHubAuthCookieStores } from '@/features/github-auth/adapters/inbound/next/createGitHubAuthCookieStores';\nimport { hasGitHubAuthCookieEncryptionKey } from '@/features/github-auth/adapters/inbound/next/githubAuthCookies';\nimport { githubAuthConfiguration } from '@/features/github-auth/application/githubAuthConfiguration';\n\n/*** Compose the released GitHub adapter against request-scoped encrypted-cookie values. */\nexport function createGitHubAuthAdapterAsync(\n input: GitHubAuthAdapterInput = {}\n): Promise<GitHubAuthAdapterAvailability> {\n const configuration = readGitHubAuthEnvironment();\n if (configuration === null)\n return Promise.resolve({ available: false, message: 'GitHub sign-in is not configured.' });\n if (!hasGitHubAuthCookieEncryptionKey())\n return Promise.resolve({\n available: false,\n message: 'GitHub sign-in is temporarily unavailable.',\n });\n\n try {\n const stores = createGitHubAuthCookieStores(input);\n return Promise.resolve({\n adapter: createGitHubAuthAdapter({\n authorizationMode: 'oauth-app',\n authorizationAttempts: stores.authorizationAttempts,\n clientId: configuration.clientId,\n clientSecret: configuration.clientSecret,\n redirectUris: [githubAuthConfiguration.callbackUrl],\n sessions: stores.sessions,\n }),\n available: true,\n readAuthorizationAttempt: stores.readAuthorizationAttempt,\n });\n } catch {\n return Promise.resolve({\n available: false,\n message: 'GitHub sign-in is temporarily unavailable.',\n });\n }\n}\n\n/*** Read secrets only on the server and reject partial OAuth configuration rather than degrading to shared credentials. */\nfunction readGitHubAuthEnvironment(): GitHubAuthEnvironment | null {\n const clientId = process.env.ATLAS_GITHUB_OAUTH_CLIENT_ID;\n const clientSecret = process.env.ATLAS_GITHUB_OAUTH_CLIENT_SECRET;\n return clientId && clientSecret ? { clientId, clientSecret } : null;\n}\n\ninterface GitHubAuthEnvironment {\n readonly clientId: string;\n readonly clientSecret: string;\n}\n\nexport interface GitHubAuthAdapterInput {\n readonly authorizationAttempt?: GitHubAuthorizationAttempt;\n readonly session?: AuthSession;\n}\n\nexport type GitHubAuthAdapterAvailability =\n | {\n readonly adapter: AuthPort;\n readonly available: true;\n readonly readAuthorizationAttempt: () => GitHubAuthorizationAttempt | undefined;\n }\n | { readonly available: false; readonly message: string };\n"],"names":["expectedUserId","config","fetcher","headers","readUserAsync","accessToken","githubAuthCookieNames","attempt","session","setGitHubAuthAttemptCookie","cookies","set","sealCookieValue","cookieOptions","maxAge","Math","max","ceil","expiresAt","Date","now","setGitHubAuthSessionCookie","min","Number","MAX_SAFE_INTEGER","boundedSession","clearGitHubAuthAttemptCookie","delete","clearGitHubAuthSessionCookie","httpOnly","path","sameSite","secure","readGitHubAuthSession","cookieHeader","readCookie","opened","undefined","openCookieValue","isExpired","readGitHubAuthAttempt","hasGitHubAuthCookieEncryptionKey","readEncryptionKey","value","purpose","iv","cipher","setAAD","Buffer","from","ciphertext","concat","update","JSON","stringify","final","getAuthTag","map","part","toString","join","tag","unexpected","split","length","decipher","setAuthTag","parse","process","env","ATLAS_GITHUB_OAUTH_COOKIE_ENCRYPTION_KEY","key","alloc","Error","isFinite","name","match","RegExp","githubAuthConfiguration","callbackUrl","publicScopes","privateRepositoryScopes","githubAuthorizationScopes","privateRepositoryAccess","createGitHubAuthAdapterAsync","input","configuration","readGitHubAuthEnvironment","Promise","resolve","available","message","stores","adapter","authorizationMode","authorizationAttempts","clientId","clientSecret","redirectUris","sessions","readAuthorizationAttempt","ATLAS_GITHUB_OAUTH_CLIENT_ID","ATLAS_GITHUB_OAUTH_CLIENT_SECRET"],"mappings":"mkDAQyC,CAAwB,IEEhB,CAAC,CAAC,EFD1C,CACL,MGDY,YHCZ,CAAA,EAAkC,ECSN,EAAE,ADR5B,EAAiB,EEC2B,ADOe,ADRlC,CECoB,ADOqB,KDRvC,ECQyB,ADRnB,EAAF,UAAc,CAAE,CAAW,CAAE,CAAC,QAAH,WACzC,CAAC,CCQC,CDRqB,IACxC,CGFqC,CHGnC,EACA,CAAE,CCKoE,CAAd,AAAe,CDNjE,OACM,CAAE,eAAe,CAAE,aAAa,CAAE,CAAY,CAAE,CAC5D,SAD0D,KAC5C,CACf,MAML,CGR2B,AAAE,CHS7B,CGT6B,AHSe,CAAA,CGTP,AHSO,EAG5C,CERG,GFQG,ECEG,CAAA,GDFQ,gBAAA,WACJ,EAAO,IERC,AFQF,ACEK,IDFI,eACX,CCC2B,CDDpB,YAAY,CCEG,ADDrC,GAAG,CAAA,GAEC,EAAW,ECGT,IDHe,CAAC,EAAO,KCGG,EDHI,EAAI,KCGE,ED/B5B,CA4BiC,WG5BrB,EAAE,CDAC,ADMA,EAAE,ACNA,GCAG,GDAG,ADMA,sBDNsB,CAAC,AA4BF,EG5BI,CAAC,KDAK,ADMA,CCNC,ADMA,eDwB3D,iBAER,CCQG,MDRK,mBACR,eAAgB,4CAGlB,CCQG,MDRK,YAA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