agentlife 2.6.18 → 2.6.20
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7512,12 +7512,13 @@ import * as fs14 from "node:fs/promises";
|
|
|
7512
7512
|
import * as fsSync4 from "node:fs";
|
|
7513
7513
|
import * as os8 from "node:os";
|
|
7514
7514
|
import * as path13 from "node:path";
|
|
7515
|
-
|
|
7515
|
+
import { fileURLToPath } from "node:url";
|
|
7516
7516
|
var PLUGIN_VERSION = (() => {
|
|
7517
7517
|
try {
|
|
7518
|
+
const moduleDir = path13.dirname(fileURLToPath(import.meta.url));
|
|
7518
7519
|
const candidates = [
|
|
7519
|
-
path13.join(
|
|
7520
|
-
path13.join(
|
|
7520
|
+
path13.join(moduleDir, "..", "package.json"),
|
|
7521
|
+
path13.join(moduleDir, "..", "..", "package.json")
|
|
7521
7522
|
];
|
|
7522
7523
|
for (const p of candidates) {
|
|
7523
7524
|
if (fsSync4.existsSync(p)) {
|