@delega-dev/cli 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.
package/README.md CHANGED
@@ -15,7 +15,7 @@ CLI for the Delega task API. Manage tasks, agents, and delegations from your ter
15
15
  ## Installation
16
16
 
17
17
  ```bash
18
- npm install -g delega-cli
18
+ npm install -g @delega-dev/cli
19
19
  ```
20
20
 
21
21
  ## Quick Start
@@ -50,7 +50,7 @@ const tasksList = new Command("list")
50
50
  const tasksCreate = new Command("create")
51
51
  .description("Create a new task")
52
52
  .argument("<content>", "Task content")
53
- .option("--priority <n>", "Priority 1-4 (default: 1)", parseInt, 1)
53
+ .option("--priority <n>", "Priority 1-4 (default: 1)", (v) => parseInt(v, 10), 1)
54
54
  .option("--labels <labels>", "Comma-separated labels")
55
55
  .option("--due <date>", "Due date (YYYY-MM-DD)")
56
56
  .option("--json", "Output raw JSON")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delega-dev/cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI for Delega task API",
5
5
  "type": "module",
6
6
  "bin": {
@@ -83,7 +83,7 @@ const tasksList = new Command("list")
83
83
  const tasksCreate = new Command("create")
84
84
  .description("Create a new task")
85
85
  .argument("<content>", "Task content")
86
- .option("--priority <n>", "Priority 1-4 (default: 1)", parseInt, 1)
86
+ .option("--priority <n>", "Priority 1-4 (default: 1)", (v: string) => parseInt(v, 10), 1)
87
87
  .option("--labels <labels>", "Comma-separated labels")
88
88
  .option("--due <date>", "Due date (YYYY-MM-DD)")
89
89
  .option("--json", "Output raw JSON")