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.
@@ -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") {
@@ -0,0 +1,6 @@
1
+ import { spawn } from "node:child_process";
2
+
3
+ export const launchOpencodeReview = (changeId: string) => {
4
+ const prompt = `review ${changeId}`;
5
+ spawn("opencode", [prompt], { stdio: "ignore", detached: true }).unref();
6
+ };
package/src/tasks.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export {
2
+ archiveTasksForChange,
2
3
  buildTaskGraph,
3
4
  findSchubRoot,
4
5
  listTasks,