lalph 0.1.14 → 0.1.15

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 CHANGED
@@ -133898,7 +133898,7 @@ const LinearIssueSource = effect(IssueSource, gen(function* () {
133898
133898
  priority: issue.priority,
133899
133899
  estimate: issue.estimate ?? null,
133900
133900
  stateId: issue.stateId,
133901
- complete: state.type !== "unstarted",
133901
+ complete: state.type === "completed",
133902
133902
  blockedBy: blockedBy.map((i) => i.identifier),
133903
133903
  githubPrNumber: null
133904
133904
  });
@@ -140405,7 +140405,7 @@ permission.
140405
140405
  1. Decide which single task to work on next from the prd.json file. This should
140406
140406
  be the task YOU decide as the most important to work on next, not just the
140407
140407
  first task in the list.
140408
- - If a task is already completed or in review, skip it.
140408
+ - Only start tasks that are in a "todo" state (i.e., not started yet).
140409
140409
  - If the \`blockedBy\` field is not empty, skip the task.
140410
140410
  2. **Before doing anything else**, mark the task as "in progress" by updating its
140411
140411
  \`stateId\` in the prd.json file.
@@ -140415,11 +140415,13 @@ permission.
140415
140415
  - If there is an existing PR, checkout the branch for that PR.
140416
140416
  - If there is an existing PR, check if there are any new comments or requested
140417
140417
  changes, and address them as part of the task.
140418
+ - If creating a new branch, don't checkout any main branches first, use the current
140419
+ HEAD as the base.
140418
140420
  - New branches should be named using the format \`{task id}/description\`.
140419
140421
  - When checking for PR reviews, make sure to check the "reviews" field and read ALL unresolved comments.
140420
140422
  4. Research the task. If it seems like too many steps are needed to complete the task,
140421
140423
  break it down into smaller tasks and add them to the prd.json file, marking the
140422
- original task as "blocked" or "closed" by updating its \`stateId\`.
140424
+ original task as "closed" by updating its \`stateId\`.
140423
140425
  Otherwise, implement the task.
140424
140426
  5. Run any checks / feedback loops, such as type checks, unit tests, or linting.
140425
140427
  6. Create or update the pull request with your progress.
@@ -140441,8 +140443,7 @@ important to work on next.
140441
140443
 
140442
140444
  If at any point you decide that a task is too large or complex to complete in a
140443
140445
  single iteration, break it down into smaller tasks and add them to the prd.json
140444
- file. Then, mark the original task as "blocked" or "deferred" by updating its
140445
- \`stateId\`.
140446
+ file. Then, mark the original task as "closed" by updating its \`stateId\`.
140446
140447
 
140447
140448
  Each task should be small and specific.
140448
140449
  Instead of creating tasks like "Refactor the authentication system", create
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.1.14",
4
+ "version": "0.1.15",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/Linear.ts CHANGED
@@ -180,7 +180,7 @@ export const LinearIssueSource = Layer.effect(
180
180
  priority: issue.priority,
181
181
  estimate: issue.estimate ?? null,
182
182
  stateId: issue.stateId!,
183
- complete: state.type !== "unstarted",
183
+ complete: state.type === "completed",
184
184
  blockedBy: blockedBy.map((i) => i.identifier),
185
185
  githubPrNumber: null,
186
186
  })
package/src/PromptGen.ts CHANGED
@@ -46,7 +46,7 @@ permission.
46
46
  1. Decide which single task to work on next from the prd.json file. This should
47
47
  be the task YOU decide as the most important to work on next, not just the
48
48
  first task in the list.
49
- - If a task is already completed or in review, skip it.
49
+ - Only start tasks that are in a "todo" state (i.e., not started yet).
50
50
  - If the \`blockedBy\` field is not empty, skip the task.
51
51
  2. **Before doing anything else**, mark the task as "in progress" by updating its
52
52
  \`stateId\` in the prd.json file.
@@ -56,11 +56,13 @@ permission.
56
56
  - If there is an existing PR, checkout the branch for that PR.
57
57
  - If there is an existing PR, check if there are any new comments or requested
58
58
  changes, and address them as part of the task.
59
+ - If creating a new branch, don't checkout any main branches first, use the current
60
+ HEAD as the base.
59
61
  - New branches should be named using the format \`{task id}/description\`.
60
62
  - When checking for PR reviews, make sure to check the "reviews" field and read ALL unresolved comments.
61
63
  4. Research the task. If it seems like too many steps are needed to complete the task,
62
64
  break it down into smaller tasks and add them to the prd.json file, marking the
63
- original task as "blocked" or "closed" by updating its \`stateId\`.
65
+ original task as "closed" by updating its \`stateId\`.
64
66
  Otherwise, implement the task.
65
67
  5. Run any checks / feedback loops, such as type checks, unit tests, or linting.
66
68
  6. Create or update the pull request with your progress.
@@ -82,8 +84,7 @@ important to work on next.
82
84
 
83
85
  If at any point you decide that a task is too large or complex to complete in a
84
86
  single iteration, break it down into smaller tasks and add them to the prd.json
85
- file. Then, mark the original task as "blocked" or "deferred" by updating its
86
- \`stateId\`.
87
+ file. Then, mark the original task as "closed" by updating its \`stateId\`.
87
88
 
88
89
  Each task should be small and specific.
89
90
  Instead of creating tasks like "Refactor the authentication system", create