@pkprosol/coach 1.0.1 → 1.0.2

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/bin/coach.js +40 -34
  2. package/package.json +1 -1
package/dist/bin/coach.js CHANGED
@@ -287,38 +287,44 @@ ${chalk.bold("Usage:")}
287
287
  `);
288
288
  }
289
289
  // --- Main ---
290
- const command = process.argv[2];
291
- switch (command) {
292
- case "handoff":
293
- handleHandoff();
294
- break;
295
- case "focus":
296
- handleFocus();
297
- break;
298
- case "recap":
299
- handleRecap();
300
- break;
301
- case "goals":
302
- handleGoals(process.argv.slice(3));
303
- break;
304
- case "compare":
305
- handleCompare();
306
- break;
307
- case "history":
308
- handleHistoryCmd();
309
- break;
310
- case "streak":
311
- handleStreakCmd();
312
- break;
313
- case "rate":
314
- handleRate(process.argv[3] ?? "");
315
- break;
316
- case "help":
317
- case "--help":
318
- case "-h":
319
- handleHelp();
320
- break;
321
- default:
322
- handleDefault();
323
- break;
290
+ async function main() {
291
+ const command = process.argv[2];
292
+ switch (command) {
293
+ case "handoff":
294
+ await handleHandoff();
295
+ break;
296
+ case "focus":
297
+ await handleFocus();
298
+ break;
299
+ case "recap":
300
+ handleRecap();
301
+ break;
302
+ case "goals":
303
+ handleGoals(process.argv.slice(3));
304
+ break;
305
+ case "compare":
306
+ handleCompare();
307
+ break;
308
+ case "history":
309
+ handleHistoryCmd();
310
+ break;
311
+ case "streak":
312
+ handleStreakCmd();
313
+ break;
314
+ case "rate":
315
+ handleRate(process.argv[3] ?? "");
316
+ break;
317
+ case "help":
318
+ case "--help":
319
+ case "-h":
320
+ handleHelp();
321
+ break;
322
+ default:
323
+ await handleDefault();
324
+ break;
325
+ }
324
326
  }
327
+ main().catch((err) => {
328
+ console.error(renderError(err.message ?? "Unexpected error"));
329
+ process.exit(1);
330
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pkprosol/coach",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Daily AI work coach — analyzes your Claude Code & Claude App sessions to deliver one lesson + one tip daily",
5
5
  "type": "module",
6
6
  "bin": {