@starlink-awaken/agentmesh 1.2.2 → 1.2.3
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/src/cli.js +1 -1
- package/dist/src/core/config.js +4 -1
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import { existsSync, readFileSync } from 'node:fs';
|
|
|
7
7
|
import { resolve, dirname, join } from 'node:path';
|
|
8
8
|
import { initLogger } from './core/logger.js';
|
|
9
9
|
const PROJECT_ROOT = resolve(dirname(import.meta.dir), '..');
|
|
10
|
-
const VERSION = '1.2.
|
|
10
|
+
const VERSION = '1.2.3';
|
|
11
11
|
const BANNER = `
|
|
12
12
|
█████╗ ██████╗ ███████╗███╗ ██╗████████╗
|
|
13
13
|
██╔══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝
|
package/dist/src/core/config.js
CHANGED
|
@@ -24,7 +24,10 @@ export function loadConfig(configPath) {
|
|
|
24
24
|
}
|
|
25
25
|
const pkgDir = (() => {
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
let d = import.meta.dir || import.meta.dirname || '';
|
|
28
|
+
for (let i = 0; i < 4; i++)
|
|
29
|
+
d = dirname(d); // 上溯到包根
|
|
30
|
+
return d;
|
|
28
31
|
}
|
|
29
32
|
catch {
|
|
30
33
|
return '';
|