open-agents-ai 0.184.50 → 0.184.52
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/dist/index.js +19 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62013,12 +62013,27 @@ import { randomBytes as randomBytes16 } from "node:crypto";
|
|
|
62013
62013
|
function getVersion3() {
|
|
62014
62014
|
try {
|
|
62015
62015
|
const require2 = createRequire2(import.meta.url);
|
|
62016
|
-
const
|
|
62017
|
-
const
|
|
62018
|
-
|
|
62016
|
+
const thisDir = dirname20(fileURLToPath12(import.meta.url));
|
|
62017
|
+
const candidates = [
|
|
62018
|
+
join69(thisDir, "..", "package.json"),
|
|
62019
|
+
join69(thisDir, "..", "..", "package.json"),
|
|
62020
|
+
join69(thisDir, "..", "..", "..", "package.json")
|
|
62021
|
+
];
|
|
62022
|
+
for (const pkgPath of candidates) {
|
|
62023
|
+
try {
|
|
62024
|
+
if (!existsSync52(pkgPath))
|
|
62025
|
+
continue;
|
|
62026
|
+
const pkg = require2(pkgPath);
|
|
62027
|
+
if (pkg.name === "open-agents-ai" || pkg.name === "@open-agents/cli" || pkg.name === "@open-agents/monorepo") {
|
|
62028
|
+
return pkg.version ?? "0.0.0";
|
|
62029
|
+
}
|
|
62030
|
+
} catch {
|
|
62031
|
+
continue;
|
|
62032
|
+
}
|
|
62033
|
+
}
|
|
62019
62034
|
} catch {
|
|
62020
|
-
return "0.0.0";
|
|
62021
62035
|
}
|
|
62036
|
+
return "0.0.0";
|
|
62022
62037
|
}
|
|
62023
62038
|
function recordMetric(method, path, status) {
|
|
62024
62039
|
const key = `${method}|${path}|${status}`;
|
package/package.json
CHANGED