@ai-setting/roy-agent-cli 1.7.9 → 1.7.10
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/bin/roy-agent.js
CHANGED
|
@@ -9461,7 +9461,7 @@ class CliQuietModeService {
|
|
|
9461
9461
|
// package.json
|
|
9462
9462
|
var package_default = {
|
|
9463
9463
|
name: "@ai-setting/roy-agent-cli",
|
|
9464
|
-
version: "1.7.
|
|
9464
|
+
version: "1.7.10",
|
|
9465
9465
|
type: "module",
|
|
9466
9466
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9467
9467
|
main: "./dist/index.js",
|
|
@@ -25584,19 +25584,19 @@ function cleanupStaleCpCopy(packageName) {
|
|
|
25584
25584
|
}
|
|
25585
25585
|
}
|
|
25586
25586
|
async function verifyInstalledVersion(packageName, declaredVersion) {
|
|
25587
|
-
try {
|
|
25588
|
-
await import(packageName);
|
|
25589
|
-
} catch {
|
|
25590
|
-
return { ok: false, reason: "not-importable", actualVersion: null };
|
|
25591
|
-
}
|
|
25592
25587
|
const actual = readPackageInfo(packageName);
|
|
25593
25588
|
if (!actual || !actual.version) {
|
|
25594
25589
|
return { ok: false, reason: "no-version", actualVersion: null };
|
|
25595
25590
|
}
|
|
25596
|
-
if (actual.version
|
|
25597
|
-
return { ok:
|
|
25591
|
+
if (actual.version !== declaredVersion) {
|
|
25592
|
+
return { ok: false, reason: "version-mismatch", actualVersion: actual.version };
|
|
25593
|
+
}
|
|
25594
|
+
try {
|
|
25595
|
+
await import(packageName);
|
|
25596
|
+
} catch (e) {
|
|
25597
|
+
console.warn(`⚠️ verifyInstalledVersion: dynamic import of '${packageName}' failed but version check passed (npm global root may not be in Node module resolution path): ${e.message}`);
|
|
25598
25598
|
}
|
|
25599
|
-
return { ok:
|
|
25599
|
+
return { ok: true, actualVersion: actual.version };
|
|
25600
25600
|
}
|
|
25601
25601
|
function getPackageManagerCommand() {
|
|
25602
25602
|
if (existsSync4(join5(process.cwd(), "pnpm-lock.yaml"))) {
|
package/dist/index.js
CHANGED
|
@@ -9460,7 +9460,7 @@ class CliQuietModeService {
|
|
|
9460
9460
|
// package.json
|
|
9461
9461
|
var package_default = {
|
|
9462
9462
|
name: "@ai-setting/roy-agent-cli",
|
|
9463
|
-
version: "1.7.
|
|
9463
|
+
version: "1.7.10",
|
|
9464
9464
|
type: "module",
|
|
9465
9465
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9466
9466
|
main: "./dist/index.js",
|
|
@@ -25583,19 +25583,19 @@ function cleanupStaleCpCopy(packageName) {
|
|
|
25583
25583
|
}
|
|
25584
25584
|
}
|
|
25585
25585
|
async function verifyInstalledVersion(packageName, declaredVersion) {
|
|
25586
|
-
try {
|
|
25587
|
-
await import(packageName);
|
|
25588
|
-
} catch {
|
|
25589
|
-
return { ok: false, reason: "not-importable", actualVersion: null };
|
|
25590
|
-
}
|
|
25591
25586
|
const actual = readPackageInfo(packageName);
|
|
25592
25587
|
if (!actual || !actual.version) {
|
|
25593
25588
|
return { ok: false, reason: "no-version", actualVersion: null };
|
|
25594
25589
|
}
|
|
25595
|
-
if (actual.version
|
|
25596
|
-
return { ok:
|
|
25590
|
+
if (actual.version !== declaredVersion) {
|
|
25591
|
+
return { ok: false, reason: "version-mismatch", actualVersion: actual.version };
|
|
25592
|
+
}
|
|
25593
|
+
try {
|
|
25594
|
+
await import(packageName);
|
|
25595
|
+
} catch (e) {
|
|
25596
|
+
console.warn(`⚠️ verifyInstalledVersion: dynamic import of '${packageName}' failed but version check passed (npm global root may not be in Node module resolution path): ${e.message}`);
|
|
25597
25597
|
}
|
|
25598
|
-
return { ok:
|
|
25598
|
+
return { ok: true, actualVersion: actual.version };
|
|
25599
25599
|
}
|
|
25600
25600
|
function getPackageManagerCommand() {
|
|
25601
25601
|
if (existsSync4(join5(process.cwd(), "pnpm-lock.yaml"))) {
|
|
Binary file
|