jettypod 4.4.57 → 4.4.58

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.
@@ -6,7 +6,7 @@
6
6
  const sqlite3 = require('sqlite3').verbose();
7
7
  const { getDb, closeDb, dbPath, waitForMigrations } = require('../../lib/database');
8
8
  const { getCurrentWork } = require('../../lib/current-work');
9
- const { TYPE_EMOJIS, STATUS_EMOJIS } = require('../../lib/constants');
9
+ const { TYPE_EMOJIS, STATUS_EMOJIS, VALID_STATUSES } = require('../../lib/constants');
10
10
  const { wrapText, getTerminalWidth, getVisualWidth } = require('../../lib/text-wrapper');
11
11
 
12
12
  const db = getDb();
@@ -1540,6 +1540,27 @@ async function main() {
1540
1540
  case 'status': {
1541
1541
  const id = parseInt(args[0]);
1542
1542
  const status = args[1];
1543
+
1544
+ if (!id || isNaN(id)) {
1545
+ console.error('Error: Work item ID is required');
1546
+ console.log('Usage: jettypod work status <id> <status>');
1547
+ console.log(`Valid statuses: ${VALID_STATUSES.join(', ')}`);
1548
+ process.exit(1);
1549
+ }
1550
+
1551
+ if (!status) {
1552
+ console.error('Error: Status is required');
1553
+ console.log('Usage: jettypod work status <id> <status>');
1554
+ console.log(`Valid statuses: ${VALID_STATUSES.join(', ')}`);
1555
+ process.exit(1);
1556
+ }
1557
+
1558
+ if (!VALID_STATUSES.includes(status)) {
1559
+ console.error(`Error: Invalid status "${status}"`);
1560
+ console.log(`Valid statuses: ${VALID_STATUSES.join(', ')}`);
1561
+ process.exit(1);
1562
+ }
1563
+
1543
1564
  try {
1544
1565
  await updateStatus(id, status);
1545
1566
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jettypod",
3
- "version": "4.4.57",
3
+ "version": "4.4.58",
4
4
  "description": "AI-powered development workflow manager with TDD, BDD, and automatic test generation",
5
5
  "main": "jettypod.js",
6
6
  "bin": {