{"version":3,"file":"version-bF2XjSm8.mjs","names":["pkg.version"],"sources":["../package.json","../src/version.ts"],"sourcesContent":["","import { performance } from \"node:perf_hooks\";\nimport { fileURLToPath } from \"node:url\";\nimport pkg from \"../package.json\" with { type: \"json\" };\nimport { createSourceBuildId } from \"./build-id.ts\";\n\ndeclare const __AGNTN_WEB_BUILD_ID__: string;\n\n/** The package build and process instance currently serving requests. */\nexport interface RuntimeInfo {\n  readonly version: string;\n  readonly buildId: string;\n  readonly processStartedAt: string;\n}\n\nexport const version: string = pkg.version;\nconst buildId =\n  typeof __AGNTN_WEB_BUILD_ID__ === \"undefined\"\n    ? createSourceBuildId(fileURLToPath(new URL(\"../\", import.meta.url)))\n    : __AGNTN_WEB_BUILD_ID__;\nconst processStartedAt = new Date(performance.timeOrigin).toISOString();\n/** Immutable identity of the loaded package and hosting process. */\nexport const runtimeInfo: RuntimeInfo = Object.freeze({ version, buildId, processStartedAt });\n"],"mappings":";;;ACcA,MAAa,UAAkBA;AAC/B,MAAM,UAAA;AAIN,MAAM,mBAAmB,IAAI,KAAK,YAAY,UAAU,CAAC,CAAC,YAAY;;AAEtE,MAAa,cAA2B,OAAO,OAAO;CAAE;CAAS;CAAS;AAAiB,CAAC"}