lalph 0.1.12 → 0.1.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 +5 -1
- package/package.json +1 -1
- package/src/Planner.ts +4 -4
- package/src/PromptGen.ts +2 -0
package/dist/cli.mjs
CHANGED
|
@@ -140423,6 +140423,8 @@ ${JSON.stringify(PrdIssue.jsonSchema, null, 2)}
|
|
|
140423
140423
|
${sourceMeta.githubPrInstructions}
|
|
140424
140424
|
The PR description should include a summary of the changes made.
|
|
140425
140425
|
- None of the files in the \`.lalph\` directory should be committed.
|
|
140426
|
+
- You have permission to create or update the PR as needed. No need to ask for
|
|
140427
|
+
permission to push branches or create PRs.
|
|
140426
140428
|
7. Update the prd.json file to reflect any changes in task states.
|
|
140427
140429
|
- Add follow up tasks only if needed.
|
|
140428
140430
|
- Append to the \`description\` field with any notes or important discoveries.
|
|
@@ -140688,6 +140690,8 @@ const plan = gen(function* () {
|
|
|
140688
140690
|
const promptGen = yield* PromptGen;
|
|
140689
140691
|
const cliAgent = yield* getOrSelectCliAgent;
|
|
140690
140692
|
const idea = yield* text$2({ message: "Enter the idea / request:" });
|
|
140693
|
+
const lalphPlanPath = pathService.join(worktree.directory, "lalph-plan.md");
|
|
140694
|
+
yield* scoped$1(fs.open(lalphPlanPath, { flag: "a+" }));
|
|
140691
140695
|
const cliCommand = cliAgent.commandPlan({
|
|
140692
140696
|
prompt: promptGen.planPrompt(idea),
|
|
140693
140697
|
prdFilePath: pathService.join(worktree.directory, ".lalph", "prd.json")
|
|
@@ -140701,7 +140705,7 @@ const plan = gen(function* () {
|
|
|
140701
140705
|
stdin: "inherit"
|
|
140702
140706
|
}).pipe(exitCode);
|
|
140703
140707
|
yield* log$1(`Agent exited with code: ${exitCode$1}`);
|
|
140704
|
-
const planContent = yield* fs.readFileString(
|
|
140708
|
+
const planContent = yield* fs.readFileString(lalphPlanPath);
|
|
140705
140709
|
yield* fs.writeFileString(pathService.resolve("lalph-plan.md"), planContent);
|
|
140706
140710
|
}).pipe(scoped$1, provide$1([
|
|
140707
140711
|
PromptGen.layer,
|
package/package.json
CHANGED
package/src/Planner.ts
CHANGED
|
@@ -17,6 +17,9 @@ export const plan = Effect.gen(function* () {
|
|
|
17
17
|
message: "Enter the idea / request:",
|
|
18
18
|
})
|
|
19
19
|
|
|
20
|
+
const lalphPlanPath = pathService.join(worktree.directory, "lalph-plan.md")
|
|
21
|
+
yield* Effect.scoped(fs.open(lalphPlanPath, { flag: "a+" }))
|
|
22
|
+
|
|
20
23
|
const cliCommand = cliAgent.commandPlan({
|
|
21
24
|
prompt: promptGen.planPrompt(idea),
|
|
22
25
|
prdFilePath: pathService.join(worktree.directory, ".lalph", "prd.json"),
|
|
@@ -38,10 +41,7 @@ export const plan = Effect.gen(function* () {
|
|
|
38
41
|
|
|
39
42
|
yield* Effect.log(`Agent exited with code: ${exitCode}`)
|
|
40
43
|
|
|
41
|
-
const planContent = yield* fs
|
|
42
|
-
.readFileString(pathService.join(worktree.directory, "lalph-plan.md"))
|
|
43
|
-
.pipe(Effect.orElseSucceed(() => ""))
|
|
44
|
-
|
|
44
|
+
const planContent = yield* fs.readFileString(lalphPlanPath)
|
|
45
45
|
yield* fs.writeFileString(pathService.resolve("lalph-plan.md"), planContent)
|
|
46
46
|
}).pipe(
|
|
47
47
|
Effect.scoped,
|
package/src/PromptGen.ts
CHANGED
|
@@ -64,6 +64,8 @@ ${JSON.stringify(PrdIssue.jsonSchema, null, 2)}
|
|
|
64
64
|
${sourceMeta.githubPrInstructions}
|
|
65
65
|
The PR description should include a summary of the changes made.
|
|
66
66
|
- None of the files in the \`.lalph\` directory should be committed.
|
|
67
|
+
- You have permission to create or update the PR as needed. No need to ask for
|
|
68
|
+
permission to push branches or create PRs.
|
|
67
69
|
7. Update the prd.json file to reflect any changes in task states.
|
|
68
70
|
- Add follow up tasks only if needed.
|
|
69
71
|
- Append to the \`description\` field with any notes or important discoveries.
|