@hasna/recordings 0.1.2 → 0.1.3

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/dist/cli/index.js CHANGED
@@ -1443,4 +1443,13 @@ args = []
1443
1443
  }
1444
1444
  }
1445
1445
  });
1446
+ program.command("remove <id>").alias("rm").alias("uninstall").alias("delete").description("Delete a recording by ID").action((id) => {
1447
+ const deleted = deleteRecording(id);
1448
+ if (deleted) {
1449
+ console.log(chalk.green(`\u2713 Recording ${id} deleted`));
1450
+ } else {
1451
+ console.error(chalk.red(`Recording not found: ${id}`));
1452
+ process.exit(1);
1453
+ }
1454
+ });
1446
1455
  program.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/recordings",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Speech-to-text recording tool with MCP and CLI — records, transcribes, and optionally enhances text using AI",
6
6
  "main": "dist/index.js",
package/src/cli/index.ts CHANGED
@@ -1073,6 +1073,24 @@ program
1073
1073
  }
1074
1074
  });
1075
1075
 
1076
+ // ── remove/uninstall ─────────────────────────────────────────────────────────
1077
+
1078
+ program
1079
+ .command("remove <id>")
1080
+ .alias("rm")
1081
+ .alias("uninstall")
1082
+ .alias("delete")
1083
+ .description("Delete a recording by ID")
1084
+ .action((id: string) => {
1085
+ const deleted = deleteRecording(id);
1086
+ if (deleted) {
1087
+ console.log(chalk.green(`✓ Recording ${id} deleted`));
1088
+ } else {
1089
+ console.error(chalk.red(`Recording not found: ${id}`));
1090
+ process.exit(1);
1091
+ }
1092
+ });
1093
+
1076
1094
  // ── Run ─────────────────────────────────────────────────────────────────────
1077
1095
 
1078
1096
  program.parse();