@telelabsai/ship 1.1.18 → 1.1.21
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/cli/commands/sync.js +15 -1
- package/package.json +1 -1
package/cli/commands/sync.js
CHANGED
|
@@ -114,7 +114,7 @@ function sync(args) {
|
|
|
114
114
|
process.exit(1);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
// Step 1: Add the marketplace
|
|
117
|
+
// Step 1: Add the marketplace and update to latest
|
|
118
118
|
console.log(' Adding marketplace...\n');
|
|
119
119
|
try {
|
|
120
120
|
execSync(`claude plugin marketplace add ${selected.deployUrl}`, {
|
|
@@ -126,6 +126,20 @@ function sync(args) {
|
|
|
126
126
|
process.exit(1);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
// Update marketplace to pull latest plugins
|
|
130
|
+
const mName = selected.marketplaceName;
|
|
131
|
+
if (mName) {
|
|
132
|
+
console.log(' Updating marketplace...\n');
|
|
133
|
+
try {
|
|
134
|
+
execSync(`claude plugin marketplace update ${mName}`, {
|
|
135
|
+
stdio: 'inherit',
|
|
136
|
+
cwd: process.cwd(),
|
|
137
|
+
});
|
|
138
|
+
} catch {
|
|
139
|
+
// Update may fail if already up to date, continue anyway
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
129
143
|
// Step 2: Install each plugin
|
|
130
144
|
const plugins = selected.plugins || [];
|
|
131
145
|
const marketplaceName = selected.marketplaceName;
|