lalph 0.1.14 → 0.1.16
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 +8 -7
- package/package.json +1 -1
- package/src/Linear.ts +1 -1
- package/src/PromptGen.ts +7 -6
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
|
|
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
|
-
-
|
|
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,19 +140415,21 @@ 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 "
|
|
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.
|
|
140426
140428
|
${sourceMeta.githubPrInstructions}
|
|
140427
140429
|
The PR description should include a summary of the changes made.
|
|
140428
140430
|
- None of the files in the \`.lalph\` directory should be committed.
|
|
140429
|
-
- You have permission to create or update the PR as needed.
|
|
140430
|
-
permission to push branches or create
|
|
140431
|
+
- You have permission to create or update the PR as needed. You have full
|
|
140432
|
+
permission to push branches, create PRs or create git commits.
|
|
140431
140433
|
7. Update the prd.json file to reflect any changes in task states.
|
|
140432
140434
|
- Add follow up tasks only if needed.
|
|
140433
140435
|
- Append to the \`description\` field with any notes or important discoveries.
|
|
@@ -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 "
|
|
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
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
|
|
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
|
-
-
|
|
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,19 +56,21 @@ 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 "
|
|
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.
|
|
67
69
|
${sourceMeta.githubPrInstructions}
|
|
68
70
|
The PR description should include a summary of the changes made.
|
|
69
71
|
- None of the files in the \`.lalph\` directory should be committed.
|
|
70
|
-
- You have permission to create or update the PR as needed.
|
|
71
|
-
permission to push branches or create
|
|
72
|
+
- You have permission to create or update the PR as needed. You have full
|
|
73
|
+
permission to push branches, create PRs or create git commits.
|
|
72
74
|
7. Update the prd.json file to reflect any changes in task states.
|
|
73
75
|
- Add follow up tasks only if needed.
|
|
74
76
|
- Append to the \`description\` field with any notes or important discoveries.
|
|
@@ -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 "
|
|
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
|