@vectorize-io/hindsight-control-plane 0.6.1 → 0.6.2
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/package.json +3 -3
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/build-manifest.json +8 -8
- package/standalone/.next/prerender-manifest.json +3 -3
- package/standalone/.next/server/app/_global-error/page/build-manifest.json +5 -5
- package/standalone/.next/server/app/_global-error/page.js +7 -9
- package/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_global-error.html +1 -1
- package/standalone/.next/server/app/_global-error.rsc +7 -7
- package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
- package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +7 -7
- package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
- package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
- package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found/page/build-manifest.json +5 -5
- package/standalone/.next/server/app/_not-found/page.js +9 -11
- package/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_not-found.html +1 -1
- package/standalone/.next/server/app/_not-found.rsc +13 -13
- package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +13 -13
- package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +8 -8
- package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/standalone/.next/server/app/api/auth/login/route.js +4 -4
- package/standalone/.next/server/app/api/auth/login/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/auth/logout/route.js +4 -4
- package/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/audit-logs/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/audit-logs/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/audit-logs/stats/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/audit-logs/stats/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/config/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/config/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/consolidate/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/consolidate/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/consolidation-recover/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/consolidation-recover/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/directives/[directiveId]/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/directives/[directiveId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/directives/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/directives/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/export/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/export/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/import/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/import/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/[mentalModelId]/history/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/[mentalModelId]/history/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/[mentalModelId]/refresh/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/[mentalModelId]/refresh/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/[mentalModelId]/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/[mentalModelId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/mental-models/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/observations/[modelId]/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/observations/[modelId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/observations/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/observations/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/operations/[operationId]/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/operations/[operationId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/tags/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/tags/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/webhooks/[webhookId]/deliveries/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/webhooks/[webhookId]/deliveries/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/webhooks/[webhookId]/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/webhooks/[webhookId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/[bankId]/webhooks/route.js +4 -4
- package/standalone/.next/server/app/api/banks/[bankId]/webhooks/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/banks/route.js +4 -4
- package/standalone/.next/server/app/api/banks/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/chunks/[chunkId]/route.js +4 -4
- package/standalone/.next/server/app/api/chunks/[chunkId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/documents/[documentId]/chunks/route.js +4 -4
- package/standalone/.next/server/app/api/documents/[documentId]/chunks/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/documents/[documentId]/reprocess/route.js +4 -4
- package/standalone/.next/server/app/api/documents/[documentId]/reprocess/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/documents/[documentId]/route.js +4 -4
- package/standalone/.next/server/app/api/documents/[documentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/documents/route.js +4 -4
- package/standalone/.next/server/app/api/documents/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js +4 -4
- package/standalone/.next/server/app/api/entities/[entityId]/regenerate/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/entities/[entityId]/route.js +4 -4
- package/standalone/.next/server/app/api/entities/[entityId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/entities/graph/route.js +4 -4
- package/standalone/.next/server/app/api/entities/graph/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/entities/route.js +4 -4
- package/standalone/.next/server/app/api/entities/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/files/retain/route.js +4 -4
- package/standalone/.next/server/app/api/files/retain/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/graph/route.js +4 -4
- package/standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/health/route.js +4 -4
- package/standalone/.next/server/app/api/health/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/list/route.js +4 -4
- package/standalone/.next/server/app/api/list/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/memories/[memoryId]/history/route.js +4 -4
- package/standalone/.next/server/app/api/memories/[memoryId]/history/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/memories/[memoryId]/route.js +4 -4
- package/standalone/.next/server/app/api/memories/[memoryId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/memories/retain/route.js +4 -4
- package/standalone/.next/server/app/api/memories/retain/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/memories/retain_async/route.js +4 -4
- package/standalone/.next/server/app/api/memories/retain_async/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/operations/[agentId]/route.js +4 -4
- package/standalone/.next/server/app/api/operations/[agentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/profile/[bankId]/route.js +4 -4
- package/standalone/.next/server/app/api/profile/[bankId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/recall/route.js +4 -4
- package/standalone/.next/server/app/api/recall/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/reflect/route.js +4 -4
- package/standalone/.next/server/app/api/reflect/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/stats/[agentId]/memories-timeseries/route.js +4 -4
- package/standalone/.next/server/app/api/stats/[agentId]/memories-timeseries/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/stats/[agentId]/route.js +4 -4
- package/standalone/.next/server/app/api/stats/[agentId]/route.js.nft.json +1 -1
- package/standalone/.next/server/app/api/version/route.js +4 -4
- package/standalone/.next/server/app/api/version/route.js.nft.json +1 -1
- package/standalone/.next/server/app/banks/[bankId]/page/build-manifest.json +5 -5
- package/standalone/.next/server/app/banks/[bankId]/page.js +10 -12
- package/standalone/.next/server/app/banks/[bankId]/page.js.nft.json +1 -1
- package/standalone/.next/server/app/banks/[bankId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/dashboard/page/build-manifest.json +5 -5
- package/standalone/.next/server/app/dashboard/page.js +10 -12
- package/standalone/.next/server/app/dashboard/page.js.nft.json +1 -1
- package/standalone/.next/server/app/dashboard/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/dashboard.html +1 -1
- package/standalone/.next/server/app/dashboard.rsc +15 -15
- package/standalone/.next/server/app/dashboard.segments/_full.segment.rsc +15 -15
- package/standalone/.next/server/app/dashboard.segments/_head.segment.rsc +4 -4
- package/standalone/.next/server/app/dashboard.segments/_index.segment.rsc +8 -8
- package/standalone/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/standalone/.next/server/app/dashboard.segments/dashboard/__PAGE__.segment.rsc +4 -4
- package/standalone/.next/server/app/dashboard.segments/dashboard.segment.rsc +3 -3
- package/standalone/.next/server/app/index.html +1 -1
- package/standalone/.next/server/app/index.rsc +13 -13
- package/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/standalone/.next/server/app/index.segments/_full.segment.rsc +13 -13
- package/standalone/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/standalone/.next/server/app/index.segments/_index.segment.rsc +8 -8
- package/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/standalone/.next/server/app/login/page/build-manifest.json +5 -5
- package/standalone/.next/server/app/login/page.js +10 -12
- package/standalone/.next/server/app/login/page.js.nft.json +1 -1
- package/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/login.html +1 -1
- package/standalone/.next/server/app/login.rsc +15 -15
- package/standalone/.next/server/app/login.segments/_full.segment.rsc +15 -15
- package/standalone/.next/server/app/login.segments/_head.segment.rsc +4 -4
- package/standalone/.next/server/app/login.segments/_index.segment.rsc +8 -8
- package/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/standalone/.next/server/app/login.segments/login.segment.rsc +3 -3
- package/standalone/.next/server/app/page/build-manifest.json +5 -5
- package/standalone/.next/server/app/page.js +11 -13
- package/standalone/.next/server/app/page.js.nft.json +1 -1
- package/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/chunks/[root-of-the-server]__0-19xx0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0-ensby._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0-ykzc0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0.agsak._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0.i626k._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__00i3o1z._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__02nwakm._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__045is_g._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__05-gqwe._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__08tjq.i._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__09o6ecb._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0_522se._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0_lg09a._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0_lq~dt._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0_nmf28._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0c34es9._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0dm~zm5._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0dqqhi5._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0g-k5nf._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0g6ttz_._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0h-un1o._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0i_ddhv._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ib~g6h._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ih88nb._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0j21skf._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0jkvo~~._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0jukxf0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0kfe-s3._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0kpvc5m._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0lxho.q._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0mbqcjv._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0nglzhr._.js +13 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ow3d9r._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0qhbr0h._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0qlh00e._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0qn6ojb._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0qxre7i._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0rldm53._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0ugd9zh._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0w48xj-._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0wdo5wh._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0wtx8ox._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0w~~_ar._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__0x~pclg._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__10vi3mt._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__11doxv0._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__11ulkfa._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__134m13c._.js +3 -0
- package/standalone/.next/server/chunks/[root-of-the-server]__13jqxg3._.js +3 -0
- package/standalone/.next/server/chunks/hindsight-control-plane_src_lib_hindsight-client_ts_08a51-e._.js +1 -1
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0146r~c._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__03krood._.js +11 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0b3~l7~._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0bt.mb5._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0cbmrds._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0din_f4._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0i1yiyh._.js +3 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0l5r-52._.js +19 -0
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0tcyn68._.js +33 -0
- package/standalone/.next/server/chunks/ssr/{[root-of-the-server]__07.c_7l._.js → [root-of-the-server]__0~c-ivw._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__13dmc~7._.js +3 -0
- package/standalone/.next/server/chunks/ssr/_08qed-e._.js +1 -1
- package/standalone/.next/server/chunks/ssr/{hindsight-control-plane_0s.~bje._.js → _0__8juh._.js} +4 -4
- package/standalone/.next/server/chunks/ssr/_0k_-~3d._.js +6 -0
- package/standalone/.next/server/chunks/ssr/_0mh~vnk._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0q3l4f0._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0xgpb1t._.js +1 -1
- package/standalone/.next/server/chunks/ssr/hindsight-control-plane_src_0ki2hlw._.js +1 -1
- package/standalone/.next/server/chunks/ssr/hindsight-control-plane_src_components_bank-selector_tsx_06fpcdx._.js +2 -2
- package/standalone/.next/server/chunks/ssr/{_10tj6yd._.js → node_modules_09w7yel._.js} +3 -3
- package/standalone/.next/server/chunks/ssr/node_modules_0g2b~5_._.js +6 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js +6 -0
- package/standalone/.next/server/chunks/ssr/{0xqq_next_dist_client_components_0qccfea._.js → node_modules_next_dist_client_components_0inhx6q._.js} +2 -2
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +3 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0it2daa.js +4 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0rc3ul_.js +4 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0rgz5sc.js +4 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0vji4h-.js +4 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0~l7yql.js +4 -0
- package/standalone/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_127zk4f.js +4 -0
- package/standalone/.next/server/edge/chunks/[root-of-the-server]__032ign5._.js +11 -0
- package/standalone/.next/server/edge/chunks/_078chv~._.js +3 -0
- package/standalone/.next/server/edge/chunks/node_modules_next_dist_esm_build_templates_edge-wrapper_04.8.xv.js +3 -0
- package/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_0q-a.hc.js +3 -0
- package/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_0z67sut.js +3 -0
- package/standalone/.next/server/middleware-build-manifest.js +8 -8
- package/standalone/.next/server/middleware-manifest.json +12 -12
- package/standalone/.next/server/pages/404.html +1 -1
- package/standalone/.next/server/pages/500.html +1 -1
- package/standalone/.next/server/server-reference-manifest.js +1 -1
- package/standalone/.next/server/server-reference-manifest.json +1 -1
- package/standalone/.next/static/chunks/01jfwizpstpzt.js +2 -0
- package/standalone/.next/static/chunks/{0fe.wql6.w4gs.js → 01xlw8hd842-c.js} +1 -1
- package/standalone/.next/static/chunks/02_um6l2wp~ls.css +2 -0
- package/standalone/.next/static/chunks/063f4u.4z~v2d.js +1 -0
- package/standalone/.next/static/chunks/{0t4x0.c8~-jkd.js → 0_nsfh~bkidtn.js} +1 -1
- package/standalone/.next/static/chunks/0bno0116cz1js.js +5 -0
- package/standalone/.next/static/chunks/{0vmyuepchjdz3.js → 0cvc2q7n4bgin.js} +1 -1
- package/standalone/.next/static/chunks/0k8fcq_tsf70-.js +4 -0
- package/standalone/.next/static/chunks/0roluhgciupg2.js +1 -0
- package/standalone/.next/static/chunks/0tzc13c.ie0tr.js +1 -0
- package/standalone/.next/static/chunks/0vk1nrxcez~j0.js +1 -0
- package/standalone/.next/static/chunks/0xe7gt3~du.d0.js +1 -0
- package/standalone/.next/static/chunks/0~6rybudzzg2n.js +3 -0
- package/standalone/.next/static/chunks/1448x0i8f6_ty.js +9 -0
- package/standalone/.next/static/chunks/172kko93lglzd.js +31 -0
- package/standalone/.next/static/chunks/turbopack-13c2vkonuuqnn.js +1 -0
- package/standalone/.next/static/{ivrhmmzua95PoZD_IAvpe → jjcyUHSdhXRM74rBGX4tQ}/_clientMiddlewareManifest.js +1 -1
- package/standalone/node_modules/@next/env/package.json +1 -1
- package/standalone/node_modules/next/dist/build/static-paths/app.js +2 -1
- package/standalone/node_modules/next/dist/build/swc/index.js +1 -1
- package/standalone/node_modules/next/dist/build/utils.js +2 -1
- package/standalone/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +2 -2
- package/standalone/node_modules/next/dist/client/components/router-reducer/set-cache-busting-search-param.js +8 -2
- package/standalone/node_modules/next/dist/client/route-params.js +23 -6
- package/standalone/node_modules/next/dist/compiled/jsonwebtoken/index.js +2 -2
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +13 -13
- package/standalone/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +11 -11
- package/standalone/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.prod.js +2 -2
- package/standalone/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +10 -10
- package/standalone/node_modules/next/dist/lib/metadata/resolve-metadata.js +2 -4
- package/standalone/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
- package/standalone/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +80 -0
- package/standalone/node_modules/next/dist/lib/typescript/writeConfigurationDefaults.js +24 -20
- package/standalone/node_modules/next/dist/server/app-render/action-handler.js +3 -6
- package/standalone/node_modules/next/dist/server/app-render/app-render.js +62 -9
- package/standalone/node_modules/next/dist/server/app-render/collect-segment-data.js +16 -0
- package/standalone/node_modules/next/dist/server/app-render/create-component-tree.js +49 -19
- package/standalone/node_modules/next/dist/server/app-render/get-script-nonce-from-header.js +8 -20
- package/standalone/node_modules/next/dist/server/app-render/metadata-insertion/create-server-inserted-metadata.js +8 -7
- package/standalone/node_modules/next/dist/server/app-render/use-flight-response.js +2 -2
- package/standalone/node_modules/next/dist/server/async-storage/work-store.js +2 -1
- package/standalone/node_modules/next/dist/server/base-server.js +13 -5
- package/standalone/node_modules/next/dist/server/config-schema.js +11 -2
- package/standalone/node_modules/next/dist/server/config.js +1 -1
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +18 -16
- package/standalone/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/standalone/node_modules/next/dist/server/dev/static-paths-worker.js +2 -1
- package/standalone/node_modules/next/dist/server/image-optimizer.js +22 -2
- package/standalone/node_modules/next/dist/server/lib/app-info-log.js +1 -1
- package/standalone/node_modules/next/dist/server/lib/is-rsc-request.js +18 -0
- package/standalone/node_modules/next/dist/server/lib/mock-request.js +30 -5
- package/standalone/node_modules/next/dist/server/lib/patch-set-header.js +7 -0
- package/standalone/node_modules/next/dist/server/lib/router-server.js +20 -4
- package/standalone/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +18 -4
- package/standalone/node_modules/next/dist/server/lib/server-ipc/utils.js +3 -1
- package/standalone/node_modules/next/dist/server/lib/start-server.js +1 -1
- package/standalone/node_modules/next/dist/server/next-server.js +1 -1
- package/standalone/node_modules/next/dist/server/render.js +47 -39
- package/standalone/node_modules/next/dist/server/request/fallback-params.js +27 -1
- package/standalone/node_modules/next/dist/server/route-modules/app-route/module.js +26 -10
- package/standalone/node_modules/next/dist/server/route-modules/route-module.js +11 -1
- package/standalone/node_modules/next/dist/server/server-utils.js +19 -2
- package/standalone/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +5 -5
- package/standalone/node_modules/next/dist/server/use-cache/use-cache-wrapper.js +1 -1
- package/standalone/node_modules/next/dist/server/web/adapter.js +4 -1
- package/standalone/node_modules/next/dist/server/web/edge-route-module-wrapper.js +2 -1
- package/standalone/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
- package/standalone/node_modules/next/dist/{server → shared/lib}/htmlescape.js +15 -0
- package/standalone/node_modules/next/dist/shared/lib/router/routes/app.js +13 -1
- package/standalone/node_modules/next/dist/shared/lib/router/utils/cache-busting-search-param.js +56 -10
- package/standalone/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/standalone/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/standalone/node_modules/next/package.json +15 -15
- package/standalone/package.json +3 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0-mzq5k._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__006nmon._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__01qc.lt._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__03i9r24._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__04ov5nx._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0641809._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__072_7sg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__084.pvp._.js +0 -13
- package/standalone/.next/server/chunks/[root-of-the-server]__0_nif9x._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0_uq85o._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0bzczua._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0d~.2wu._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0e30_2-._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0estz38._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0f~qam_._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0h-01m.._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0h12w8h._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0hof.m7._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0i2otbg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0i8s1ez._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0idud4m._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0jbb41r._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0k5dzt7._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0m9skry._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0ob35wz._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0oqmwro._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0p518-s._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0q79ahg._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0q8qt00._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0rx61xd._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0s3k8sh._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0sfmlxb._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0sppjv6._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0t1c109._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0t8dn-e._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0tsjs49._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0wb10vh._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0xq~4xc._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0y.4qtn._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0z2j3hx._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0zvjpa~._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0zy9wud._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0~2--h0._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0~49ero._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__0~8b2h-._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__10koc90._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__10z2iah._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__12ww4dj._.js +0 -3
- package/standalone/.next/server/chunks/[root-of-the-server]__13ex1pi._.js +0 -3
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_0lz8ap0._.js +0 -6
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_0zdefg~._.js +0 -3
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_client_components_builtin_forbidden_0hqinps.js +0 -3
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_client_components_builtin_global-error_10_vrpd.js +0 -3
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_client_components_builtin_unauthorized_0ili.5_.js +0 -3
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_esm_build_templates_app-page_0aave80.js +0 -4
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_esm_build_templates_app-page_0cik78y.js +0 -4
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_esm_build_templates_app-page_0d4rgnj.js +0 -4
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_esm_build_templates_app-page_0fev1c9.js +0 -4
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_esm_build_templates_app-page_0kjoyj0.js +0 -4
- package/standalone/.next/server/chunks/ssr/0xqq_next_dist_esm_build_templates_app-page_0wtkrby.js +0 -4
- package/standalone/.next/server/chunks/ssr/[externals]_next_dist_shared_lib_no-fallback-error_external_0fgm~bn.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__00p0977._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__01gojj5._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__021w61p._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__09_g7l8._.js +0 -11
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0cuzey5._.js +0 -33
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0f1equb._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0huzohk._.js +0 -12
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0z9pk.d._.js +0 -3
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0~hnz..._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0dv_n64._.js +0 -3
- package/standalone/.next/server/chunks/ssr/_0srg9jo._.js +0 -6
- package/standalone/.next/server/chunks/ssr/hindsight-control-plane_092-e4h._.js +0 -6
- package/standalone/.next/server/edge/chunks/0rt3_next_dist_esm_build_templates_edge-wrapper_0bx.bt2.js +0 -3
- package/standalone/.next/server/edge/chunks/0rt3_next_dist_esm_build_templates_edge-wrapper_10yyufs.js +0 -3
- package/standalone/.next/server/edge/chunks/0xqq_next_dist_esm_build_templates_edge-wrapper_00.t9w_.js +0 -3
- package/standalone/.next/server/edge/chunks/[root-of-the-server]__03uqjvz._.js +0 -11
- package/standalone/.next/server/edge/chunks/hindsight-control-plane_0xz8f54._.js +0 -3
- package/standalone/.next/static/chunks/0.48ii2q-yie-.js +0 -3
- package/standalone/.next/static/chunks/04r-p7gk1lv_k.js +0 -2
- package/standalone/.next/static/chunks/08gsr4jnmyyhd.js +0 -1
- package/standalone/.next/static/chunks/0h3rkz9znn5s6.js +0 -31
- package/standalone/.next/static/chunks/0lwpzlu3p_37_.js +0 -1
- package/standalone/.next/static/chunks/0ow-v7.pf1_pu.js +0 -4
- package/standalone/.next/static/chunks/0oyxru0ka.5b8.js +0 -1
- package/standalone/.next/static/chunks/0rc788z.mdy14.js +0 -9
- package/standalone/.next/static/chunks/10tswg3m7bea9.css +0 -2
- package/standalone/.next/static/chunks/110o2cv22kme0.js +0 -1
- package/standalone/.next/static/chunks/11a0z_vz-~75n.js +0 -5
- package/standalone/.next/static/chunks/11h3.87w6dkf7.js +0 -1
- package/standalone/.next/static/chunks/turbopack-0z-lv4_4r7vzv.js +0 -1
- /package/standalone/.next/static/{ivrhmmzua95PoZD_IAvpe → jjcyUHSdhXRM74rBGX4tQ}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{ivrhmmzua95PoZD_IAvpe → jjcyUHSdhXRM74rBGX4tQ}/_ssgManifest.js +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/colour/color.cjs +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/colour/index.cjs +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/colour/package.json +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linux-x64/README.md +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linux-x64/lib/index.js +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linux-x64/package.json +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linux-x64/versions.json +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linuxmusl-x64/README.md +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linuxmusl-x64/lib/index.js +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linuxmusl-x64/package.json +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-libvips-linuxmusl-x64/versions.json +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-linux-x64/package.json +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- /package/standalone/node_modules/{node_modules/@img → @img}/sharp-linuxmusl-x64/package.json +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/api/context.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/api/diag.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/api/metrics.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/api/propagation.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/api/trace.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/baggage/context-helpers.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/baggage/internal/baggage-impl.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/baggage/internal/symbol.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/baggage/utils.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/context/NoopContextManager.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/context/context.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/context-api.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/diag/ComponentLogger.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/diag/consoleLogger.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/diag/internal/logLevelLogger.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/diag/types.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/diag-api.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/index.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/internal/global-utils.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/internal/semver.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/metrics/Metric.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/metrics/NoopMeter.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/metrics/NoopMeterProvider.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/metrics-api.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/platform/index.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/platform/node/globalThis.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/platform/node/index.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/propagation/NoopTextMapPropagator.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/propagation/TextMapPropagator.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/propagation-api.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/NonRecordingSpan.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/NoopTracer.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/NoopTracerProvider.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/ProxyTracer.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/ProxyTracerProvider.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/SamplingResult.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/context-utils.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/internal/tracestate-impl.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/internal/tracestate-validators.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/internal/utils.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/invalid-span-constants.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/span_kind.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/spancontext-utils.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/status.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace/trace_flags.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/trace-api.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/build/src/version.js +0 -0
- /package/standalone/node_modules/{node_modules/@opentelemetry → @opentelemetry}/api/package.json +0 -0
- /package/standalone/node_modules/{node_modules/@swc → @swc}/helpers/cjs/_interop_require_default.cjs +0 -0
- /package/standalone/node_modules/{node_modules/@swc → @swc}/helpers/cjs/_interop_require_wildcard.cjs +0 -0
- /package/standalone/node_modules/{node_modules/@swc → @swc}/helpers/package.json +0 -0
- /package/standalone/node_modules/{node_modules/client-only → client-only}/index.js +0 -0
- /package/standalone/node_modules/{node_modules/client-only → client-only}/package.json +0 -0
- /package/standalone/node_modules/{node_modules/detect-libc → detect-libc}/lib/detect-libc.js +0 -0
- /package/standalone/node_modules/{node_modules/detect-libc → detect-libc}/lib/elf.js +0 -0
- /package/standalone/node_modules/{node_modules/detect-libc → detect-libc}/lib/filesystem.js +0 -0
- /package/standalone/node_modules/{node_modules/detect-libc → detect-libc}/lib/process.js +0 -0
- /package/standalone/node_modules/{node_modules/detect-libc → detect-libc}/package.json +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/cjs/react-compiler-runtime.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/cjs/react-jsx-dev-runtime.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/cjs/react-jsx-runtime.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/cjs/react.development.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/cjs/react.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/compiler-runtime.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/index.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/jsx-dev-runtime.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/jsx-runtime.js +0 -0
- /package/standalone/node_modules/{node_modules/react → react}/package.json +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/cjs/react-dom-server-legacy.browser.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/cjs/react-dom-server-legacy.node.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/cjs/react-dom-server.browser.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/cjs/react-dom-server.edge.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/cjs/react-dom-server.node.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/cjs/react-dom.production.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/index.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/package.json +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/server.browser.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/server.edge.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/server.node.js +0 -0
- /package/standalone/node_modules/{node_modules/react-dom → react-dom}/static.node.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/classes/comparator.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/classes/range.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/classes/semver.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/cmp.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/coerce.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/compare.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/eq.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/gt.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/gte.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/lt.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/lte.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/neq.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/parse.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/functions/satisfies.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/internal/constants.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/internal/debug.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/internal/identifiers.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/internal/lrucache.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/internal/parse-options.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/internal/re.js +0 -0
- /package/standalone/node_modules/{node_modules/semver → semver}/package.json +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/channel.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/colour.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/composite.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/constructor.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/index.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/input.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/is.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/libvips.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/operation.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/output.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/resize.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/sharp.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/lib/utility.js +0 -0
- /package/standalone/node_modules/{node_modules/sharp → sharp}/package.json +0 -0
- /package/standalone/node_modules/{node_modules/styled-jsx → styled-jsx}/dist/index/index.js +0 -0
- /package/standalone/node_modules/{node_modules/styled-jsx → styled-jsx}/index.js +0 -0
- /package/standalone/node_modules/{node_modules/styled-jsx → styled-jsx}/package.json +0 -0
- /package/standalone/node_modules/{node_modules/styled-jsx → styled-jsx}/style.js +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},48737,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),v=e.i(93695);e.i(28825);var g=e.i(64694),f=e.i(39327),w=e.i(25134),E=e.i(27181);async function m(e,{params:t}){try{let{agentId:e}=await t,r=await E.sdk.getAgentStats({client:w.lowLevelClient,path:{bank_id:e}});return f.NextResponse.json(r.data,{status:200})}catch(e){return console.error("Error fetching stats:",e),f.NextResponse.json({error:"Failed to fetch stats"},{status:500})}}e.s(["GET",0,m],80502);var C=e.i(80502);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/stats/[agentId]/route",pathname:"/api/stats/[agentId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/stats/[agentId]/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:A,workUnitAsyncStorage:b,serverHooks:N}=y;async function T(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/stats/[agentId]/route";f=f.replace(/\/index$/,"")||"/";let w=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:m,nextConfig:C,parsedUrl:A,isDraftMode:b,prerenderManifest:N,routerServerContext:T,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:S,serverActionsManifest:_}=w,O=(0,i.normalizeAppPath)(f),I=!!(N.dynamicRoutes[O]||N.routes[q]),j=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!b){let e=!!N.routes[q],t=N.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await j();throw new v.NoFallbackError}}let H=null;!I||y.isDev||b||(H="/index"===(H=q)?"/":H);let U=!0===y.isDev||!I,M=I&&!U;_&&S&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:S,serverActionsManifest:_});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,N,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:m,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,T)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&P&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,T),t}},d=await y.handleResponse({req:e,nextConfig:C,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!I)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&I||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof v.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,T),I)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,T,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:b})},"routeModule",0,y,"serverHooks",0,N,"workAsyncStorage",0,A,"workUnitAsyncStorage",0,b],48737)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0e30_2-._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},93006,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),i=e.i(79722),o=e.i(43740),l=e.i(40344),d=e.i(66182),p=e.i(58682),u=e.i(48886),c=e.i(86573),h=e.i(3341),g=e.i(9629),x=e.i(64331),R=e.i(93695);e.i(28825);var v=e.i(64694),f=e.i(39327),w=e.i(25134);async function m(e){try{let t=e.nextUrl.searchParams,r=t.get("bank_id")||t.get("agent_id");if(!r)return f.NextResponse.json({error:"bank_id is required"},{status:400});let a=new URLSearchParams,n=t.get("type")||t.get("fact_type");n&&a.append("type",n);let s=t.get("limit");s&&a.append("limit",s);let i=t.get("q");i&&a.append("q",i);let o=t.getAll("tags");for(let e of o)a.append("tags",e);o.length>0&&a.append("tags_match","all_strict");let l=t.get("document_id");l&&a.append("document_id",l);let d=t.get("chunk_id");d&&a.append("chunk_id",d);let p=await fetch(`${w.DATAPLANE_URL}/v1/default/banks/${r}/graph?${a}`,{headers:(0,w.getDataplaneHeaders)()});if(!p.ok){let e=await p.json().catch(()=>({detail:p.statusText}));return f.NextResponse.json(e,{status:p.status})}let u=await p.json();return f.NextResponse.json(u,{status:200})}catch(e){return console.error("Error fetching graph data:",e),f.NextResponse.json({error:"Failed to fetch graph data"},{status:500})}}e.s(["GET",0,m],44154);var E=e.i(44154);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/graph/route",pathname:"/api/graph",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/graph/route.ts",nextConfigOutput:"standalone",userland:E}),{workAsyncStorage:C,workUnitAsyncStorage:A,serverHooks:_}=y;async function b(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/graph/route";f=f.replace(/\/index$/,"")||"/";let w=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:m,params:E,nextConfig:C,parsedUrl:A,isDraftMode:_,prerenderManifest:b,routerServerContext:N,isOnDemandRevalidate:T,revalidateOnlyGenerated:k,resolvedPathname:P,clientReferenceManifest:q,serverActionsManifest:j}=w,S=(0,o.normalizeAppPath)(f),O=!!(b.dynamicRoutes[S]||b.routes[P]),U=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,A,!1):t.end("This page could not be found"),null);if(O&&!_){let e=!!b.routes[P],t=b.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await U();throw new R.NoFallbackError}}let H=null;!O||y.isDev||_||(H="/index"===(H=P)?"/":H);let I=!0===y.isDev||!O,D=O&&!I;j&&q&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:q,serverActionsManifest:j});let M=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),L=!!(0,n.getRequestMeta)(e,"minimalMode"),B=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,b,L);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let G={params:E,previewProps:b.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:I,incrementalCache:B,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,N)},sharedContext:{buildId:m}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,i=async e=>y.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${M} ${f}`)}),o=async n=>{var s,o;let l=async({previousCacheEntry:r})=>{try{if(!L&&T&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[x.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,N),t}},d=await y.handleResponse({req:e,nextConfig:C,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:k,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:L});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let p=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return L&&O||p.delete(x.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||p.get("Cache-Control")||p.set("Cache-Control",(0,g.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:p,status:d.value.status||200})),null};K&&F?await o(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(p.BaseServerSpan.handleRequest,{spanName:`${M} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},o),void 0,!K))}catch(t){if(t instanceof R.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,u.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:T})},!1,N),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,b,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:A})},"routeModule",0,y,"serverHooks",0,_,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,A],93006)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0estz38._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},20679,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),m=e.i(93695);e.i(28825);var v=e.i(64694),f=e.i(39327),g=e.i(25134);async function y(e,{params:t}){try{let{memoryId:r}=await t,a=e.nextUrl.searchParams.get("bank_id");if(!a)return f.NextResponse.json({error:"bank_id is required"},{status:400});let n=await fetch((0,g.dataplaneBankUrl)(a,`/memories/${encodeURIComponent(r)}/history`),{method:"GET",headers:(0,g.getDataplaneHeaders)({"Content-Type":"application/json"})});if(!n.ok){if(404===n.status)return f.NextResponse.json({error:"Memory not found"},{status:404});throw Error(`API returned ${n.status}`)}let s=await n.json();return f.NextResponse.json(s,{status:200})}catch(e){return console.error("Error fetching observation history:",e),f.NextResponse.json({error:"Failed to fetch observation history"},{status:500})}}e.s(["GET",0,y],77468);var w=e.i(77468);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/memories/[memoryId]/history/route",pathname:"/api/memories/[memoryId]/history",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/memories/[memoryId]/history/route.ts",nextConfigOutput:"standalone",userland:w}),{workAsyncStorage:C,workUnitAsyncStorage:b,serverHooks:A}=E;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),E.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/memories/[memoryId]/history/route";f=f.replace(/\/index$/,"")||"/";let g=await E.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:w,nextConfig:C,parsedUrl:b,isDraftMode:A,prerenderManifest:N,routerServerContext:T,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:_,serverActionsManifest:j}=g,I=(0,i.normalizeAppPath)(f),S=!!(N.dynamicRoutes[I]||N.routes[q]),O=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,b,!1):t.end("This page could not be found"),null);if(S&&!A){let e=!!N.routes[q],t=N.dynamicRoutes[I];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await O();throw new m.NoFallbackError}}let U=null;!S||E.isDev||A||(U="/index"===(U=q)?"/":U);let H=!0===E.isDev||!S,M=S&&!H;j&&_&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:_,serverActionsManifest:j});let D=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,C,N,B);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let L={params:w,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:H,incrementalCache:G,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>E.onRequestError(e,t,a,n,T)},sharedContext:{buildId:y}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>E.handle(X,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&P&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=L.renderOpts.fetchMetrics;let i=L.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=L.renderOpts.collectedTags;if(!S)return await (0,c.sendResponse)(V,W,s,L.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,a=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,T),t}},d=await E.handleResponse({req:e,nextConfig:C,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!S)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&S||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof m.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,T),S)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:b})},"routeModule",0,E,"serverHooks",0,A,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,b],20679)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0f~qam_._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},43502,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),i=e.i(79722),o=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),g=e.i(64331),R=e.i(93695);e.i(28825);var v=e.i(64694),f=e.i(39327),m=e.i(25134),w=e.i(27181);async function E(e){try{let t=e.nextUrl.searchParams,r=t.get("bank_id");if(!r)return f.NextResponse.json({error:"bank_id is required"},{status:400});let a=t.get("limit")?Number(t.get("limit")):void 0,n=t.get("min_count")?Number(t.get("min_count")):void 0,s=await w.sdk.getEntityGraph({client:m.lowLevelClient,path:{bank_id:r},query:{limit:a,min_count:n}});if(s.error||!s.data)return console.error("Entity graph API error:",s.error),f.NextResponse.json({error:s.error||"Failed to fetch entity graph"},{status:500});return f.NextResponse.json(s.data,{status:200})}catch(e){return console.error("Error fetching entity graph:",e),f.NextResponse.json({error:"Failed to fetch entity graph"},{status:500})}}e.s(["GET",0,E],34489);var y=e.i(34489);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/entities/graph/route",pathname:"/api/entities/graph",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/entities/graph/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:N}=C;async function _(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/entities/graph/route";f=f.replace(/\/index$/,"")||"/";let m=await C.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:b,isDraftMode:A,prerenderManifest:N,routerServerContext:_,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:k,clientReferenceManifest:q,serverActionsManifest:S}=m,j=(0,o.normalizeAppPath)(f),O=!!(N.dynamicRoutes[j]||N.routes[k]),H=async()=>((null==_?void 0:_.render404)?await _.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!A){let e=!!N.routes[k],t=N.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await H();throw new R.NoFallbackError}}let I=null;!O||C.isDev||A||(I="/index"===(I=k)?"/":I);let U=!0===C.isDev||!O,M=O&&!U;S&&q&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:q,serverActionsManifest:S});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==_?void 0:_.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,y,N,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,_)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,i=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),o=async n=>{var s,o;let l=async({previousCacheEntry:r})=>{try{if(!B&&P&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[g.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,_),t}},d=await C.handleResponse({req:e,nextConfig:y,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&O||u.delete(g.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await o($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},o),void 0,!K))}catch(t){if(t instanceof R.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,_),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,_,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})},"routeModule",0,C,"serverHooks",0,N,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,A],43502)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0h-01m.._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},7709,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),v=e.i(9629),x=e.i(64331),R=e.i(93695);e.i(28825);var b=e.i(64694),g=e.i(39327),f=e.i(25134),w=e.i(27181);async function m(e,{params:t}){try{let{bankId:e}=await t;if(!e)return g.NextResponse.json({error:"bank_id is required"},{status:400});let r=await w.sdk.listMemories({client:f.lowLevelClient,path:{bank_id:e},query:{type:"observation",limit:1e3}});if(r.error)return console.error("API error listing observations:",r.error),g.NextResponse.json({error:"Failed to list observations"},{status:500});let a=(r.data?.items||[]).map(t=>({id:t.id,bank_id:e,text:t.text,proof_count:t.proof_count??1,history:[],tags:t.tags||[],source_memory_ids:[],source_memories:[],created_at:t.date,updated_at:t.date}));return g.NextResponse.json({items:a},{status:200})}catch(e){return console.error("Error listing observations:",e),g.NextResponse.json({error:"Failed to list observations"},{status:500})}}async function E(e,{params:t}){try{let{bankId:e}=await t;if(!e)return g.NextResponse.json({error:"bank_id is required"},{status:400});let r=await w.sdk.clearObservations({client:f.lowLevelClient,path:{bank_id:e}});if(r.error)return console.error("API error clearing observations:",r.error),g.NextResponse.json({error:"Failed to clear observations"},{status:500});return g.NextResponse.json(r.data,{status:200})}catch(e){return console.error("Error clearing observations:",e),g.NextResponse.json({error:"Failed to clear observations"},{status:500})}}e.s(["DELETE",0,E,"GET",0,m],31809);var y=e.i(31809);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/banks/[bankId]/observations/route",pathname:"/api/banks/[bankId]/observations",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/[bankId]/observations/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:k,workUnitAsyncStorage:_,serverHooks:A}=C;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/banks/[bankId]/observations/route";g=g.replace(/\/index$/,"")||"/";let f=await C.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:m,nextConfig:E,parsedUrl:y,isDraftMode:k,prerenderManifest:_,routerServerContext:A,isOnDemandRevalidate:N,revalidateOnlyGenerated:T,resolvedPathname:q,clientReferenceManifest:P,serverActionsManifest:j}=f,I=(0,i.normalizeAppPath)(g),O=!!(_.dynamicRoutes[I]||_.routes[q]),S=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,y,!1):t.end("This page could not be found"),null);if(O&&!k){let e=!!_.routes[q],t=_.dynamicRoutes[I];if(t&&!1===t.fallback&&!e){if(E.adapterPath)return await S();throw new R.NoFallbackError}}let H=null;!O||C.isDev||k||(H="/index"===(H=q)?"/":H);let M=!0===C.isDev||!O,U=O&&!M;j&&P&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:P,serverActionsManifest:j});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==A?void 0:A.isWrappedByNextServer),L=!!(0,n.getRequestMeta)(e,"minimalMode"),B=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,E,_,L);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let G={params:m,previewProps:_.preview,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:M,incrementalCache:B,cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,A)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${g}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!L&&N&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[x.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:b.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,A),t}},d=await C.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:_,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:L});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==b.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return L&&O||u.delete(x.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,v.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof R.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:N})},!1,A),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:_})},"routeModule",0,C,"serverHooks",0,A,"workAsyncStorage",0,k,"workUnitAsyncStorage",0,_],7709)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0h12w8h._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},98745,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),v=e.i(64331),R=e.i(93695);e.i(28825);var g=e.i(64694),f=e.i(39327),m=e.i(25134),w=e.i(27181);async function E(e){try{let t=e.nextUrl.searchParams,r=t.get("bank_id");if(!r)return f.NextResponse.json({error:"bank_id is required"},{status:400});let a=t.get("limit")?Number(t.get("limit")):void 0,n=t.get("offset")?Number(t.get("offset")):void 0,s=await w.sdk.listDocuments({client:m.lowLevelClient,path:{bank_id:r},query:{limit:a,offset:n}});return f.NextResponse.json(s.data,{status:200})}catch(e){return console.error("Error fetching documents:",e),f.NextResponse.json({error:"Failed to fetch documents"},{status:500})}}e.s(["GET",0,E],83100);var C=e.i(83100);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/documents/route",pathname:"/api/documents",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/documents/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:N}=y;async function T(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/documents/route";f=f.replace(/\/index$/,"")||"/";let m=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:C,parsedUrl:b,isDraftMode:A,prerenderManifest:N,routerServerContext:T,isOnDemandRevalidate:k,revalidateOnlyGenerated:q,resolvedPathname:P,clientReferenceManifest:_,serverActionsManifest:S}=m,O=(0,i.normalizeAppPath)(f),j=!!(N.dynamicRoutes[O]||N.routes[P]),H=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,b,!1):t.end("This page could not be found"),null);if(j&&!A){let e=!!N.routes[P],t=N.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await H();throw new R.NoFallbackError}}let U=null;!j||y.isDev||A||(U="/index"===(U=P)?"/":U);let I=!0===y.isDev||!j,M=j&&!I;S&&_&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:_,serverActionsManifest:S});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,N,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:I,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,T)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&k&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:k})},!1,T),t}},d=await y.handleResponse({req:e,nextConfig:C,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:k,revalidateOnlyGenerated:q,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!j)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",k?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&j||u.delete(v.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof R.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:k})},!1,T),j)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,T,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})},"routeModule",0,y,"serverHooks",0,N,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,A],98745)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0hof.m7._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},2468,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),o=e.i(67173),s=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),g=e.i(93695);e.i(28825);var v=e.i(64694),f=e.i(39327),w=e.i(25134),E=e.i(27181);async function b(e,{params:t}){try{let{bankId:e}=await t;if(!e)return f.NextResponse.json({error:"bank_id is required"},{status:400});let r=await E.sdk.triggerConsolidation({client:w.lowLevelClient,path:{bank_id:e}});if(r.error)return console.error("API error triggering consolidation:",r.error),f.NextResponse.json({error:"Failed to trigger consolidation"},{status:500});return f.NextResponse.json(r.data,{status:200})}catch(e){return console.error("Error triggering consolidation:",e),f.NextResponse.json({error:"Failed to trigger consolidation"},{status:500})}}e.s(["POST",0,b],60549);var m=e.i(60549);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/banks/[bankId]/consolidate/route",pathname:"/api/banks/[bankId]/consolidate",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/[bankId]/consolidate/route.ts",nextConfigOutput:"standalone",userland:m}),{workAsyncStorage:y,workUnitAsyncStorage:k,serverHooks:A}=C;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/banks/[bankId]/consolidate/route";f=f.replace(/\/index$/,"")||"/";let w=await C.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:b,nextConfig:m,parsedUrl:y,isDraftMode:k,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:q,clientReferenceManifest:_,serverActionsManifest:S}=w,O=(0,i.normalizeAppPath)(f),j=!!(A.dynamicRoutes[O]||A.routes[q]),I=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,y,!1):t.end("This page could not be found"),null);if(j&&!k){let e=!!A.routes[q],t=A.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(m.adapterPath)return await I();throw new g.NoFallbackError}}let H=null;!j||C.isDev||k||(H="/index"===(H=q)?"/":H);let U=!0===C.isDev||!j,M=j&&!U;S&&_&&(0,s.setManifestsSingleton)({page:f,clientReferenceManifest:_,serverActionsManifest:S});let D=e.method||"GET",F=(0,o.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,m,A,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:b,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!m.experimental.authInterrupts},cacheComponents:!!m.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:m.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,N)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var o,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&P&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,W,o,G.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,N),t}},d=await C.handleResponse({req:e,nextConfig:m,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!j)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&j||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof g.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,N),j)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:k})},"routeModule",0,C,"serverHooks",0,A,"workAsyncStorage",0,y,"workUnitAsyncStorage",0,k],2468)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0i2otbg._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},56270,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),g=e.i(93695);e.i(28825);var v=e.i(64694),f=e.i(39327),w=e.i(25134);async function E(e,{params:t}){try{let{bankId:r}=await t;if(!r)return f.NextResponse.json({error:"bank_id is required"},{status:400});let{searchParams:a}=new URL(e.url),n=a.toString(),s=(0,w.dataplaneBankUrl)(r,`/audit-logs/stats${n?`?${n}`:""}`),o=await fetch(s,{method:"GET",headers:(0,w.getDataplaneHeaders)()}),i=await o.json();if(!o.ok)return f.NextResponse.json({error:i.detail||"Failed to get audit log stats"},{status:o.status});return f.NextResponse.json(i,{status:200})}catch(e){return console.error("Error getting audit log stats:",e),f.NextResponse.json({error:"Failed to get audit log stats"},{status:500})}}e.s(["GET",0,E],75433);var m=e.i(75433);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/banks/[bankId]/audit-logs/stats/route",pathname:"/api/banks/[bankId]/audit-logs/stats",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/[bankId]/audit-logs/stats/route.ts",nextConfigOutput:"standalone",userland:m}),{workAsyncStorage:C,workUnitAsyncStorage:y,serverHooks:k}=b;async function A(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/banks/[bankId]/audit-logs/stats/route";f=f.replace(/\/index$/,"")||"/";let w=await b.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:m,nextConfig:C,parsedUrl:y,isDraftMode:k,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:T,revalidateOnlyGenerated:q,resolvedPathname:P,clientReferenceManifest:S,serverActionsManifest:_}=w,j=(0,i.normalizeAppPath)(f),O=!!(A.dynamicRoutes[j]||A.routes[P]),I=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,y,!1):t.end("This page could not be found"),null);if(O&&!k){let e=!!A.routes[P],t=A.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await I();throw new g.NoFallbackError}}let H=null;!O||b.isDev||k||(H="/index"===(H=P)?"/":H);let U=!0===b.isDev||!O,M=O&&!U;_&&S&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:S,serverActionsManifest:_});let D=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,C,A,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:m,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,N)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>b.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&T&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,N),t}},d=await b.handleResponse({req:e,nextConfig:C,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:q,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&O||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof g.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,N),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:y})},"routeModule",0,b,"serverHooks",0,k,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,y],56270)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0i8s1ez._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},83826,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),v=e.i(93695);e.i(28825);var g=e.i(64694),m=e.i(39327),f=e.i(25134);async function w(e){try{let t=await e.json(),r=t.bank_id||t.agent_id;if(!r)return m.NextResponse.json({error:"bank_id is required"},{status:400});let{items:a,document_id:n,document_tags:s,observation_scopes:o}=t,i=o?a?.map(e=>({...e,observation_scopes:e.observation_scopes??o})):a,l=await f.hindsightClient.retainBatch(r,i,{documentId:n,documentTags:s});return m.NextResponse.json(l,{status:200})}catch(a){console.error("Error batch retain:",a);let e=a?.message||String(a),t=a?.details,r=a?.statusCode;if(r&&"number"==typeof r)return m.NextResponse.json({error:e,details:t},{status:r});return m.NextResponse.json({error:e||"Failed to batch retain"},{status:500})}}e.s(["POST",0,w],33862);var E=e.i(33862);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/memories/retain/route",pathname:"/api/memories/retain",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/memories/retain/route.ts",nextConfigOutput:"standalone",userland:E}),{workAsyncStorage:b,workUnitAsyncStorage:y,serverHooks:A}=C;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let m="/api/memories/retain/route";m=m.replace(/\/index$/,"")||"/";let f=await C.prepare(e,t,{srcPage:m,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:b,parsedUrl:y,isDraftMode:A,prerenderManifest:N,routerServerContext:T,isOnDemandRevalidate:_,revalidateOnlyGenerated:P,resolvedPathname:q,clientReferenceManifest:S,serverActionsManifest:k}=f,j=(0,i.normalizeAppPath)(m),O=!!(N.dynamicRoutes[j]||N.routes[q]),H=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,y,!1):t.end("This page could not be found"),null);if(O&&!A){let e=!!N.routes[q],t=N.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await H();throw new v.NoFallbackError}}let I=null;!O||C.isDev||A||(I="/index"===(I=q)?"/":I);let U=!0===C.isDev||!O,M=O&&!U;k&&S&&(0,o.setManifestsSingleton)({page:m,clientReferenceManifest:S,serverActionsManifest:k});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,b,N,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:b.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,T)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${m}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&_&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:m,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:_})},!1,T),t}},d=await C.handleResponse({req:e,nextConfig:b,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",_?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&O||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${m}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof v.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:_})},!1,T),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:y})},"routeModule",0,C,"serverHooks",0,A,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,y],83826)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0idud4m._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},11147,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),u=e.i(66182),d=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),v=e.i(93695);e.i(28825);var g=e.i(64694),f=e.i(39327),w=e.i(25134),E=e.i(27181);async function m(e,{params:t}){try{let{chunkId:e}=await t,r=await E.sdk.getChunk({client:w.lowLevelClient,path:{chunk_id:e}});return f.NextResponse.json(r.data,{status:200})}catch(e){return console.error("Error fetching chunk:",e),f.NextResponse.json({error:"Failed to fetch chunk"},{status:500})}}e.s(["GET",0,m],36732);var C=e.i(36732);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/chunks/[chunkId]/route",pathname:"/api/chunks/[chunkId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/chunks/[chunkId]/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:k,workUnitAsyncStorage:A,serverHooks:b}=y;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/chunks/[chunkId]/route";f=f.replace(/\/index$/,"")||"/";let w=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:m,nextConfig:C,parsedUrl:k,isDraftMode:A,prerenderManifest:b,routerServerContext:N,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,resolvedPathname:q,clientReferenceManifest:_,serverActionsManifest:S}=w,O=(0,i.normalizeAppPath)(f),I=!!(b.dynamicRoutes[O]||b.routes[q]),j=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,k,!1):t.end("This page could not be found"),null);if(I&&!A){let e=!!b.routes[q],t=b.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await j();throw new v.NoFallbackError}}let H=null;!I||y.isDev||A||(H="/index"===(H=q)?"/":H);let U=!0===y.isDev||!I,M=I&&!U;S&&_&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:_,serverActionsManifest:S});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,b,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:m,previewProps:b.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,N)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&T&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,N),t}},u=await y.handleResponse({req:e,nextConfig:C,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!I)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&I||d.delete(R.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,W,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof v.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,N),I)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:A})},"routeModule",0,y,"serverHooks",0,b,"workAsyncStorage",0,k,"workUnitAsyncStorage",0,A],11147)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0jbb41r._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},65536,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),v=e.i(93695);e.i(28825);var g=e.i(64694),f=e.i(39327),E=e.i(27181),m=e.i(25134);async function w(){let e={status:"ok",service:"hindsight-control-plane"},t=process.env.HINDSIGHT_CP_DATAPLANE_API_URL||"http://localhost:8888";try{let r=new AbortController,a=setTimeout(()=>r.abort(),3e3),n=(0,E.createClient)((0,E.createConfig)({baseUrl:t,signal:r.signal,headers:(0,m.getDataplaneHeaders)()}));try{await E.sdk.listBanks({client:n}),e.dataplane={status:"connected",url:t}}finally{clearTimeout(a)}}catch(a){let r=a instanceof Error?a.message:String(a);a instanceof Error&&"AbortError"===a.name&&(r="Request timed out after 3000ms"),e.dataplane={status:"disconnected",url:t,error:r}}return f.NextResponse.json(e,{status:200})}e.s(["GET",0,w],52161);var C=e.i(52161);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/health/route",pathname:"/api/health",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/health/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:A,workUnitAsyncStorage:b,serverHooks:T}=y;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/health/route";f=f.replace(/\/index$/,"")||"/";let E=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!E)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:m,params:w,nextConfig:C,parsedUrl:A,isDraftMode:b,prerenderManifest:T,routerServerContext:N,isOnDemandRevalidate:P,revalidateOnlyGenerated:_,resolvedPathname:k,clientReferenceManifest:q,serverActionsManifest:S}=E,O=(0,i.normalizeAppPath)(f),H=!!(T.dynamicRoutes[O]||T.routes[k]),I=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,A,!1):t.end("This page could not be found"),null);if(H&&!b){let e=!!T.routes[k],t=T.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await I();throw new v.NoFallbackError}}let j=null;!H||y.isDev||b||(j="/index"===(j=k)?"/":j);let U=!0===y.isDev||!H,D=H&&!U;S&&q&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:q,serverActionsManifest:S});let M=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,T,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:w,previewProps:T.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,N)},sharedContext:{buildId:m}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${M} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&P&&_&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!H)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,N),t}},d=await y.handleResponse({req:e,nextConfig:C,cacheKey:j,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:T,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:_,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!H)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&H||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof v.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:P})},!1,N),H)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:b})},"routeModule",0,y,"serverHooks",0,T,"workAsyncStorage",0,A,"workUnitAsyncStorage",0,b],65536)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0k5dzt7._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},65619,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),v=e.i(93695);e.i(28825);var f=e.i(64694),g=e.i(39327),w=e.i(25134),E=e.i(27181);async function b(){try{let e=await E.sdk.listBanks({client:w.lowLevelClient});if(e.error||!e.data)return console.error("API error:",e.error),g.NextResponse.json({error:"Failed to fetch banks from API"},{status:500});return g.NextResponse.json(e.data,{status:200})}catch(e){return console.error("Error fetching banks:",e),g.NextResponse.json({error:"Failed to fetch banks"},{status:500})}}async function m(e){try{let{bank_id:t}=await e.json();if(!t)return g.NextResponse.json({error:"bank_id is required"},{status:400});let r=await E.sdk.createOrUpdateBank({client:w.lowLevelClient,path:{bank_id:t},body:{}}),a=JSON.parse(JSON.stringify(r.data));return g.NextResponse.json(a,{status:201})}catch(e){return console.error("Error creating bank:",e),g.NextResponse.json({error:"Failed to create bank"},{status:500})}}e.s(["GET",0,b,"POST",0,m],17087);var y=e.i(17087);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/banks/route",pathname:"/api/banks",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:k,workUnitAsyncStorage:A,serverHooks:N}=C;async function P(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/banks/route";g=g.replace(/\/index$/,"")||"/";let w=await C.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:b,nextConfig:m,parsedUrl:y,isDraftMode:k,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,resolvedPathname:O,clientReferenceManifest:S,serverActionsManifest:j}=w,q=(0,i.normalizeAppPath)(g),_=!!(A.dynamicRoutes[q]||A.routes[O]),I=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,y,!1):t.end("This page could not be found"),null);if(_&&!k){let e=!!A.routes[O],t=A.dynamicRoutes[q];if(t&&!1===t.fallback&&!e){if(m.adapterPath)return await I();throw new v.NoFallbackError}}let H=null;!_||C.isDev||k||(H="/index"===(H=O)?"/":H);let U=!0===C.isDev||!_,M=_&&!U;j&&S&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:S,serverActionsManifest:j});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),B=!!(null==N?void 0:N.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,m,A,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:b,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!m.experimental.authInterrupts},cacheComponents:!!m.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:m.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,N)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${g}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!K&&P&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!_)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,N),t}},d=await C.handleResponse({req:e,nextConfig:m,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!_)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&_||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};B&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof v.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,N),_)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:A})},"routeModule",0,C,"serverHooks",0,N,"workAsyncStorage",0,k,"workUnitAsyncStorage",0,A],65619)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0m9skry._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},65885,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),i=e.i(79722),o=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),v=e.i(64331),g=e.i(93695);e.i(28825);var R=e.i(64694),f=e.i(39327),m=e.i(25134);async function E(e){try{let t=e.nextUrl.searchParams,r=t.get("bank_id")||t.get("agent_id");if(!r)return f.NextResponse.json({error:"bank_id is required"},{status:400});let a=t.get("limit")?Number(t.get("limit")):void 0,n=t.get("offset")?Number(t.get("offset")):void 0,s=t.get("type")||t.get("fact_type")||void 0,i=t.get("q")||void 0,o=t.get("consolidation_state")||t.get("consolidationState"),l=await m.hindsightClient.listMemories(r,{limit:a,offset:n,type:s,q:i,consolidationState:"failed"===o||"pending"===o||"done"===o?o:void 0});return f.NextResponse.json(l,{status:200})}catch(e){return console.error("Error listing memory units:",e),f.NextResponse.json({error:"Failed to list memory units"},{status:500})}}async function w(e){return f.NextResponse.json({error:"Individual memory unit deletion is not yet supported. Use clear all memories instead."},{status:501})}e.s(["DELETE",0,w,"GET",0,E],18010);var y=e.i(18010);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/list/route",pathname:"/api/list",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/list/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:b,workUnitAsyncStorage:A,serverHooks:N}=C;async function T(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/list/route";f=f.replace(/\/index$/,"")||"/";let m=await C.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:w,nextConfig:y,parsedUrl:b,isDraftMode:A,prerenderManifest:N,routerServerContext:T,isOnDemandRevalidate:_,revalidateOnlyGenerated:q,resolvedPathname:P,clientReferenceManifest:S,serverActionsManifest:k}=m,j=(0,o.normalizeAppPath)(f),O=!!(N.dynamicRoutes[j]||N.routes[P]),U=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!A){let e=!!N.routes[P],t=N.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await U();throw new g.NoFallbackError}}let H=null;!O||C.isDev||A||(H="/index"===(H=P)?"/":H);let I=!0===C.isDev||!O,M=O&&!I;k&&S&&(0,i.setManifestsSingleton)({page:f,clientReferenceManifest:S,serverActionsManifest:k});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,y,N,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:w,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:I,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,T)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,i=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),o=async n=>{var s,o;let l=async({previousCacheEntry:r})=>{try{if(!B&&_&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:_})},!1,T),t}},d=await C.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:q,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",_?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&O||u.delete(v.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await o($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},o),void 0,!K))}catch(t){if(t instanceof g.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:_})},!1,T),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,T,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:A})},"routeModule",0,C,"serverHooks",0,N,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,A],65885)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0ob35wz._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},13161,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),o=e.i(67173),s=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),v=e.i(93695);e.i(28825);var f=e.i(64694),g=e.i(39327),w=e.i(25134),E=e.i(27181);async function b(e,{params:t}){try{let{bankId:e}=await t,r=await E.sdk.getBankProfile({client:w.lowLevelClient,path:{bank_id:e}});return g.NextResponse.json(r.data,{status:200})}catch(e){return console.error("Error fetching bank profile:",e),g.NextResponse.json({error:"Failed to fetch bank profile"},{status:500})}}async function m(e,{params:t}){try{let{bankId:r}=await t,a=await e.json(),n=await E.sdk.createOrUpdateBank({client:w.lowLevelClient,path:{bank_id:r},body:a});return g.NextResponse.json(n.data,{status:200})}catch(e){return console.error("Error updating bank profile:",e),g.NextResponse.json({error:"Failed to update bank profile"},{status:500})}}e.s(["GET",0,b,"PUT",0,m],15541);var C=e.i(15541);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/profile/[bankId]/route",pathname:"/api/profile/[bankId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/profile/[bankId]/route.ts",nextConfigOutput:"standalone",userland:C}),{workAsyncStorage:k,workUnitAsyncStorage:A,serverHooks:N}=y;async function T(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/profile/[bankId]/route";g=g.replace(/\/index$/,"")||"/";let w=await y.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:b,nextConfig:m,parsedUrl:C,isDraftMode:k,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,resolvedPathname:_,clientReferenceManifest:q,serverActionsManifest:j}=w,O=(0,i.normalizeAppPath)(g),S=!!(A.dynamicRoutes[O]||A.routes[_]),I=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!k){let e=!!A.routes[_],t=A.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(m.adapterPath)return await I();throw new v.NoFallbackError}}let U=null;!S||y.isDev||k||(U="/index"===(U=_)?"/":U);let H=!0===y.isDev||!S,M=S&&!H;j&&q&&(0,s.setManifestsSingleton)({page:g,clientReferenceManifest:q,serverActionsManifest:j});let D=e.method||"GET",F=(0,o.getTracer)(),$=F.getActiveScopeSpan(),B=!!(null==N?void 0:N.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,m,A,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:b,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!m.experimental.authInterrupts},cacheComponents:!!m.cacheComponents,supportsDynamicResponse:H,incrementalCache:L,cacheLifeProfiles:m.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,N)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>y.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${g}`)}),i=async n=>{var o,i;let l=async({previousCacheEntry:r})=>{try{if(!K&&T&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!S)return await (0,c.sendResponse)(V,W,o,G.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,N),t}},d=await y.handleResponse({req:e,nextConfig:m,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!S)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&S||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};B&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${g}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof v.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,N),S)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,T,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:A})},"routeModule",0,y,"serverHooks",0,N,"workAsyncStorage",0,k,"workUnitAsyncStorage",0,A],13161)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0oqmwro._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},21265,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),u=e.i(66182),d=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),v=e.i(64331),R=e.i(93695);e.i(28825);var g=e.i(64694),f=e.i(39327);async function w(e){let t,r=process.env.HINDSIGHT_CP_ACCESS_KEY;if(!r)return f.NextResponse.json({error:"Access key not configured"},{status:503});try{t=await e.json()}catch{return f.NextResponse.json({error:"Invalid request body"},{status:400})}let a=t.key;if(!(a&&function(e,t){if(e.length!==t.length)return!1;let r=0;for(let a=0;a<e.length;a++)r|=e.charCodeAt(a)^t.charCodeAt(a);return 0===r}(a,r)))return f.NextResponse.json({error:"Invalid access key"},{status:401});let n=f.NextResponse.json({success:!0});return n.cookies.set({name:"hindsight_cp_access",value:"authenticated",httpOnly:!0,secure:!0,sameSite:"lax",path:"/",maxAge:86400}),n}e.s(["POST",0,w],51765);var E=e.i(51765);let m=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/auth/login/route",pathname:"/api/auth/login",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/auth/login/route.ts",nextConfigOutput:"standalone",userland:E}),{workAsyncStorage:C,workUnitAsyncStorage:y,serverHooks:A}=m;async function b(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),m.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/auth/login/route";f=f.replace(/\/index$/,"")||"/";let w=await m.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:E,params:C,nextConfig:y,parsedUrl:A,isDraftMode:b,prerenderManifest:N,routerServerContext:S,isOnDemandRevalidate:T,revalidateOnlyGenerated:_,resolvedPathname:P,clientReferenceManifest:k,serverActionsManifest:q}=w,O=(0,i.normalizeAppPath)(f),j=!!(N.dynamicRoutes[O]||N.routes[P]),I=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,A,!1):t.end("This page could not be found"),null);if(j&&!b){let e=!!N.routes[P],t=N.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await I();throw new R.NoFallbackError}}let H=null;!j||m.isDev||b||(H="/index"===(H=P)?"/":H);let U=!0===m.isDev||!j,M=j&&!U;q&&k&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:k,serverActionsManifest:q});let D=e.method||"GET",K=(0,s.getTracer)(),$=K.getActiveScopeSpan(),F=!!(null==S?void 0:S.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await m.getIncrementalCache(e,y,N,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:C,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>m.onRequestError(e,t,a,n,S)},sharedContext:{buildId:E}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>m.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=K.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&T&&_&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await m.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,S),t}},u=await m.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:_,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!j)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&j||d.delete(v.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,W,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};F&&$?await i($):(n=K.getActiveScopeSpan(),await K.withPropagatedContext(e.headers,()=>K.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!F))}catch(t){if(t instanceof R.NoFallbackError||await m.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,S),j)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,b,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:y})},"routeModule",0,m,"serverHooks",0,A,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,y],21265)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0p518-s._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},42447,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),o=e.i(67173),s=e.i(79722),l=e.i(43740),i=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),m=e.i(3341),h=e.i(9629),x=e.i(64331),R=e.i(93695);e.i(28825);var g=e.i(64694),v=e.i(39327),f=e.i(25134);async function w(e,{params:t}){try{let{bankId:e,mentalModelId:r}=await t;if(!e||!r)return v.NextResponse.json({error:"bank_id and mental_model_id are required"},{status:400});let a=await fetch((0,f.dataplaneBankUrl)(e,`/mental-models/${encodeURIComponent(r)}`),{method:"GET",headers:(0,f.getDataplaneHeaders)()});if(!a.ok){let e=await a.text();return console.error("API error getting mental model:",e),v.NextResponse.json({error:"Failed to get mental model"},{status:a.status})}let n=await a.json();return v.NextResponse.json(n,{status:200})}catch(e){return console.error("Error getting mental model:",e),v.NextResponse.json({error:"Failed to get mental model"},{status:500})}}async function E(e,{params:t}){try{let{bankId:r,mentalModelId:a}=await t;if(!r||!a)return v.NextResponse.json({error:"bank_id and mental_model_id are required"},{status:400});let n=await e.json(),o=await fetch((0,f.dataplaneBankUrl)(r,`/mental-models/${encodeURIComponent(a)}`),{method:"PATCH",headers:(0,f.getDataplaneHeaders)({"Content-Type":"application/json"}),body:JSON.stringify(n)});if(!o.ok){let e=await o.text();return console.error("API error updating mental model:",e),v.NextResponse.json({error:e||"Failed to update mental model"},{status:o.status})}let s=await o.json();return v.NextResponse.json(s,{status:200})}catch(e){return console.error("Error updating mental model:",e),v.NextResponse.json({error:"Failed to update mental model"},{status:500})}}async function C(e,{params:t}){try{let{bankId:e,mentalModelId:r}=await t;if(!e||!r)return v.NextResponse.json({error:"bank_id and mental_model_id are required"},{status:400});let a=await fetch((0,f.dataplaneBankUrl)(e,`/mental-models/${encodeURIComponent(r)}`),{method:"DELETE",headers:(0,f.getDataplaneHeaders)()});if(!a.ok){let e=await a.text();return console.error("API error deleting mental model:",e),v.NextResponse.json({error:e||"Failed to delete mental model"},{status:a.status})}return v.NextResponse.json({success:!0},{status:200})}catch(e){return console.error("Error deleting mental model:",e),v.NextResponse.json({error:"Failed to delete mental model"},{status:500})}}e.s(["DELETE",0,C,"GET",0,w,"PATCH",0,E],70284);var y=e.i(70284);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/banks/[bankId]/mental-models/[mentalModelId]/route",pathname:"/api/banks/[bankId]/mental-models/[mentalModelId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/[bankId]/mental-models/[mentalModelId]/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:k,workUnitAsyncStorage:N,serverHooks:A}=b;async function j(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/banks/[bankId]/mental-models/[mentalModelId]/route";v=v.replace(/\/index$/,"")||"/";let f=await b.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:C,parsedUrl:y,isDraftMode:k,prerenderManifest:N,routerServerContext:A,isOnDemandRevalidate:j,revalidateOnlyGenerated:T,resolvedPathname:_,clientReferenceManifest:I,serverActionsManifest:P}=f,q=(0,l.normalizeAppPath)(v),S=!!(N.dynamicRoutes[q]||N.routes[_]),H=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,y,!1):t.end("This page could not be found"),null);if(S&&!k){let e=!!N.routes[_],t=N.dynamicRoutes[q];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await H();throw new R.NoFallbackError}}let O=null;!S||b.isDev||k||(O="/index"===(O=_)?"/":O);let U=!0===b.isDev||!S,M=S&&!U;P&&I&&(0,s.setManifestsSingleton)({page:v,clientReferenceManifest:I,serverActionsManifest:P});let D=e.method||"GET",F=(0,o.getTracer)(),$=F.getActiveScopeSpan(),B=!!(null==A?void 0:A.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,C,N,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,A)},sharedContext:{buildId:w}},V=new i.NodeNextRequest(e),W=new i.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>b.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${v}`)}),l=async n=>{var o,l;let i=async({previousCacheEntry:r})=>{try{if(!K&&j&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let l=G.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let i=G.renderOpts.collectedTags;if(!S)return await (0,c.sendResponse)(V,W,o,G.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,m.toNodeOutgoingHttpHeaders)(o.headers);i&&(t[x.NEXT_CACHE_TAGS_HEADER]=i),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:j})},!1,A),t}},d=await b.handleResponse({req:e,nextConfig:C,cacheKey:O,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:j,revalidateOnlyGenerated:T,responseGenerator:i,waitUntil:a.waitUntil,isMinimalMode:K});if(!S)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(l=d.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",j?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,m.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&S||u.delete(x.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};B&&$?await l($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${v}`,kind:o.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},l),void 0,!B))}catch(t){if(t instanceof R.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:q,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:j})},!1,A),S)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,j,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:N})},"routeModule",0,b,"serverHooks",0,A,"workAsyncStorage",0,k,"workUnitAsyncStorage",0,N],42447)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0q79ahg._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[18622,(e,t,a)=>{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"))},56704,(e,t,a)=>{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,a)=>{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"))},24725,(e,t,a)=>{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"))},93695,(e,t,a)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},85897,e=>{"use strict";var t=e.i(72568),a=e.i(7108),r=e.i(51953),n=e.i(84266),o=e.i(67173),s=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),w=e.i(93695);e.i(28825);var v=e.i(64694),g=e.i(39327),f=e.i(25134);async function b(e,{params:t}){let{bankId:a,webhookId:r}=await t,n=await e.json(),o=await fetch((0,f.dataplaneBankUrl)(a,`/webhooks/${encodeURIComponent(r)}`),{method:"PATCH",headers:(0,f.getDataplaneHeaders)({"Content-Type":"application/json"}),body:JSON.stringify(n)}),s=await o.json();return o.ok?g.NextResponse.json(s):g.NextResponse.json({error:s.detail||"Failed"},{status:o.status})}async function E(e,{params:t}){let{bankId:a,webhookId:r}=await t,n=await fetch((0,f.dataplaneBankUrl)(a,`/webhooks/${encodeURIComponent(r)}`),{method:"DELETE",headers:(0,f.getDataplaneHeaders)({"Content-Type":"application/json"})}),o=await n.json();return n.ok?g.NextResponse.json(o):g.NextResponse.json({error:o.detail||"Failed"},{status:n.status})}e.s(["DELETE",0,E,"PATCH",0,b],20868);var k=e.i(20868);let m=new t.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/banks/[bankId]/webhooks/[webhookId]/route",pathname:"/api/banks/[bankId]/webhooks/[webhookId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/[bankId]/webhooks/[webhookId]/route.ts",nextConfigOutput:"standalone",userland:k}),{workAsyncStorage:C,workUnitAsyncStorage:y,serverHooks:A}=m;async function T(e,t,r){r.requestMeta&&(0,n.setRequestMeta)(e,r.requestMeta),m.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/banks/[bankId]/webhooks/[webhookId]/route";g=g.replace(/\/index$/,"")||"/";let f=await m.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==r.waitUntil||r.waitUntil.call(r,Promise.resolve()),null;let{buildId:b,params:E,nextConfig:k,parsedUrl:C,isDraftMode:y,prerenderManifest:A,routerServerContext:T,isOnDemandRevalidate:N,revalidateOnlyGenerated:j,resolvedPathname:I,clientReferenceManifest:P,serverActionsManifest:q}=f,S=(0,i.normalizeAppPath)(g),O=!!(A.dynamicRoutes[S]||A.routes[I]),_=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,C,!1):t.end("This page could not be found"),null);if(O&&!y){let e=!!A.routes[I],t=A.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(k.adapterPath)return await _();throw new w.NoFallbackError}}let H=null;!O||m.isDev||y||(H="/index"===(H=I)?"/":H);let U=!0===m.isDev||!O,D=O&&!U;q&&P&&(0,s.setManifestsSingleton)({page:g,clientReferenceManifest:P,serverActionsManifest:q});let M=e.method||"GET",$=(0,o.getTracer)(),F=$.getActiveScopeSpan(),B=!!(null==T?void 0:T.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await m.getIncrementalCache(e,k,A,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!k.experimental.authInterrupts},cacheComponents:!!k.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:k.cacheLife,waitUntil:r.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,a,r,n)=>m.onRequestError(e,t,r,n,T)},sharedContext:{buildId:b}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>m.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let a=$.getRootSpanAttributes();if(!a)return;if(a.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${a.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let r=a.get("next.route");if(r){let t=`${M} ${r}`;e.setAttributes({"next.route":r,"http.route":r,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",r),n.updateName(t))}else e.updateName(`${M} ${g}`)}),i=async n=>{var o,i;let l=async({previousCacheEntry:a})=>{try{if(!K&&N&&j&&!a)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await s(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&r.waitUntil&&(r.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,o,G.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let a=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,r=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:a,expire:r}}}}catch(t){throw(null==a?void 0:a.isStale)&&await m.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:N})},!1,T),t}},d=await m.handleResponse({req:e,nextConfig:k,cacheKey:H,routeKind:a.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:j,responseGenerator:l,waitUntil:r.waitUntil,isMinimalMode:K});if(!O)return null;if((null==d||null==(o=d.value)?void 0:o.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",N?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),y&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&O||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};B&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${g}`,kind:o.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof w.NoFallbackError||await m.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:N})},!1,T),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,T,"patchFetch",0,function(){return(0,r.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:y})},"routeModule",0,m,"serverHooks",0,A,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,y],85897)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0q8qt00._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},2512,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),m=e.i(64331),R=e.i(93695);e.i(28825);var v=e.i(64694),f=e.i(39327),g=e.i(25134);async function w(e,{params:t}){try{let{memoryId:r}=await t,a=e.nextUrl.searchParams.get("bank_id");if(!a)return f.NextResponse.json({error:"bank_id is required"},{status:400});let n=await fetch((0,g.dataplaneBankUrl)(a,`/memories/${encodeURIComponent(r)}`),{method:"GET",headers:(0,g.getDataplaneHeaders)({"Content-Type":"application/json"})});if(!n.ok){if(404===n.status)return f.NextResponse.json({error:"Memory not found"},{status:404});throw Error(`API returned ${n.status}`)}let s=await n.json();return f.NextResponse.json(s,{status:200})}catch(e){return console.error("Error fetching memory:",e),f.NextResponse.json({error:"Failed to fetch memory"},{status:500})}}e.s(["GET",0,w],26202);var E=e.i(26202);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/memories/[memoryId]/route",pathname:"/api/memories/[memoryId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/memories/[memoryId]/route.ts",nextConfigOutput:"standalone",userland:E}),{workAsyncStorage:C,workUnitAsyncStorage:A,serverHooks:b}=y;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/memories/[memoryId]/route";f=f.replace(/\/index$/,"")||"/";let g=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:C,parsedUrl:A,isDraftMode:b,prerenderManifest:N,routerServerContext:T,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:_,serverActionsManifest:j}=g,I=(0,i.normalizeAppPath)(f),S=!!(N.dynamicRoutes[I]||N.routes[q]),O=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,A,!1):t.end("This page could not be found"),null);if(S&&!b){let e=!!N.routes[q],t=N.dynamicRoutes[I];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await O();throw new R.NoFallbackError}}let U=null;!S||y.isDev||b||(U="/index"===(U=q)?"/":U);let H=!0===y.isDev||!S,M=S&&!H;j&&_&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:_,serverActionsManifest:j});let D=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==T?void 0:T.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,N,B);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let L={params:E,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:H,incrementalCache:G,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,T)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(X,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&P&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=L.renderOpts.fetchMetrics;let i=L.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=L.renderOpts.collectedTags;if(!S)return await (0,c.sendResponse)(V,W,s,L.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,a=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,T),t}},d=await y.handleResponse({req:e,nextConfig:C,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:P,revalidateOnlyGenerated:k,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!S)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",P?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&S||u.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof R.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:P})},!1,T),S)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:A})},"routeModule",0,y,"serverHooks",0,b,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,A],2512)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0rx61xd._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},17866,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),m=e.i(93695);e.i(28825);var v=e.i(64694),f=e.i(39327),g=e.i(25134);async function w(e,{params:t}){try{let{bankId:e,mentalModelId:r}=await t;if(!e||!r)return f.NextResponse.json({error:"bank_id and mental_model_id are required"},{status:400});let a=await fetch((0,g.dataplaneBankUrl)(e,`/mental-models/${encodeURIComponent(r)}/history`),{method:"GET",headers:(0,g.getDataplaneHeaders)()});if(!a.ok){if(404===a.status)return f.NextResponse.json({error:"Mental model not found"},{status:404});throw Error(`API returned ${a.status}`)}let n=await a.json();return f.NextResponse.json(n,{status:200})}catch(e){return console.error("Error fetching mental model history:",e),f.NextResponse.json({error:"Failed to fetch mental model history"},{status:500})}}e.s(["GET",0,w],40385);var E=e.i(40385);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/banks/[bankId]/mental-models/[mentalModelId]/history/route",pathname:"/api/banks/[bankId]/mental-models/[mentalModelId]/history",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/[bankId]/mental-models/[mentalModelId]/history/route.ts",nextConfigOutput:"standalone",userland:E}),{workAsyncStorage:b,workUnitAsyncStorage:C,serverHooks:k}=y;async function A(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/banks/[bankId]/mental-models/[mentalModelId]/history/route";f=f.replace(/\/index$/,"")||"/";let g=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:b,parsedUrl:C,isDraftMode:k,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:T,revalidateOnlyGenerated:I,resolvedPathname:P,clientReferenceManifest:_,serverActionsManifest:q}=g,j=(0,i.normalizeAppPath)(f),S=!!(A.dynamicRoutes[j]||A.routes[P]),O=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,C,!1):t.end("This page could not be found"),null);if(S&&!k){let e=!!A.routes[P],t=A.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await O();throw new m.NoFallbackError}}let M=null;!S||y.isDev||k||(M="/index"===(M=P)?"/":M);let H=!0===y.isDev||!S,U=S&&!H;q&&_&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:_,serverActionsManifest:q});let D=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,b,A,B);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let L={params:E,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:H,incrementalCache:G,cacheLifeProfiles:b.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,N)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(X,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&T&&I&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=L.renderOpts.fetchMetrics;let i=L.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=L.renderOpts.collectedTags;if(!S)return await (0,c.sendResponse)(V,W,s,L.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,a=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:T})},!1,N),t}},d=await y.handleResponse({req:e,nextConfig:b,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:I,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!S)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",T?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&S||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof m.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:T})},!1,N),S)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:C})},"routeModule",0,y,"serverHooks",0,k,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,C],17866)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0s3k8sh._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},35701,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),v=e.i(64331),R=e.i(93695);e.i(28825);var f=e.i(64694),g=e.i(39327),w=e.i(25134),m=e.i(27181);async function E(e){try{let t=await e.json(),r=t.bank_id||t.agent_id||"default",{query:a,budget:n,thinking_budget:s,include_facts:o,include_tool_calls:i,tags:l,tags_match:d,max_tokens:u,fact_types:p,exclude_mental_models:c,exclude_mental_model_ids:h}=t,x={query:a,budget:n||(s?"mid":"low"),tags:l,tags_match:d,max_tokens:u||void 0,fact_types:p||void 0,exclude_mental_models:c||void 0,exclude_mental_model_ids:h||void 0},v={};o&&(v.facts={}),i&&(v.tool_calls={}),Object.keys(v).length>0&&(x.include=v);let R=await m.sdk.reflect({client:w.lowLevelClient,path:{bank_id:r},body:x});return g.NextResponse.json(R.data,{status:200})}catch(e){return console.error("Error reflecting:",e),g.NextResponse.json({error:"Failed to reflect"},{status:500})}}e.s(["POST",0,E],65783);var y=e.i(65783);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/reflect/route",pathname:"/api/reflect",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/reflect/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:b,workUnitAsyncStorage:_,serverHooks:A}=C;async function N(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/reflect/route";g=g.replace(/\/index$/,"")||"/";let w=await C.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:m,params:E,nextConfig:y,parsedUrl:b,isDraftMode:_,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:k,revalidateOnlyGenerated:T,resolvedPathname:P,clientReferenceManifest:q,serverActionsManifest:O}=w,S=(0,i.normalizeAppPath)(g),j=!!(A.dynamicRoutes[S]||A.routes[P]),H=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,b,!1):t.end("This page could not be found"),null);if(j&&!_){let e=!!A.routes[P],t=A.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await H();throw new R.NoFallbackError}}let I=null;!j||C.isDev||_||(I="/index"===(I=P)?"/":I);let U=!0===C.isDev||!j,M=j&&!U;O&&q&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:q,serverActionsManifest:O});let D=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==N?void 0:N.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,y,A,B);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:U,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,N)},sharedContext:{buildId:m}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${g}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!B&&k&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[v.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=v.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=v.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:k})},!1,N),t}},d=await C.handleResponse({req:e,nextConfig:y,cacheKey:I,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:k,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!j)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",k?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return B&&j||u.delete(v.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof R.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:k})},!1,N),j)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,N,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:b,workUnitAsyncStorage:_})},"routeModule",0,C,"serverHooks",0,A,"workAsyncStorage",0,b,"workUnitAsyncStorage",0,_],35701)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0sfmlxb._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},72714,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),c=e.i(48886),p=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),m=e.i(93695);e.i(28825);var v=e.i(64694),g=e.i(39327),f=e.i(25134),w=e.i(27181);async function E(e,{params:t}){try{let{documentId:r}=await t,a=e.nextUrl.searchParams.get("bank_id");if(!a)return g.NextResponse.json({error:"bank_id is required"},{status:400});let n=await w.sdk.getDocument({client:f.lowLevelClient,path:{bank_id:a,document_id:r}});return g.NextResponse.json(n.data,{status:200})}catch(e){return console.error("Error fetching document:",e),g.NextResponse.json({error:"Failed to fetch document"},{status:500})}}async function C(e,{params:t}){try{let{documentId:r}=await t,a=e.nextUrl.searchParams.get("bank_id");if(!a)return g.NextResponse.json({error:"bank_id is required"},{status:400});let n=await e.json(),s=await fetch((0,f.dataplaneBankUrl)(a,`/documents/${encodeURIComponent(r)}`),{method:"PATCH",headers:(0,f.getDataplaneHeaders)({"Content-Type":"application/json"}),body:JSON.stringify(n)});if(!s.ok){let e=await s.json().catch(()=>({detail:s.statusText}));return g.NextResponse.json(e,{status:s.status})}let o=await s.json();return g.NextResponse.json(o,{status:200})}catch(e){return console.error("Error updating document tags:",e),g.NextResponse.json({error:"Failed to update document tags"},{status:500})}}async function y(e,{params:t}){try{let{documentId:r}=await t,a=e.nextUrl.searchParams.get("bank_id");if(!a)return g.NextResponse.json({error:"bank_id is required"},{status:400});let n=await w.sdk.deleteDocument({client:f.lowLevelClient,path:{bank_id:a,document_id:r}});return g.NextResponse.json(n.data,{status:200})}catch(e){return console.error("Error deleting document:",e),g.NextResponse.json({error:"Failed to delete document"},{status:500})}}e.s(["DELETE",0,y,"GET",0,E,"PATCH",0,C],24770);var b=e.i(24770);let N=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/documents/[documentId]/route",pathname:"/api/documents/[documentId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/documents/[documentId]/route.ts",nextConfigOutput:"standalone",userland:b}),{workAsyncStorage:k,workUnitAsyncStorage:A,serverHooks:_}=N;async function j(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),N.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/documents/[documentId]/route";g=g.replace(/\/index$/,"")||"/";let f=await N.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!f)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:C,parsedUrl:y,isDraftMode:b,prerenderManifest:k,routerServerContext:A,isOnDemandRevalidate:_,revalidateOnlyGenerated:j,resolvedPathname:T,clientReferenceManifest:P,serverActionsManifest:q}=f,S=(0,i.normalizeAppPath)(g),O=!!(k.dynamicRoutes[S]||k.routes[T]),I=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,y,!1):t.end("This page could not be found"),null);if(O&&!b){let e=!!k.routes[T],t=k.dynamicRoutes[S];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await I();throw new m.NoFallbackError}}let U=null;!O||N.isDev||b||(U="/index"===(U=T)?"/":U);let H=!0===N.isDev||!O,D=O&&!H;q&&P&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:P,serverActionsManifest:q});let M=e.method||"GET",F=(0,s.getTracer)(),$=F.getActiveScopeSpan(),K=!!(null==A?void 0:A.isWrappedByNextServer),L=!!(0,n.getRequestMeta)(e,"minimalMode"),B=(0,n.getRequestMeta)(e,"incrementalCache")||await N.getIncrementalCache(e,C,k,L);null==B||B.resetRequestCache(),globalThis.__incrementalCache=B;let G={params:E,previewProps:k.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:H,incrementalCache:B,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>N.onRequestError(e,t,a,n,A)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>N.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${M} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${M} ${g}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!L&&_&&j&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,p.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await N.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,A),t}},d=await N.handleResponse({req:e,nextConfig:C,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:k,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:j,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:L});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",_?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return L&&O||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};K&&$?await i($):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${M} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":M,"http.target":e.url}},i),void 0,!K))}catch(t){if(t instanceof m.NoFallbackError||await N.onRequestError(e,t,{routerKind:"App Router",routePath:S,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:_})},!1,A),O)throw t;return await (0,p.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,j,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:A})},"routeModule",0,N,"serverHooks",0,_,"workAsyncStorage",0,k,"workUnitAsyncStorage",0,A],72714)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0sppjv6._.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
module.exports=[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"))},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"))},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"))},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"))},66783,e=>{"use strict";var t=e.i(72568),r=e.i(7108),a=e.i(51953),n=e.i(84266),s=e.i(67173),o=e.i(79722),i=e.i(43740),l=e.i(40344),d=e.i(66182),u=e.i(58682),p=e.i(48886),c=e.i(86573),h=e.i(3341),x=e.i(9629),R=e.i(64331),v=e.i(93695);e.i(28825);var b=e.i(64694),g=e.i(39327),w=e.i(25134),f=e.i(27181);async function k(e,{params:t}){try{let{bankId:r}=await t,a=await e.json();if(!r)return g.NextResponse.json({error:"bank_id is required"},{status:400});let n=await f.sdk.createOrUpdateBank({client:w.lowLevelClient,path:{bank_id:r},body:{name:a.name,mission:a.mission,disposition:a.disposition}});if(n.error)return console.error("API error updating bank:",n.error),g.NextResponse.json({error:"Failed to update bank"},{status:500});return g.NextResponse.json(n.data,{status:200})}catch(e){return console.error("Error updating bank:",e),g.NextResponse.json({error:"Failed to update bank"},{status:500})}}async function m(e,{params:t}){try{let{bankId:r}=await t,a=await e.json();if(!r)return g.NextResponse.json({error:"bank_id is required"},{status:400});let n=await f.sdk.updateBank({client:w.lowLevelClient,path:{bank_id:r},body:{name:a.name,mission:a.mission,disposition:a.disposition}});if(n.error)return console.error("API error patching bank:",n.error),g.NextResponse.json({error:"Failed to update bank"},{status:500});return g.NextResponse.json(n.data,{status:200})}catch(e){return console.error("Error patching bank:",e),g.NextResponse.json({error:"Failed to update bank"},{status:500})}}async function E(e,{params:t}){try{let{bankId:e}=await t;if(!e)return g.NextResponse.json({error:"bank_id is required"},{status:400});let r=await f.sdk.deleteBank({client:w.lowLevelClient,path:{bank_id:e}});if(r.error)return console.error("API error deleting bank:",r.error),g.NextResponse.json({error:"Failed to delete bank"},{status:500});return g.NextResponse.json(r.data,{status:200})}catch(e){return console.error("Error deleting bank:",e),g.NextResponse.json({error:"Failed to delete bank"},{status:500})}}e.s(["DELETE",0,E,"PATCH",0,m,"PUT",0,k],67024);var y=e.i(67024);let C=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/banks/[bankId]/route",pathname:"/api/banks/[bankId]",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/hindsight-control-plane/src/app/api/banks/[bankId]/route.ts",nextConfigOutput:"standalone",userland:y}),{workAsyncStorage:N,workUnitAsyncStorage:A,serverHooks:j}=C;async function P(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),C.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/banks/[bankId]/route";g=g.replace(/\/index$/,"")||"/";let w=await C.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:f,params:k,nextConfig:m,parsedUrl:E,isDraftMode:y,prerenderManifest:N,routerServerContext:A,isOnDemandRevalidate:j,revalidateOnlyGenerated:P,resolvedPathname:T,clientReferenceManifest:_,serverActionsManifest:q}=w,I=(0,i.normalizeAppPath)(g),O=!!(N.dynamicRoutes[I]||N.routes[T]),S=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,E,!1):t.end("This page could not be found"),null);if(O&&!y){let e=!!N.routes[T],t=N.dynamicRoutes[I];if(t&&!1===t.fallback&&!e){if(m.adapterPath)return await S();throw new v.NoFallbackError}}let H=null;!O||C.isDev||y||(H="/index"===(H=T)?"/":H);let U=!0===C.isDev||!O,M=O&&!U;q&&_&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:_,serverActionsManifest:q});let D=e.method||"GET",F=(0,s.getTracer)(),B=F.getActiveScopeSpan(),L=!!(null==A?void 0:A.isWrappedByNextServer),$=!!(0,n.getRequestMeta)(e,"minimalMode"),K=(0,n.getRequestMeta)(e,"incrementalCache")||await C.getIncrementalCache(e,m,N,$);null==K||K.resetRequestCache(),globalThis.__incrementalCache=K;let G={params:k,previewProps:N.preview,renderOpts:{experimental:{authInterrupts:!!m.experimental.authInterrupts},cacheComponents:!!m.cacheComponents,supportsDynamicResponse:U,incrementalCache:K,cacheLifeProfiles:m.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>C.onRequestError(e,t,a,n,A)},sharedContext:{buildId:f}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let n,o=async e=>C.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${g}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!$&&j&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:b.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await C.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:j})},!1,A),t}},d=await C.handleResponse({req:e,nextConfig:m,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:N,isRoutePPREnabled:!1,isOnDemandRevalidate:j,revalidateOnlyGenerated:P,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:$});if(!O)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==b.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});$||t.setHeader("x-nextjs-cache",j?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),y&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return $&&O||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};L&&B?await i(B):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!L))}catch(t){if(t instanceof v.NoFallbackError||await C.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:j})},!1,A),O)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:N,workUnitAsyncStorage:A})},"routeModule",0,C,"serverHooks",0,j,"workAsyncStorage",0,N,"workUnitAsyncStorage",0,A],66783)}];
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=%5Broot-of-the-server%5D__0t1c109._.js.map
|