lalph 0.1.2 → 0.1.4
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 +5 -1
- package/package.json +1 -1
- package/src/PromptGen.ts +2 -0
- package/src/Worktree.ts +9 -1
package/dist/cli.mjs
CHANGED
|
@@ -132212,10 +132212,12 @@ 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 });
|
|
132220
|
+
yield* scoped$1(fs.open(pathService.join(directory, "PROGRESS.md"), { flag: "a+" }));
|
|
132219
132221
|
yield* forEach$1([
|
|
132220
132222
|
make$21({
|
|
132221
132223
|
cwd: directory,
|
|
@@ -132367,11 +132369,13 @@ var PromptGen = class extends Service()("lalph/PromptGen", { make: gen(function*
|
|
|
132367
132369
|
- If there is an existing PR, checkout the branch for that PR.
|
|
132368
132370
|
- If there is an existing PR, check if there are any new comments or requested
|
|
132369
132371
|
changes, and address them as part of the task.
|
|
132372
|
+
- New branches should be named using the format \`{task id}/description\`.
|
|
132370
132373
|
4. Run any checks / feedback loops, such as type checks, unit tests, or linting.
|
|
132371
132374
|
5. APPEND your progress to the PROGRESS.md file.
|
|
132372
132375
|
6. Create or update the pull request with your changes once the task is complete. The title of
|
|
132373
132376
|
the PR should include the task id. The PR description should include a
|
|
132374
132377
|
summary of the changes made.
|
|
132378
|
+
- None of the files in the \`.lalph\` directory should be committed.
|
|
132375
132379
|
7. Update the prd.json file to reflect any changes in task states.
|
|
132376
132380
|
- Add follow up tasks only if needed.
|
|
132377
132381
|
- Append to the \`description\` field with any notes.
|
package/package.json
CHANGED
package/src/PromptGen.ts
CHANGED
|
@@ -21,11 +21,13 @@ 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
|
|
27
28
|
the PR should include the task id. The PR description should include a
|
|
28
29
|
summary of the changes made.
|
|
30
|
+
- None of the files in the \`.lalph\` directory should be committed.
|
|
29
31
|
7. Update the prd.json file to reflect any changes in task states.
|
|
30
32
|
- Add follow up tasks only if needed.
|
|
31
33
|
- Append to the \`description\` field with any notes.
|
package/src/Worktree.ts
CHANGED
|
@@ -9,15 +9,23 @@ 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"), {
|
|
19
22
|
recursive: true,
|
|
20
23
|
})
|
|
24
|
+
yield* Effect.scoped(
|
|
25
|
+
fs.open(pathService.join(directory, "PROGRESS.md"), {
|
|
26
|
+
flag: "a+",
|
|
27
|
+
}),
|
|
28
|
+
)
|
|
21
29
|
|
|
22
30
|
yield* Effect.forEach(
|
|
23
31
|
[
|