@sk-labs/copilot-kit 3.0.3 ā 3.0.4
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/commands.js +10 -1
- package/package.json +1 -1
package/lib/commands.js
CHANGED
|
@@ -138,6 +138,9 @@ async function init(options) {
|
|
|
138
138
|
console.log(chalk.dim(' 2. Test auto-detection: "Create a responsive card component"'));
|
|
139
139
|
console.log(chalk.dim(' 3. Docs: https://github.com/sk-labs/copilot-kit\n'));
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
// Ensure process exits cleanly
|
|
143
|
+
process.exit(0);
|
|
141
144
|
} catch (error) {
|
|
142
145
|
if (spinner) spinner.fail(chalk.red('Installation failed'));
|
|
143
146
|
console.error(chalk.red('\nā Error:'), error.message);
|
|
@@ -192,6 +195,9 @@ async function update(options) {
|
|
|
192
195
|
if (!options.quiet) {
|
|
193
196
|
console.log(chalk.dim(`\nš¦ Updated ${fileCount} files\n`));
|
|
194
197
|
}
|
|
198
|
+
|
|
199
|
+
// Ensure process exits cleanly
|
|
200
|
+
process.exit(0);
|
|
195
201
|
} catch (error) {
|
|
196
202
|
if (spinner) spinner.fail(chalk.red('Update failed'));
|
|
197
203
|
console.error(chalk.red('\nā Error:'), error.message);
|
|
@@ -210,7 +216,7 @@ async function status(options) {
|
|
|
210
216
|
if (!fs.existsSync(githubPath)) {
|
|
211
217
|
console.log(chalk.red('ā Not installed'));
|
|
212
218
|
console.log(chalk.dim(' Run "copilot-kit init" to install\n'));
|
|
213
|
-
|
|
219
|
+
process.exit(0);
|
|
214
220
|
}
|
|
215
221
|
|
|
216
222
|
console.log(chalk.green('ā Installed'), chalk.dim(`at ${githubPath}`));
|
|
@@ -284,6 +290,9 @@ async function status(options) {
|
|
|
284
290
|
}
|
|
285
291
|
|
|
286
292
|
console.log();
|
|
293
|
+
|
|
294
|
+
// Ensure process exits cleanly
|
|
295
|
+
process.exit(0);
|
|
287
296
|
}
|
|
288
297
|
|
|
289
298
|
function downloadRepo(branch = 'main') {
|