@ai-setting/roy-agent-cli 1.7.9 → 1.7.11
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 +7 -12
- package/dist/index.js +7 -12
- package/dist/roy-agent-linux-x64/bin/roy-agent +0 -0
- package/package.json +1 -1
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.11",
|
|
9465
9465
|
type: "module",
|
|
9466
9466
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9467
9467
|
main: "./dist/index.js",
|
|
@@ -25584,19 +25584,14 @@ 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 };
|
|
25598
25593
|
}
|
|
25599
|
-
return { ok:
|
|
25594
|
+
return { ok: true, actualVersion: actual.version };
|
|
25600
25595
|
}
|
|
25601
25596
|
function getPackageManagerCommand() {
|
|
25602
25597
|
if (existsSync4(join5(process.cwd(), "pnpm-lock.yaml"))) {
|
|
@@ -25755,9 +25750,9 @@ var InstallPackageCommand = {
|
|
|
25755
25750
|
if (verify.ok === false) {
|
|
25756
25751
|
console.warn(`
|
|
25757
25752
|
⚠️ Post-install version drift detected for '${resolvedPackageName}':
|
|
25758
|
-
declared (plugins.json): ${plugin.version}
|
|
25759
|
-
actual (npm global root): ${verify.actualVersion ?? "(unknown)"}
|
|
25760
|
-
reason: ${verify.reason}
|
|
25753
|
+
` + ` declared (plugins.json): ${plugin.version}
|
|
25754
|
+
` + ` actual (npm global root): ${verify.actualVersion ?? "(unknown)"}
|
|
25755
|
+
` + ` reason: ${verify.reason}
|
|
25761
25756
|
` + ` 请检查 ~/.roy-agent/node_modules/${resolvedPackageName}/ 是否残留陈旧 cp 副本
|
|
25762
25757
|
`);
|
|
25763
25758
|
}
|
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.11",
|
|
9464
9464
|
type: "module",
|
|
9465
9465
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
9466
9466
|
main: "./dist/index.js",
|
|
@@ -25583,19 +25583,14 @@ 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 };
|
|
25597
25592
|
}
|
|
25598
|
-
return { ok:
|
|
25593
|
+
return { ok: true, actualVersion: actual.version };
|
|
25599
25594
|
}
|
|
25600
25595
|
function getPackageManagerCommand() {
|
|
25601
25596
|
if (existsSync4(join5(process.cwd(), "pnpm-lock.yaml"))) {
|
|
@@ -25754,9 +25749,9 @@ var InstallPackageCommand = {
|
|
|
25754
25749
|
if (verify.ok === false) {
|
|
25755
25750
|
console.warn(`
|
|
25756
25751
|
⚠️ Post-install version drift detected for '${resolvedPackageName}':
|
|
25757
|
-
declared (plugins.json): ${plugin.version}
|
|
25758
|
-
actual (npm global root): ${verify.actualVersion ?? "(unknown)"}
|
|
25759
|
-
reason: ${verify.reason}
|
|
25752
|
+
` + ` declared (plugins.json): ${plugin.version}
|
|
25753
|
+
` + ` actual (npm global root): ${verify.actualVersion ?? "(unknown)"}
|
|
25754
|
+
` + ` reason: ${verify.reason}
|
|
25760
25755
|
` + ` 请检查 ~/.roy-agent/node_modules/${resolvedPackageName}/ 是否残留陈旧 cp 副本
|
|
25761
25756
|
`);
|
|
25762
25757
|
}
|
|
Binary file
|