ropilot 0.1.15 → 0.1.17
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/lib/setup.js +22 -2
- package/package.json +1 -1
package/lib/setup.js
CHANGED
|
@@ -420,7 +420,10 @@ export async function init(providedApiKey = null) {
|
|
|
420
420
|
* Update prompts to latest version
|
|
421
421
|
*/
|
|
422
422
|
export async function update() {
|
|
423
|
-
console.log('
|
|
423
|
+
console.log('');
|
|
424
|
+
console.log('Updating Ropilot...');
|
|
425
|
+
console.log('===================');
|
|
426
|
+
console.log('');
|
|
424
427
|
|
|
425
428
|
const apiKey = getApiKey();
|
|
426
429
|
if (!apiKey) {
|
|
@@ -428,7 +431,24 @@ export async function update() {
|
|
|
428
431
|
process.exit(1);
|
|
429
432
|
}
|
|
430
433
|
|
|
431
|
-
|
|
434
|
+
console.log(`Using API key: ${apiKey.slice(0, 20)}...`);
|
|
435
|
+
console.log('');
|
|
436
|
+
|
|
437
|
+
// Re-install Studio plugin
|
|
438
|
+
await installPlugin();
|
|
432
439
|
console.log('');
|
|
440
|
+
|
|
441
|
+
// Re-download prompts
|
|
442
|
+
const pkg = await downloadPrompts(apiKey);
|
|
443
|
+
console.log('');
|
|
444
|
+
|
|
445
|
+
// Re-write project files
|
|
446
|
+
console.log('Updating project files...');
|
|
447
|
+
setupProjectPrompts(pkg);
|
|
448
|
+
console.log('');
|
|
449
|
+
|
|
433
450
|
console.log('Update complete!');
|
|
451
|
+
console.log('');
|
|
452
|
+
console.log('Note: Restart Roblox Studio to load the updated plugin.');
|
|
453
|
+
console.log('');
|
|
434
454
|
}
|