@mandors/cli 0.4.2 → 0.4.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/README.md CHANGED
@@ -48,6 +48,7 @@ Mandor is a CLI tool for managing tasks, features, and issues in AI agent workfl
48
48
 
49
49
  ---
50
50
 
51
+
51
52
  ## Core Concepts
52
53
 
53
54
  ### Entity Types
@@ -100,6 +101,7 @@ cancelled → (terminal, can reopen to any status)
100
101
 
101
102
  ---
102
103
 
104
+
103
105
  ## Installation
104
106
 
105
107
  ### Install with curl
@@ -118,6 +120,7 @@ mandor --help
118
120
 
119
121
  ---
120
122
 
123
+
121
124
  ## Quick Start
122
125
 
123
126
  ### 1. Initialize Workspace
@@ -160,7 +163,7 @@ mandor task create api-feature-xxx "Login Endpoint" \
160
163
  --test-cases "Valid creds return token|Invalid creds rejected|Tokens properly formatted" \
161
164
  --derivable-files "login_handler.go|login_test.go" \
162
165
  --library-needs "none" \
163
- --depends-on api-task-xxx-001 \
166
+ --depends-on api-feature-xxx-task-001 \
164
167
  --priority P1
165
168
  ```
166
169
 
@@ -187,6 +190,7 @@ mandor track feature api-feature-xxx # Now shows "Login Endpoint" as ready
187
190
 
188
191
  ---
189
192
 
193
+
190
194
  ## Commands Reference
191
195
 
192
196
  ### Workspace Commands
@@ -196,7 +200,7 @@ mandor track feature api-feature-xxx # Now shows "Login Endpoint" as ready
196
200
  mandor init [--workspace-name <name>] [-y]
197
201
 
198
202
  # View workspace and project status
199
- mandor status [--project <id>] [--json]
203
+ mandor status [--project <id>] [--summary] [--json]
200
204
 
201
205
  # Manage configuration
202
206
  mandor config get <key>
@@ -269,7 +273,7 @@ mandor feature update <feature-id> --project <id> [--name <text>] [--goal <goal>
269
273
 
270
274
  ```bash
271
275
  # Create a task
272
- mandor task create <feature-id> <name> --goal <goal> \
276
+ mandor task create <feature_id> <name> --goal <goal> \
273
277
  --implementation-steps <steps> --test-cases <cases> \
274
278
  --derivable-files <files> --library-needs <libs> \
275
279
  [--priority <priority>] [--depends-on <ids>]
@@ -302,11 +306,13 @@ mandor issue update <issue-id> [--name <text>] [--goal <goal>] [--priority <prio
302
306
 
303
307
  ```bash
304
308
  # AI-assisted documentation generation
305
- mandor ai --help
309
+ mandor ai agents
310
+ mandor ai claude
306
311
  ```
307
312
 
308
313
  ---
309
314
 
315
+
310
316
  ## Common Workflows
311
317
 
312
318
  ### Replace This (Markdown Plan Files)
@@ -330,7 +336,7 @@ mandor feature create "Authentication" --project api \
330
336
  --scope backend
331
337
 
332
338
  # Create tasks with explicit dependencies
333
- mandor task create auth-feature-id "JWT Parser" \
339
+ mandor task create api-feature-xxx "JWT Parser" \
334
340
  --goal "Validate JWT tokens..." \
335
341
  --implementation-steps "Step 1|Step 2" \
336
342
  --test-cases "Test invalid tokens|Test expired" \
@@ -338,14 +344,14 @@ mandor task create auth-feature-id "JWT Parser" \
338
344
  --library-needs "jsonwebtoken" \
339
345
  --priority P1
340
346
 
341
- mandor task create auth-feature-id "Login Endpoint" \
347
+ mandor task create api-feature-xxx "Login Endpoint" \
342
348
  --goal "Accept credentials and return JWT..." \
343
- --depends-on jwt-parser-task-id \
349
+ --depends-on api-feature-xxx-task-001 \
344
350
  --priority P1
345
351
 
346
352
  # Real-time progress queries
347
- mandor track feature auth-feature-id # See all tasks and status
348
- mandor track task jwt-parser-task-id # See specific task details
353
+ mandor track feature api-feature-xxx # See all tasks and status
354
+ mandor track task api-feature-xxx-task-001 # See specific task details
349
355
  ```
350
356
 
351
357
  **Benefits:**
@@ -369,48 +375,49 @@ mandor status --project api
369
375
  mandor track project api
370
376
 
371
377
  # Create tasks with dependencies
372
- mandor task create feature-id "Step 2" \
378
+ mandor task create api-feature-xxx "Task" \
373
379
  --goal "..." \
374
380
  --implementation-steps "..." \
375
381
  --test-cases "..." \
376
382
  --derivable-files "..." \
377
383
  --library-needs "..." \
378
- --depends-on task-id-1|task-id-2
384
+ --depends-on api-feature-xxx-task-001
379
385
 
380
386
  # See all feature tasks with status
381
- mandor track feature feature-id
387
+ mandor track feature api-feature-xxx
382
388
 
383
389
  # Mark as done (auto-unblocks dependents)
384
- mandor task update task-id --status done
390
+ mandor task update api-feature-xxx-task-001 --status done
385
391
 
386
392
  # Verify dependents auto-transitioned to ready
387
- mandor track feature feature-id
393
+ mandor track feature api-feature-xxx
388
394
  ```
389
395
 
390
396
  ### Issue Tracking
391
397
 
392
398
  ```bash
393
399
  # Create a bug issue
394
- mandor issue create "Fix memory leak in auth" \
400
+ mandor issue create "Memory leak in auth handler" \
395
401
  --project api \
396
402
  --type bug \
397
403
  --priority P0 \
398
- --goal "Goroutine leak in token refresh handler..." \
404
+ --goal "Goroutine not cleaned up in token refresh handler..." \
399
405
  --affected-files "src/handlers/auth.go|src/middleware/auth.go" \
400
406
  --affected-tests "src/handlers/auth_test.go" \
401
- --implementation-steps "Identify leak|Add cleanup|Test|Verify"
407
+ --implementation-steps "Identify|Fix|Add tests|Verify" \
408
+ --library-needs "none"
402
409
 
403
410
  # View issue details
404
- mandor issue detail issue-id --project api
411
+ mandor issue detail api-issue-abc123
405
412
 
406
413
  # Start working on an issue
407
- mandor issue update issue-id --start
414
+ mandor issue update api-issue-abc123 --start
408
415
 
409
416
  # Mark as resolved
410
- mandor issue update issue-id --resolve
417
+ mandor issue update api-issue-abc123 --resolve
411
418
 
412
419
  # Mark as won't fix with reason
413
- mandor issue update issue-id --wontfix --reason "Working as intended"
420
+ mandor issue update api-issue-abc123 --wontfix --reason "Working as intended"
414
421
 
415
422
  # See project issues with track
416
423
  mandor track project api
@@ -437,6 +444,7 @@ mandor config reset default_priority
437
444
 
438
445
  ---
439
446
 
447
+
440
448
  ## Best Practices
441
449
 
442
450
  ### 1. Use Meaningful IDs
@@ -456,7 +464,7 @@ mandor project create p1
456
464
  mandor feature create f123
457
465
  ```
458
466
 
459
- ### 2. Write Clear Goals
467
+ ### 2. Write Clear Goals (min char requirement enforced)
460
468
 
461
469
  Goals should include:
462
470
  - What is being built/fixed
@@ -489,7 +497,13 @@ Deep dependency chains (>5 levels) are hard to manage. Consider breaking into sm
489
497
 
490
498
  ```bash
491
499
  # Good: tasks depend on other tasks in same feature
492
- mandor task create "Task B" --feature feature-id --depends-on task-a-id
500
+ mandor task create api-feature-xxx "Task B" \
501
+ --goal "..." \
502
+ --implementation-steps "..." \
503
+ --test-cases "..." \
504
+ --derivable-files "..." \
505
+ --library-needs "none" \
506
+ --depends-on api-feature-xxx-task-001
493
507
 
494
508
  # Consider splitting if: task chains exceed 5 levels
495
509
  ```
@@ -501,7 +515,12 @@ mandor task create "Task B" --feature feature-id --depends-on task-a-id
501
515
 
502
516
  ```bash
503
517
  # Feature work
504
- mandor task create "Add OAuth2" --feature api-auth
518
+ mandor task create api-feature-xxx "Add OAuth2" \
519
+ --goal "..." \
520
+ --implementation-steps "..." \
521
+ --test-cases "..." \
522
+ --derivable-files "..." \
523
+ --library-needs "..."
505
524
 
506
525
  # Bug fix
507
526
  mandor issue create "Fix auth timeout" --project api --type bug
@@ -512,11 +531,11 @@ mandor issue create "Fix auth timeout" --project api --type bug
512
531
  Always provide clear reasons when cancelling:
513
532
 
514
533
  ```bash
515
- mandor task update task-id --cancel --reason "Superseded by feature X"
516
- mandor feature update feature-id --project api --cancel --reason "Sticking with JWT, OAuth2 adds too much complexity"
534
+ mandor task update api-feature-xxx-task-001 --cancel --reason "Superseded by feature X"
535
+ mandor feature update api-feature-xxx --project api --cancel --reason "Sticking with JWT, OAuth2 adds too much complexity"
517
536
  ```
518
537
 
519
- ### 7. Use Pipe-Separated Lists
538
+ ### 7. Use Pipe Separators For Lists
520
539
 
521
540
  For flags accepting multiple values, use pipe separators:
522
541
 
@@ -531,16 +550,22 @@ For flags accepting multiple values, use pipe separators:
531
550
  --depends-on task-1|task-2|task-3
532
551
  ```
533
552
 
534
- ### 8. Use --dry-run to Preview Changes
553
+ ### 8. Use --dry-run Before Major Changes
535
554
 
536
555
  Before making significant updates, preview with `--dry-run`:
537
556
 
538
557
  ```bash
539
- mandor task update task-id --status done --cancel --dry-run
540
- mandor feature update feature-id --project api --cancel --reason "..." --dry-run
558
+ mandor task update api-feature-xxx-task-001 --status done --dry-run
559
+ mandor feature update api-feature-xxx --project api --cancel --reason "..." --dry-run
541
560
  ```
542
561
 
543
- ### 9. Set Configuration Early
562
+ ### 9. Dependency Auto-Resolution
563
+
564
+ - Mark task done → dependents auto-transition to ready
565
+ - Mark issue resolved → dependents auto-transition to ready
566
+ - Manual block → must manually unblock
567
+
568
+ ### 10. Configure Early, Rarely Change
544
569
 
545
570
  Configure workspace defaults at the start:
546
571
 
@@ -550,7 +575,7 @@ mandor config set default_priority P2
550
575
  mandor config set strict_mode true
551
576
  ```
552
577
 
553
- ### 10. Review Status Regularly
578
+ ### 11. Review Status Regularly
554
579
 
555
580
  ```bash
556
581
  # Workspace overview
@@ -563,14 +588,15 @@ mandor status --project api
563
588
  mandor track project api
564
589
 
565
590
  # See feature tasks
566
- mandor track feature feature-id
591
+ mandor track feature api-feature-xxx
567
592
 
568
593
  # See task details
569
- mandor track task task-id
594
+ mandor track task api-feature-xxx-task-001
570
595
  ```
571
596
 
572
597
  ---
573
598
 
599
+
574
600
  ## Troubleshooting
575
601
 
576
602
  ### "Command not found"
@@ -625,20 +651,26 @@ The transition isn't allowed by the state machine:
625
651
  Reopen the feature first:
626
652
 
627
653
  ```bash
628
- mandor feature update <id> --project <pid> --reopen
654
+ mandor feature update <feature-id> --project <project-id> --reopen
629
655
  ```
630
656
 
631
657
  ---
632
658
 
659
+
633
660
  ## Configuration Keys
634
661
 
635
662
  | Key | Type | Default | Description |
636
663
  |-----|------|---------|-------------|
637
664
  | `default_priority` | string | P3 | Default priority for new entities (P0-P5) |
638
665
  | `strict_mode` | boolean | false | Enable strict dependency validation |
666
+ | `goal.lengths.project` | integer | 500 | Min chars for project goal |
667
+ | `goal.lengths.feature` | integer | 300 | Min chars for feature goal |
668
+ | `goal.lengths.task` | integer | 500 | Min chars for task goal |
669
+ | `goal.lengths.issue` | integer | 200 | Min chars for issue goal |
639
670
 
640
671
  ---
641
672
 
673
+
642
674
  ## File Structure
643
675
 
644
676
  ```
@@ -655,6 +687,7 @@ mandor feature update <id> --project <pid> --reopen
655
687
 
656
688
  ---
657
689
 
690
+
658
691
  ## Support
659
692
 
660
693
  - Issues: https://github.com/sanxzy/mandor/issues
@@ -663,4 +696,5 @@ mandor feature update <id> --project <pid> --reopen
663
696
 
664
697
  ---
665
698
 
699
+
666
700
  **Built for AI Agent Workflows**
Binary file
Binary file
Binary file
Binary file
package/binaries/mandor CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mandors/cli",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Event-based task manager CLI for AI agent workflows",
5
5
  "main": "npm/lib/index.js",
6
6
  "bin": {