lalph 0.1.13 → 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
  });
@@ -140399,10 +140399,13 @@ ${JSON.stringify(PrdIssue.jsonSchema, null, 2)}
140399
140399
  \`\`\``;
140400
140400
  const prompt = `# Instructions
140401
140401
 
140402
+ The following instructions should be done without interaction or asking for
140403
+ permission.
140404
+
140402
140405
  1. Decide which single task to work on next from the prd.json file. This should
140403
140406
  be the task YOU decide as the most important to work on next, not just the
140404
140407
  first task in the list.
140405
- - 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).
140406
140409
  - If the \`blockedBy\` field is not empty, skip the task.
140407
140410
  2. **Before doing anything else**, mark the task as "in progress" by updating its
140408
140411
  \`stateId\` in the prd.json file.
@@ -140412,11 +140415,13 @@ ${JSON.stringify(PrdIssue.jsonSchema, null, 2)}
140412
140415
  - If there is an existing PR, checkout the branch for that PR.
140413
140416
  - If there is an existing PR, check if there are any new comments or requested
140414
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.
140415
140420
  - New branches should be named using the format \`{task id}/description\`.
140416
140421
  - When checking for PR reviews, make sure to check the "reviews" field and read ALL unresolved comments.
140417
140422
  4. Research the task. If it seems like too many steps are needed to complete the task,
140418
140423
  break it down into smaller tasks and add them to the prd.json file, marking the
140419
- original task as "blocked" or "closed" by updating its \`stateId\`.
140424
+ original task as "closed" by updating its \`stateId\`.
140420
140425
  Otherwise, implement the task.
140421
140426
  5. Run any checks / feedback loops, such as type checks, unit tests, or linting.
140422
140427
  6. Create or update the pull request with your progress.
@@ -140438,8 +140443,7 @@ important to work on next.
140438
140443
 
140439
140444
  If at any point you decide that a task is too large or complex to complete in a
140440
140445
  single iteration, break it down into smaller tasks and add them to the prd.json
140441
- file. Then, mark the original task as "blocked" or "deferred" by updating its
140442
- \`stateId\`.
140446
+ file. Then, mark the original task as "closed" by updating its \`stateId\`.
140443
140447
 
140444
140448
  Each task should be small and specific.
140445
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.13",
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
@@ -40,10 +40,13 @@ ${JSON.stringify(PrdIssue.jsonSchema, null, 2)}
40
40
 
41
41
  const prompt = `# Instructions
42
42
 
43
+ The following instructions should be done without interaction or asking for
44
+ permission.
45
+
43
46
  1. Decide which single task to work on next from the prd.json file. This should
44
47
  be the task YOU decide as the most important to work on next, not just the
45
48
  first task in the list.
46
- - 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).
47
50
  - If the \`blockedBy\` field is not empty, skip the task.
48
51
  2. **Before doing anything else**, mark the task as "in progress" by updating its
49
52
  \`stateId\` in the prd.json file.
@@ -53,11 +56,13 @@ ${JSON.stringify(PrdIssue.jsonSchema, null, 2)}
53
56
  - If there is an existing PR, checkout the branch for that PR.
54
57
  - If there is an existing PR, check if there are any new comments or requested
55
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.
56
61
  - New branches should be named using the format \`{task id}/description\`.
57
62
  - When checking for PR reviews, make sure to check the "reviews" field and read ALL unresolved comments.
58
63
  4. Research the task. If it seems like too many steps are needed to complete the task,
59
64
  break it down into smaller tasks and add them to the prd.json file, marking the
60
- original task as "blocked" or "closed" by updating its \`stateId\`.
65
+ original task as "closed" by updating its \`stateId\`.
61
66
  Otherwise, implement the task.
62
67
  5. Run any checks / feedback loops, such as type checks, unit tests, or linting.
63
68
  6. Create or update the pull request with your progress.
@@ -79,8 +84,7 @@ important to work on next.
79
84
 
80
85
  If at any point you decide that a task is too large or complex to complete in a
81
86
  single iteration, break it down into smaller tasks and add them to the prd.json
82
- file. Then, mark the original task as "blocked" or "deferred" by updating its
83
- \`stateId\`.
87
+ file. Then, mark the original task as "closed" by updating its \`stateId\`.
84
88
 
85
89
  Each task should be small and specific.
86
90
  Instead of creating tasks like "Refactor the authentication system", create