lalph 0.2.11 → 0.2.13
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 +8 -4
- package/package.json +1 -1
- package/src/Worktree.ts +1 -0
- package/src/commands/root.ts +4 -2
package/dist/cli.mjs
CHANGED
|
@@ -151361,6 +151361,7 @@ const setupWorktree = fnUntraced(function* (options) {
|
|
|
151361
151361
|
const shouldUseWorktree = isSome(targetBranch);
|
|
151362
151362
|
if (shouldUseWorktree) {
|
|
151363
151363
|
const parsed = parseBranch(targetBranch.value);
|
|
151364
|
+
yield* options.exec`git fetch ${parsed.remote}`;
|
|
151364
151365
|
if ((yield* options.exec`git checkout ${parsed.branchWithRemote}`) !== 0) {
|
|
151365
151366
|
yield* options.exec`git checkout -b ${parsed.branch}`;
|
|
151366
151367
|
yield* options.exec`git push -u ${parsed.remote} ${parsed.branch}`;
|
|
@@ -151885,9 +151886,12 @@ const run = fnUntraced(function* (options) {
|
|
|
151885
151886
|
let taskId = void 0;
|
|
151886
151887
|
yield* addFinalizer(fnUntraced(function* (exit) {
|
|
151887
151888
|
if (exit._tag === "Success") return;
|
|
151888
|
-
|
|
151889
|
-
|
|
151890
|
-
|
|
151889
|
+
if (taskId) yield* source.updateIssue({
|
|
151890
|
+
projectId,
|
|
151891
|
+
issueId: taskId,
|
|
151892
|
+
state: "todo"
|
|
151893
|
+
});
|
|
151894
|
+
else yield* (yield* Prd).revertUpdatedIssues;
|
|
151891
151895
|
}, ignore()));
|
|
151892
151896
|
registry.update(currentWorker.state, (s) => s.transitionTo(WorkerStatus.ChoosingTask()));
|
|
151893
151897
|
const chosenTask = yield* agentChooser({
|
|
@@ -152226,7 +152230,7 @@ const commandSource = make$35("source").pipe(withDescription("Select the issue s
|
|
|
152226
152230
|
|
|
152227
152231
|
//#endregion
|
|
152228
152232
|
//#region package.json
|
|
152229
|
-
var version = "0.2.
|
|
152233
|
+
var version = "0.2.13";
|
|
152230
152234
|
|
|
152231
152235
|
//#endregion
|
|
152232
152236
|
//#region src/commands/projects/ls.ts
|
package/package.json
CHANGED
package/src/Worktree.ts
CHANGED
|
@@ -120,6 +120,7 @@ const setupWorktree = Effect.fnUntraced(function* (options: {
|
|
|
120
120
|
|
|
121
121
|
if (shouldUseWorktree) {
|
|
122
122
|
const parsed = parseBranch(targetBranch.value)
|
|
123
|
+
yield* options.exec`git fetch ${parsed.remote}`
|
|
123
124
|
const code = yield* options.exec`git checkout ${parsed.branchWithRemote}`
|
|
124
125
|
if (code !== 0) {
|
|
125
126
|
yield* options.exec`git checkout -b ${parsed.branch}`
|
package/src/commands/root.ts
CHANGED
|
@@ -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*
|
|
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()),
|