import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{createRequire as t}from"node:module";var n=e({RUNTIME_SERVICE_VERSION_FALLBACK:()=>o,VERSION:()=>l,resolveRuntimeServiceVersion:()=>c,resolveUsableRuntimeVersion:()=>s});const r=[`../package.json`,`../../package.json`,`../../../package.json`,`./package.json`];function i(e,n,r={}){try{let i=t(e),a=r.field??`version`;for(let e of n)try{let t=i(e),n=t[a]?.trim();if(!n||r.requirePackageName&&t.name!==`@qqbrowser/openclaw-qbot`)continue;return n}catch{}return null}catch{return null}}function a(...e){for(let t of e){let e=t?.trim();if(e)return e}}const o=`unknown`;function s(e){let t=e?.trim();if(!(!t||t===`0.0.0`))return t}function c(e=process.env,t=o){let n=s(l);return a(e.OPENCLAW_VERSION,n,e.OPENCLAW_SERVICE_VERSION,e.npm_package_version)??t}const l=i(import.meta.url,r,{field:`version`})??`0.0.0`;export{c as n,n as r,l as t};
