lalph 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/cli.mjs +3 -1
- package/package.json +1 -1
- package/src/PromptGen.ts +1 -0
- package/src/Worktree.ts +4 -1
package/dist/cli.mjs
CHANGED
|
@@ -132212,8 +132212,9 @@ var Worktree = class extends Service()("lalph/Worktree", { make: gen(function* (
|
|
|
132212
132212
|
const pathService = yield* Path$1;
|
|
132213
132213
|
const directory = yield* fs.makeTempDirectory();
|
|
132214
132214
|
yield* addFinalizer(fnUntraced(function* () {
|
|
132215
|
-
yield* execIgnore(make$21`git worktree remove ${directory}`);
|
|
132215
|
+
yield* execIgnore(make$21`git worktree remove --force ${directory}`);
|
|
132216
132216
|
}));
|
|
132217
|
+
yield* execIgnore(make$21`git pull`);
|
|
132217
132218
|
yield* exec(make$21`git worktree add ${directory} -d HEAD`);
|
|
132218
132219
|
yield* fs.makeDirectory(pathService.join(directory, ".lalph"), { recursive: true });
|
|
132219
132220
|
yield* forEach$1([
|
|
@@ -132367,6 +132368,7 @@ var PromptGen = class extends Service()("lalph/PromptGen", { make: gen(function*
|
|
|
132367
132368
|
- If there is an existing PR, checkout the branch for that PR.
|
|
132368
132369
|
- If there is an existing PR, check if there are any new comments or requested
|
|
132369
132370
|
changes, and address them as part of the task.
|
|
132371
|
+
- New branches should be named using the format \`{task id}/description\`.
|
|
132370
132372
|
4. Run any checks / feedback loops, such as type checks, unit tests, or linting.
|
|
132371
132373
|
5. APPEND your progress to the PROGRESS.md file.
|
|
132372
132374
|
6. Create or update the pull request with your changes once the task is complete. The title of
|
package/package.json
CHANGED
package/src/PromptGen.ts
CHANGED
|
@@ -21,6 +21,7 @@ export class PromptGen extends ServiceMap.Service<PromptGen>()(
|
|
|
21
21
|
- If there is an existing PR, checkout the branch for that PR.
|
|
22
22
|
- If there is an existing PR, check if there are any new comments or requested
|
|
23
23
|
changes, and address them as part of the task.
|
|
24
|
+
- New branches should be named using the format \`{task id}/description\`.
|
|
24
25
|
4. Run any checks / feedback loops, such as type checks, unit tests, or linting.
|
|
25
26
|
5. APPEND your progress to the PROGRESS.md file.
|
|
26
27
|
6. Create or update the pull request with your changes once the task is complete. The title of
|
package/src/Worktree.ts
CHANGED
|
@@ -9,10 +9,13 @@ export class Worktree extends ServiceMap.Service<Worktree>()("lalph/Worktree", {
|
|
|
9
9
|
|
|
10
10
|
yield* Effect.addFinalizer(
|
|
11
11
|
Effect.fnUntraced(function* () {
|
|
12
|
-
yield* execIgnore(
|
|
12
|
+
yield* execIgnore(
|
|
13
|
+
ChildProcess.make`git worktree remove --force ${directory}`,
|
|
14
|
+
)
|
|
13
15
|
}),
|
|
14
16
|
)
|
|
15
17
|
|
|
18
|
+
yield* execIgnore(ChildProcess.make`git pull`)
|
|
16
19
|
yield* exec(ChildProcess.make`git worktree add ${directory} -d HEAD`)
|
|
17
20
|
|
|
18
21
|
yield* fs.makeDirectory(pathService.join(directory, ".lalph"), {
|