schub 0.1.3 → 0.1.4

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 (76) hide show
  1. package/README.md +27 -0
  2. package/dist/index.js +17231 -7669
  3. package/package.json +5 -2
  4. package/skills/create-proposal/SKILL.md +4 -0
  5. package/skills/create-tasks/SKILL.md +2 -1
  6. package/skills/implement-task/SKILL.md +6 -1
  7. package/skills/review-proposal/SKILL.md +1 -0
  8. package/skills/update-roadmap/SKILL.md +23 -0
  9. package/src/changes.test.ts +119 -5
  10. package/src/changes.ts +136 -54
  11. package/src/commands/adr.test.ts +5 -4
  12. package/src/commands/changes.test.ts +6 -6
  13. package/src/commands/cookbook.test.ts +5 -4
  14. package/src/commands/init.ts +5 -0
  15. package/src/commands/review.test.ts +5 -4
  16. package/src/commands/review.ts +1 -1
  17. package/src/commands/roadmap.test.ts +84 -0
  18. package/src/commands/roadmap.ts +84 -0
  19. package/src/commands/tasks-create.test.ts +1 -1
  20. package/src/commands/tasks-implement.test.ts +253 -0
  21. package/src/commands/tasks-implement.ts +121 -0
  22. package/src/commands/tasks-update.test.ts +92 -0
  23. package/src/commands/tasks.ts +98 -1
  24. package/src/features/roadmap/index.ts +230 -0
  25. package/src/features/roadmap/roadmap.test.ts +77 -0
  26. package/src/features/tasks/constants.ts +1 -0
  27. package/src/features/tasks/create.ts +9 -7
  28. package/src/features/tasks/filesystem.test.ts +221 -4
  29. package/src/features/tasks/filesystem.ts +124 -40
  30. package/src/features/tasks/graph.ts +18 -3
  31. package/src/features/tasks/index.ts +10 -1
  32. package/src/features/tasks/worktree.ts +48 -0
  33. package/src/frontmatter.ts +115 -0
  34. package/src/index.test.ts +42 -6
  35. package/src/index.ts +225 -118
  36. package/src/opencode.test.ts +53 -0
  37. package/src/opencode.ts +71 -3
  38. package/src/tasks.ts +1 -0
  39. package/src/tui/App.test.tsx +418 -0
  40. package/src/tui/App.tsx +343 -0
  41. package/src/{components → tui/components}/PlanView.test.tsx +26 -38
  42. package/src/tui/components/PlanView.tsx +89 -0
  43. package/src/tui/components/PreviewPage.test.tsx +69 -0
  44. package/src/tui/components/PreviewPage.tsx +87 -0
  45. package/src/tui/components/ProposalDetailView.test.tsx +169 -0
  46. package/src/tui/components/ProposalDetailView.tsx +166 -0
  47. package/src/tui/components/RoadmapView.test.tsx +85 -0
  48. package/src/tui/components/RoadmapView.tsx +369 -0
  49. package/src/tui/components/StatusView.test.tsx +1351 -0
  50. package/src/tui/components/StatusView.tsx +519 -0
  51. package/src/tui/components/markdown-renderer.test.ts +46 -0
  52. package/src/tui/components/markdown-renderer.ts +89 -0
  53. package/src/tui/components/status-view-data.ts +322 -0
  54. package/src/tui/components/status-view-render.tsx +329 -0
  55. package/src/tui/index.ts +16 -0
  56. package/templates/create-proposal/adr-template.md +6 -4
  57. package/templates/create-proposal/cookbook-template.md +5 -3
  58. package/templates/create-proposal/proposal-template.md +8 -6
  59. package/templates/create-roadmap/roadmap.md +5 -0
  60. package/templates/create-tasks/task-template.md +9 -4
  61. package/templates/review-proposal/q&a-template.md +8 -3
  62. package/templates/review-proposal/review-me-template.md +6 -4
  63. package/templates/setup-project/project-overview-template.md +5 -0
  64. package/templates/setup-project/project-setup-template.md +5 -0
  65. package/templates/setup-project/project-wow-template.md +5 -0
  66. package/src/App.test.tsx +0 -145
  67. package/src/App.tsx +0 -172
  68. package/src/components/PlanView.tsx +0 -160
  69. package/src/components/StatusView.test.tsx +0 -432
  70. package/src/components/StatusView.tsx +0 -420
  71. package/src/ide.ts +0 -7
  72. package/templates/templates-parity.test.ts +0 -45
  73. /package/src/{clipboard.ts → tui/clipboard.ts} +0 -0
  74. /package/src/{components → tui/components}/statusColor.ts +0 -0
  75. /package/src/{terminal.test.ts → tui/terminal.test.ts} +0 -0
  76. /package/src/{terminal.ts → tui/terminal.ts} +0 -0
package/README.md CHANGED
@@ -37,6 +37,33 @@ If no command is provided, the interactive UI dashboard will launch.
37
37
 
38
38
  - `schub tasks create` - Generate task files based on a change proposal.
39
39
  - `schub tasks list` - List all tasks in the current project context.
40
+ - `schub tasks update` - Move backlog tasks to `ready` or `archived`.
41
+ - `schub tasks implement` - Move a task to `wip` and launch Opencode (default `worktree` mode).
42
+
43
+ ##### Task implementation
44
+
45
+ ```bash
46
+ schub tasks implement --id T0007
47
+ schub tasks implement --id T0007 --mode none
48
+ ```
49
+
50
+ - `--mode` defaults to `worktree`, creating `.schub/worktrees/<id>` on branch `task/<id>`.
51
+ - `--mode none` runs from the current repo without a worktree.
52
+ - `--worktree-root` overrides the default `.schub/worktrees` location.
53
+
54
+ ##### Task status updates
55
+
56
+ ```bash
57
+ schub tasks update --id T0004 --id T0005 --status ready
58
+ ```
59
+
60
+ - `--id` (repeatable) selects backlog task IDs to move.
61
+ - `--status` sets the target status: `ready` or `archived`.
62
+
63
+ ##### Status view shortcut
64
+
65
+ In Status view, press `s` on a selected backlog or ready task to open the status modal.
66
+ For backlog tasks choose `Ready` or `Archive`. For ready tasks choose `Backlog` or `Archive`, then press enter to confirm or esc to cancel.
40
67
 
41
68
  #### Reviews & Documentation
42
69