{"draft":null,"from":58,"to":59,"files":[{"path":"client/src/client-version.ts","added":11,"removed":1,"diff":"--- a/client/src/client-version.ts\n+++ b/client/src/client-version.ts\n@@ -65,6 +65,15 @@\n \treturn typeof stamp === \"string\" && /^[0-9a-f]{7,64}$/.test(stamp) ? stamp.slice(0, 7) : undefined;\n }\n \n+/** Set by the npm package build: the package's version, such as 0.58.0. Absent everywhere else. */\n+function packageVersion(): string | undefined {\n+\tconst stamp = (globalThis as { __ABSO_PACKAGE_VERSION__?: unknown }).__ABSO_PACKAGE_VERSION__;\n+\treturn typeof stamp === \"string\" && /^\\d+\\.\\d+\\.\\d+$/.test(stamp) ? stamp : undefined;\n+}\n+\n+/** A built copy (the npm package or a downloaded abso.mjs), which has no mods to install from, rather than a checkout. */\n+export const builtCopy = (): boolean => packageVersion() !== undefined || bundledCommit() !== undefined;\n+\n let version: string | undefined;\n \n /**\n@@ -86,8 +95,9 @@\n \t}\n }\n \n-/** This client's version: 0.1.0+ed45dad, or plugin.json's alone outside a git checkout. */\n+/** This client's version: the npm package's (0.58.0), else 0.1.0+ed45dad, or plugin.json's alone outside a git checkout. */\n export function clientVersion(): string {\n+\tversion ??= packageVersion();\n \tif (version === undefined) {\n \t\tlet base = \"0.0.0\";\n \t\ttry {"}],"unmatched":[]}