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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. 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
- var __dirname = "/Users/acv/IdeaProjects/AgentLife/plugin/gateway";
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(__dirname, "..", "package.json"),
7520
- path13.join(__dirname, "..", "..", "package.json")
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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentlife",
3
- "version": "2.6.18",
3
+ "version": "2.6.20",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "bun build index.ts --outfile dist/index.js --target node --external openclaw/plugin-sdk",