spets 0.1.37 → 0.1.38

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.
Files changed (2) hide show
  1. package/dist/index.js +16 -30
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -291,13 +291,12 @@ Print: "Error: {error}" \u2192 STOP
291
291
 
292
292
  ### ACTION_PARALLEL_SECTIONS
293
293
 
294
- **PARALLEL EXECUTION**
294
+ **PARALLEL EXECUTION (FOREGROUND)**
295
295
 
296
296
  \`\`\`
297
297
  1. FOR EACH section IN parallelSections:
298
298
  Task(
299
299
  subagent_type: "general-purpose",
300
- run_in_background: true,
301
300
  prompt: "
302
301
  Generate section and save to file. Return ONLY the path.
303
302
 
@@ -313,25 +312,21 @@ Print: "Error: {error}" \u2192 STOP
313
312
  "
314
313
  )
315
314
 
316
- 2. ALL Task calls MUST be in SINGLE message
315
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
317
316
 
318
- 3. Wait for all tasks (file-based check):
319
- Bash: while [ $(ls {sectionsDir}/*.md 2>/dev/null | wc -l) -lt {expectedCount} ]; do sleep 2; done
317
+ 3. Bash: npx spets orchestrate sections-done {taskId}
320
318
 
321
- 4. Bash: npx spets orchestrate sections-done {taskId}
322
-
323
- 5. Parse response \u2192 next action
319
+ 4. Parse response \u2192 next action
324
320
  \`\`\`
325
321
 
326
322
  ### ACTION_PARALLEL_CONSOLIDATE
327
323
 
328
- **PARALLEL EXECUTION**
324
+ **PARALLEL EXECUTION (FOREGROUND)**
329
325
 
330
326
  \`\`\`
331
327
  1. FOR EACH group IN parallelGroups:
332
328
  Task(
333
329
  subagent_type: "general-purpose",
334
- run_in_background: true,
335
330
  prompt: "
336
331
  Merge children into parent. Return ONLY the path.
337
332
 
@@ -346,13 +341,11 @@ Print: "Error: {error}" \u2192 STOP
346
341
  "
347
342
  )
348
343
 
349
- 2. ALL Task calls MUST be in SINGLE message
344
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
350
345
 
351
- 3. Wait for all files to exist
346
+ 3. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
352
347
 
353
- 4. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
354
-
355
- 5. Parse response \u2192 next action
348
+ 4. Parse response \u2192 next action
356
349
  \`\`\`
357
350
 
358
351
  ### ACTION_ASK_QUESTIONS
@@ -3622,13 +3615,12 @@ Print: "Error: {error}" \u2192 STOP
3622
3615
 
3623
3616
  ### ACTION_PARALLEL_SECTIONS
3624
3617
 
3625
- **PARALLEL EXECUTION**
3618
+ **PARALLEL EXECUTION (FOREGROUND)**
3626
3619
 
3627
3620
  \`\`\`
3628
3621
  1. FOR EACH section IN parallelSections:
3629
3622
  Task(
3630
3623
  subagent_type: "general-purpose",
3631
- run_in_background: true,
3632
3624
  prompt: "
3633
3625
  Generate section and save to file. Return ONLY the path.
3634
3626
 
@@ -3644,25 +3636,21 @@ Print: "Error: {error}" \u2192 STOP
3644
3636
  "
3645
3637
  )
3646
3638
 
3647
- 2. ALL Task calls MUST be in SINGLE message
3639
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
3648
3640
 
3649
- 3. Wait for all tasks (file-based check):
3650
- Bash: while [ $(ls {sectionsDir}/*.md 2>/dev/null | wc -l) -lt {expectedCount} ]; do sleep 2; done
3641
+ 3. Bash: npx spets orchestrate sections-done {taskId}
3651
3642
 
3652
- 4. Bash: npx spets orchestrate sections-done {taskId}
3653
-
3654
- 5. Parse response \u2192 next action
3643
+ 4. Parse response \u2192 next action
3655
3644
  \`\`\`
3656
3645
 
3657
3646
  ### ACTION_PARALLEL_CONSOLIDATE
3658
3647
 
3659
- **PARALLEL EXECUTION**
3648
+ **PARALLEL EXECUTION (FOREGROUND)**
3660
3649
 
3661
3650
  \`\`\`
3662
3651
  1. FOR EACH group IN parallelGroups:
3663
3652
  Task(
3664
3653
  subagent_type: "general-purpose",
3665
- run_in_background: true,
3666
3654
  prompt: "
3667
3655
  Merge children into parent. Return ONLY the path.
3668
3656
 
@@ -3677,13 +3665,11 @@ Print: "Error: {error}" \u2192 STOP
3677
3665
  "
3678
3666
  )
3679
3667
 
3680
- 2. ALL Task calls MUST be in SINGLE message
3668
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
3681
3669
 
3682
- 3. Wait for all files to exist
3670
+ 3. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
3683
3671
 
3684
- 4. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
3685
-
3686
- 5. Parse response \u2192 next action
3672
+ 4. Parse response \u2192 next action
3687
3673
  \`\`\`
3688
3674
 
3689
3675
  ### ACTION_ASK_QUESTIONS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",