@gricha/perry 0.3.1 → 0.3.2
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/README.md +1 -0
- package/dist/index.js +13 -0
- package/dist/perry-worker +0 -0
- package/dist/update-checker.js +1 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="https://gricha.github.io/perry/"><img src="https://img.shields.io/badge/docs-docusaurus-blue" alt="Documentation"></a>
|
|
9
|
+
<a href="https://discord.gg/s2KX8kTvGX"><img src="https://img.shields.io/discord/1459251359164666064?color=5865F2&label=discord" alt="Discord"></a>
|
|
9
10
|
<a href="https://github.com/gricha/perry/actions/workflows/test.yml"><img src="https://github.com/gricha/perry/actions/workflows/test.yml/badge.svg" alt="Tests"></a>
|
|
10
11
|
<a href="https://github.com/gricha/perry/releases"><img src="https://img.shields.io/github/v/release/gricha/perry" alt="Release"></a>
|
|
11
12
|
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
|
package/dist/index.js
CHANGED
|
@@ -659,6 +659,19 @@ sshCmd
|
|
|
659
659
|
}
|
|
660
660
|
await saveAgentConfig(config, configDir);
|
|
661
661
|
});
|
|
662
|
+
program
|
|
663
|
+
.command('update')
|
|
664
|
+
.description('Update Perry to the latest version')
|
|
665
|
+
.action(async () => {
|
|
666
|
+
const { spawn } = await import('child_process');
|
|
667
|
+
console.log('Updating Perry...');
|
|
668
|
+
const child = spawn('bash', ['-c', 'curl -fsSL https://raw.githubusercontent.com/gricha/perry/main/install.sh | bash'], {
|
|
669
|
+
stdio: 'inherit',
|
|
670
|
+
});
|
|
671
|
+
child.on('close', (code) => {
|
|
672
|
+
process.exit(code ?? 0);
|
|
673
|
+
});
|
|
674
|
+
});
|
|
662
675
|
program
|
|
663
676
|
.command('build')
|
|
664
677
|
.description('Build the workspace Docker image')
|
package/dist/perry-worker
CHANGED
|
Binary file
|
package/dist/update-checker.js
CHANGED
|
@@ -73,10 +73,7 @@ export async function checkForUpdates(currentVersion) {
|
|
|
73
73
|
}
|
|
74
74
|
if (latestVersion && compareVersions(currentVersion, latestVersion) > 0) {
|
|
75
75
|
console.log('');
|
|
76
|
-
console.log(`\x1b[
|
|
77
|
-
console.log(`\x1b[33m│\x1b[0m Update available: \x1b[90m${currentVersion}\x1b[0m → \x1b[32m${latestVersion}\x1b[0m \x1b[33m│\x1b[0m`);
|
|
78
|
-
console.log(`\x1b[33m│\x1b[0m Run: \x1b[36mcurl -fsSL https://raw.githubusercontent.com/${GITHUB_REPO}/main/install.sh | bash\x1b[0m \x1b[33m│\x1b[0m`);
|
|
79
|
-
console.log(`\x1b[33m╰──────────────────────────────────────────────────────────────────────────────────╯\x1b[0m`);
|
|
76
|
+
console.log(`\x1b[33mUpdate available: \x1b[90m${currentVersion}\x1b[0m → \x1b[32m${latestVersion}\x1b[0m \x1b[33mRun: \x1b[36mperry update\x1b[0m`);
|
|
80
77
|
console.log('');
|
|
81
78
|
}
|
|
82
79
|
}
|