lalph 0.2.6 → 0.2.8
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 +247 -212
- package/package.json +3 -3
- package/src/Agents/chooser.ts +6 -5
- package/src/Agents/planner.ts +1 -1
- package/src/Agents/tasker.ts +1 -1
- package/src/PromptGen.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lalph",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"@changesets/changelog-github": "^0.5.2",
|
|
24
24
|
"@changesets/cli": "^2.29.8",
|
|
25
25
|
"@effect/language-service": "^0.72.0",
|
|
26
|
-
"@effect/platform-node": "https://pkg.pr.new/Effect-TS/effect-smol/@effect/platform-node@
|
|
26
|
+
"@effect/platform-node": "https://pkg.pr.new/Effect-TS/effect-smol/@effect/platform-node@48538de",
|
|
27
27
|
"@linear/sdk": "^72.0.0",
|
|
28
28
|
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
|
29
29
|
"@octokit/types": "^16.0.0",
|
|
30
|
-
"effect": "https://pkg.pr.new/Effect-TS/effect-smol/effect@
|
|
30
|
+
"effect": "https://pkg.pr.new/Effect-TS/effect-smol/effect@48538de",
|
|
31
31
|
"husky": "^9.1.7",
|
|
32
32
|
"lint-staged": "^16.2.7",
|
|
33
33
|
"octokit": "^5.0.5",
|
package/src/Agents/chooser.ts
CHANGED
|
@@ -43,11 +43,12 @@ export const agentChooser = Effect.fnUntraced(function* (options: {
|
|
|
43
43
|
Effect.raceFirst(taskJsonCreated),
|
|
44
44
|
)
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Effect.
|
|
46
|
+
return yield* pipe(
|
|
47
|
+
fs.readFileString(
|
|
48
|
+
pathService.join(worktree.directory, ".lalph", "task.json"),
|
|
49
|
+
),
|
|
50
|
+
Effect.flatMap(Schema.decodeEffect(ChosenTask)),
|
|
51
|
+
Effect.mapError((_) => new ChosenTaskNotFound()),
|
|
51
52
|
Effect.flatMap(
|
|
52
53
|
Effect.fnUntraced(function* (task) {
|
|
53
54
|
const prdTask = yield* prd.findById(task.id)
|
package/src/Agents/planner.ts
CHANGED
|
@@ -19,7 +19,7 @@ export const agentPlanner = Effect.fnUntraced(function* (options: {
|
|
|
19
19
|
yield* pipe(
|
|
20
20
|
options.cliAgent.commandPlan({
|
|
21
21
|
prompt: promptGen.planPrompt(options),
|
|
22
|
-
prdFilePath: pathService.join(
|
|
22
|
+
prdFilePath: pathService.join(".lalph", "prd.yml"),
|
|
23
23
|
dangerous: options.dangerous,
|
|
24
24
|
}),
|
|
25
25
|
ChildProcess.setCwd(worktree.directory),
|
package/src/Agents/tasker.ts
CHANGED
|
@@ -22,7 +22,7 @@ export const agentTasker = Effect.fnUntraced(function* (options: {
|
|
|
22
22
|
specsDirectory: options.specsDirectory,
|
|
23
23
|
specificationPath: options.specificationPath,
|
|
24
24
|
}),
|
|
25
|
-
prdFilePath: pathService.join(
|
|
25
|
+
prdFilePath: pathService.join(".lalph", "prd.yml"),
|
|
26
26
|
}),
|
|
27
27
|
ChildProcess.setCwd(worktree.directory),
|
|
28
28
|
options.commandPrefix,
|
package/src/PromptGen.ts
CHANGED
|
@@ -174,8 +174,8 @@ ${options.task.description}
|
|
|
174
174
|
githubPrNumber: options.githubPrNumber,
|
|
175
175
|
targetBranch: options.targetBranch,
|
|
176
176
|
})}
|
|
177
|
-
6.
|
|
178
|
-
|
|
177
|
+
6. **After ${options.gitFlow.requiresGithubPr ? "pushing" : "committing"}**
|
|
178
|
+
your changes, update the prd.yml to reflect any changes in the task state.
|
|
179
179
|
- Rewrite the notes in the description to include only the key discoveries and information that could speed up future work on other tasks. Make sure to preserve important information such as specification file references.
|
|
180
180
|
- If you believe the task is complete, update the \`state\` to "in-review".
|
|
181
181
|
|