claude-raid 0.1.4 → 0.1.6
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/bin/cli.js +15 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -10,6 +10,20 @@ const versionCheck = require('../src/version-check');
|
|
|
10
10
|
const showUpdateNotice = versionCheck.start();
|
|
11
11
|
|
|
12
12
|
const COMMANDS = {
|
|
13
|
+
// Sync local with remote after CI version bump
|
|
14
|
+
sync: async () => {
|
|
15
|
+
const { execSync } = require('child_process');
|
|
16
|
+
console.log('\n' + banner());
|
|
17
|
+
console.log(header('Syncing with remote...') + '\n');
|
|
18
|
+
try {
|
|
19
|
+
execSync('git pull origin main', { stdio: 'inherit' });
|
|
20
|
+
console.log('');
|
|
21
|
+
return require('../src/init').run();
|
|
22
|
+
} catch (err) {
|
|
23
|
+
console.error(' ' + colors.red('Pull failed. Resolve conflicts first.'));
|
|
24
|
+
process.exit(1);
|
|
25
|
+
}
|
|
26
|
+
},
|
|
13
27
|
// Primary commands
|
|
14
28
|
summon: () => {
|
|
15
29
|
if (process.argv.includes('--dry-run')) {
|
|
@@ -43,6 +57,7 @@ if (!command || !COMMANDS[command]) {
|
|
|
43
57
|
['update', 'Reforge the party\'s arsenal'],
|
|
44
58
|
['dismantle', 'Dismantle the camp and retreat'],
|
|
45
59
|
['heal', 'Diagnose wounds and prepare for battle'],
|
|
60
|
+
['sync', 'Pull latest from remote + re-summon'],
|
|
46
61
|
];
|
|
47
62
|
for (const [name, desc] of cmds) {
|
|
48
63
|
console.log(' ' + colors.bold(name.padEnd(12)) + desc);
|