openthrottle 0.1.5 → 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.
Files changed (2) hide show
  1. package/dist/init.js +10 -6
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -287,7 +287,9 @@ function setupDaytona(config) {
287
287
  console.log(` Snapshot already exists: ${snapshotName}`);
288
288
  }
289
289
  else {
290
- console.log(` Snapshot creation failed. You can create it manually:`);
290
+ const detail = getErrorMessage(err);
291
+ console.log(` Snapshot creation failed: ${detail}`);
292
+ console.log(` You can create it manually:`);
291
293
  console.log(` daytona snapshot create ${snapshotName} --image ${image} --cpu 2 --memory 4 --disk 10`);
292
294
  }
293
295
  }
@@ -304,9 +306,10 @@ async function pushSecrets(config) {
304
306
  try {
305
307
  execFileSync('gh', ['auth', 'status'], { stdio: 'pipe' });
306
308
  }
307
- catch {
308
- console.log('\n gh CLI not authenticated — skipping secret push.');
309
- console.log(' Run "gh auth login" then set secrets manually.\n');
309
+ catch (err) {
310
+ const detail = getErrorMessage(err);
311
+ console.log(`\n gh CLI check failed: ${detail}`);
312
+ console.log(' Skipping secret push. Run "gh auth login" then set secrets manually.\n');
310
313
  return;
311
314
  }
312
315
  // Detect repo
@@ -316,8 +319,9 @@ async function pushSecrets(config) {
316
319
  encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'],
317
320
  }).trim();
318
321
  }
319
- catch {
320
- console.log('\n Could not detect GitHub repo — skipping secret push.\n');
322
+ catch (err) {
323
+ console.log(`\n Could not detect GitHub repo: ${getErrorMessage(err)}`);
324
+ console.log(' Skipping secret push.\n');
321
325
  return;
322
326
  }
323
327
  // Show what we'd push
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openthrottle",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "CLI for Open Throttle — ship prompts to Daytona sandboxes.",
5
5
  "type": "module",
6
6
  "bin": {