lalph 0.2.11 → 0.2.12

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/cli.mjs CHANGED
@@ -151885,9 +151885,12 @@ const run = fnUntraced(function* (options) {
151885
151885
  let taskId = void 0;
151886
151886
  yield* addFinalizer(fnUntraced(function* (exit) {
151887
151887
  if (exit._tag === "Success") return;
151888
- const prd = yield* Prd;
151889
- if (taskId) yield* prd.maybeRevertIssue({ issueId: taskId });
151890
- else yield* prd.revertUpdatedIssues;
151888
+ if (taskId) yield* source.updateIssue({
151889
+ projectId,
151890
+ issueId: taskId,
151891
+ state: "todo"
151892
+ });
151893
+ else yield* (yield* Prd).revertUpdatedIssues;
151891
151894
  }, ignore()));
151892
151895
  registry.update(currentWorker.state, (s) => s.transitionTo(WorkerStatus.ChoosingTask()));
151893
151896
  const chosenTask = yield* agentChooser({
@@ -152226,7 +152229,7 @@ const commandSource = make$35("source").pipe(withDescription("Select the issue s
152226
152229
 
152227
152230
  //#endregion
152228
152231
  //#region package.json
152229
- var version = "0.2.11";
152232
+ var version = "0.2.12";
152230
152233
 
152231
152234
  //#endregion
152232
152235
  //#region src/commands/projects/ls.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.2.11",
4
+ "version": "0.2.12",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -86,12 +86,14 @@ const run = Effect.fnUntraced(
86
86
  yield* Effect.addFinalizer(
87
87
  Effect.fnUntraced(function* (exit) {
88
88
  if (exit._tag === "Success") return
89
- const prd = yield* Prd
90
89
  if (taskId) {
91
- yield* prd.maybeRevertIssue({
90
+ yield* source.updateIssue({
91
+ projectId,
92
92
  issueId: taskId,
93
+ state: "todo",
93
94
  })
94
95
  } else {
96
+ const prd = yield* Prd
95
97
  yield* prd.revertUpdatedIssues
96
98
  }
97
99
  }, Effect.ignore()),