schub 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/index.js +263 -52
- package/package.json +1 -1
- package/skills/create-proposal/SKILL.md +1 -1
- package/skills/create-tasks/SKILL.md +3 -3
- package/skills/review-proposal/SKILL.md +2 -2
- package/src/App.test.tsx +54 -2
- package/src/App.tsx +19 -2
- package/src/changes.test.ts +52 -0
- package/src/changes.ts +30 -7
- package/src/commands/adr.test.ts +1 -1
- package/src/commands/changes.test.ts +134 -12
- package/src/commands/changes.ts +102 -1
- package/src/commands/cookbook.test.ts +1 -1
- package/src/commands/init.test.ts +69 -2
- package/src/commands/init.ts +43 -5
- package/src/commands/review.test.ts +2 -2
- package/src/commands/review.ts +1 -1
- package/src/commands/tasks-create.test.ts +21 -21
- package/src/commands/tasks-list.test.ts +27 -27
- package/src/components/PlanView.test.tsx +14 -14
- package/src/components/StatusView.test.tsx +88 -36
- package/src/components/StatusView.tsx +56 -3
- package/src/features/tasks/create.ts +5 -5
- package/src/features/tasks/filesystem.test.ts +68 -18
- package/src/features/tasks/filesystem.ts +32 -3
- package/src/features/tasks/index.ts +1 -1
- package/src/index.ts +11 -1
- package/src/opencode.ts +6 -0
- package/src/tasks.ts +1 -0
|
@@ -8,5 +8,5 @@ export {
|
|
|
8
8
|
type TaskStatus,
|
|
9
9
|
} from "./constants";
|
|
10
10
|
export { createTask } from "./create";
|
|
11
|
-
export { findSchubRoot, listTasks, loadTaskDependencies } from "./filesystem";
|
|
11
|
+
export { archiveTasksForChange, findSchubRoot, listTasks, loadTaskDependencies } from "./filesystem";
|
|
12
12
|
export { buildTaskGraph, renderTaskGraphLines, trimTaskTitle } from "./graph";
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { render } from "ink";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import App from "./App";
|
|
5
5
|
import { runAdrCreate } from "./commands/adr";
|
|
6
|
-
import { runChangesCreate, runChangesStatus } from "./commands/changes";
|
|
6
|
+
import { runChangesArchive, runChangesCreate, runChangesList, runChangesStatus } from "./commands/changes";
|
|
7
7
|
import { runCookbookCreate } from "./commands/cookbook";
|
|
8
8
|
import { runEject } from "./commands/eject";
|
|
9
9
|
import { runInit } from "./commands/init";
|
|
@@ -18,6 +18,8 @@ const HELP_TEXT = `schub [command]
|
|
|
18
18
|
Commands:
|
|
19
19
|
changes create Create a change proposal
|
|
20
20
|
changes status Update change proposal status
|
|
21
|
+
changes archive Archive a change proposal
|
|
22
|
+
changes list List change proposals
|
|
21
23
|
project create Create project docs
|
|
22
24
|
tasks create Create task files for a change
|
|
23
25
|
tasks list List tasks
|
|
@@ -75,6 +77,14 @@ const runCommand = async () => {
|
|
|
75
77
|
runChangesStatus(rest, getStartDir());
|
|
76
78
|
return;
|
|
77
79
|
}
|
|
80
|
+
if (secondary === "archive") {
|
|
81
|
+
runChangesArchive(rest, getStartDir());
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (secondary === "list") {
|
|
85
|
+
runChangesList(rest, getStartDir());
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
78
88
|
break;
|
|
79
89
|
case "project":
|
|
80
90
|
if (secondary === "create") {
|
package/src/opencode.ts
ADDED