@nebulit/embuilder 0.1.51 β†’ 0.1.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebulit/embuilder",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "Event-model driven development toolkit for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,12 +26,10 @@ If a slice is in status 'planned', Even if a slice seems to have been implemente
26
26
  13. make sure to write the ui-prompt.md for the ui_worker as defined if defined in the skill
27
27
  14. Run quality checks ( npm run build, npm run test ) - Attention - itΒ΄s enough to run the tests for the slice. Do not run all tests.
28
28
  15. even if the slice is fully implemented, run your test-analyzer skill and provide the code-slice.json file as defined in the skill
29
- 16. if the slice is an automation slice, set status to 'Done'. Otherwise - Update the Slice in the index.json back to status 'Planned' and assign the 'ui-worker'
30
- 17. If checks pass, commit ALL changes with message: `feat: [Slice Name]`.
31
- 18. Append your progress to `progress.txt` after each step in the iteration.
32
- 19. append your new learnings to AGENTS.md in a compressed form, reusable for future iterations. Only add learnings if they are not already there.
33
- 20. if the slice status is 'Done', merge back to main.
34
- 21. Finish the iteration.
29
+ 16. If checks pass, commit ALL changes with message: `feat: [Slice Name]`.
30
+ 17. Set the status to 'Done'. if the slice is an automation slice, remove the assignee. Otherwise assign 'ui_worker'
31
+ 18. append your new learnings to AGENTS.md in a compressed form, reusable for future iterations. Only add learnings if they are not already there.
32
+ 19. Finish the iteration.
35
33
 
36
34
  ## Progress Report Format
37
35
 
@@ -8,6 +8,6 @@ You assign tasks to workers. Only one task can be assigned and in status planned
8
8
  1. find the most important next slice by reading .slices/index.json
9
9
  2. if the slice is in status planned and not assigned, assign it to backend_worker (property "assigned" ) and continue with backend/prompt.md. Ignore the rest of this file.
10
10
  3. if the status is in status "InProgress" and assigned to backend_worker, updated started_time and continue with backend/prompt.md. Ignore the rest of this file.
11
- 4. if the status is "done" and assigned to "backend_worker", assign the task to "ui_worker" and move it back to status "planned". continue with frontend/prompt.md. Ignore the rest of this file.
11
+ 4. if the status is "done" and assigned to "backend_worker", assign the task to "ui_worker" if the frontend folder exists in the root and move it back to status "planned". continue with frontend/prompt.md. Ignore the rest of this file. if fronend/prompt.md does not exist, set status to "done" and stop. Ignore the rest of this loop.
12
12
  5. if there is no task in status planned, return <promise>NO_TASKS</promise>
13
- 6. If one task is done. Finish your work, do not continue with the next slice.
13
+ 6. If one task is done. Finish your work, do not continue with the next slice.
@@ -211,19 +211,18 @@ const server = createServer(async (req, res) => {
211
211
  index: slice.index,
212
212
  context: slice.context ?? "default",
213
213
  folder: sliceFolder,
214
- status: slice.status
214
+ status: slice.status,
215
215
  };
216
-
217
216
  // Add group ID to index entry if it belongs to a group
218
217
  if (groupId) {
219
218
  sliceIndex.group = groupId;
220
219
  }
221
220
 
222
- const index = sliceIndices.slices.findIndex(it => it.id == slice.id);
223
- if (index == -1) {
221
+ const sliceId = sliceIndices.slices.findIndex(it => it.id == slice.id);
222
+ if (sliceId == -1) {
224
223
  sliceIndices.slices.push(sliceIndex);
225
224
  } else {
226
- sliceIndices.slices[index] = {...sliceIndices.slices[index], ...sliceIndex};
225
+ sliceIndices.slices[sliceId] = {...sliceIndices.slices[sliceId], ...sliceIndex, assigned: undefined};
227
226
  }
228
227
  });
229
228
  writeFileSync(indexFile, JSON.stringify(sliceIndices, null, 2));
@@ -525,4 +524,4 @@ server.listen(3001, () => {
525
524
  console.log('πŸ“Š GET /api/progress');
526
525
  console.log('πŸ—‘οΈ POST /api/delete-slice');
527
526
  console.log('πŸ”§ GET/POST /api/git');
528
- });
527
+ });