spets 0.1.36 → 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 +50 -62
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -291,67 +291,61 @@ Print: "Error: {error}" \u2192 STOP
291
291
 
292
292
  ### ACTION_PARALLEL_SECTIONS
293
293
 
294
- **PARALLEL EXECUTION REQUIRED**
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
- # Section Generation Task
301
+ Generate section and save to file. Return ONLY the path.
303
302
 
304
- Write this section to: {section.outputPath}
303
+ Path: {section.outputPath}
304
+ Title: {section.title}
305
+ Instruction: {section.instruction}
306
+ Context: {sharedContext.description}
305
307
 
306
- ## Instruction
307
- {section.instruction}
308
-
309
- ## Output
310
- Use Write tool to save content to the outputPath.
311
- Include section header. No other content.
308
+ 1. Generate content for this section
309
+ 2. Write to the path using Write tool
310
+ 3. Return ONLY: {section.outputPath}
311
+ (no explanations, no content, just the path)
312
312
  "
313
313
  )
314
314
 
315
- 2. ALL Task calls MUST be in SINGLE message (parallel launch)
316
-
317
- 3. Wait for all tasks to complete (TaskOutput for each)
315
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
318
316
 
319
- 4. Bash: npx spets orchestrate sections-done {taskId}
317
+ 3. Bash: npx spets orchestrate sections-done {taskId}
320
318
 
321
- 5. Parse response \u2192 next action
319
+ 4. Parse response \u2192 next action
322
320
  \`\`\`
323
321
 
324
322
  ### ACTION_PARALLEL_CONSOLIDATE
325
323
 
326
- **PARALLEL EXECUTION REQUIRED**
324
+ **PARALLEL EXECUTION (FOREGROUND)**
327
325
 
328
326
  \`\`\`
329
327
  1. FOR EACH group IN parallelGroups:
330
328
  Task(
331
329
  subagent_type: "general-purpose",
332
- run_in_background: true,
333
330
  prompt: "
334
- # Consolidation Task
331
+ Merge children into parent. Return ONLY the path.
335
332
 
336
- Merge child sections into: {group.outputPath}
333
+ Output: {group.outputPath}
334
+ Children: {group.childPaths}
337
335
 
338
- ## Children to merge
339
- {group.childIds} (resolve paths from sharedContext)
340
-
341
- ## Instructions
342
- 1. Read all child files
343
- 2. Combine content preserving hierarchy
344
- 3. Write to outputPath
336
+ 1. Read each child file
337
+ 2. Merge preserving hierarchy
338
+ 3. Write to output using Write tool
339
+ 4. Return ONLY: {group.outputPath}
340
+ (no explanations, no content, just the path)
345
341
  "
346
342
  )
347
343
 
348
- 2. ALL Task calls MUST be in SINGLE message (parallel launch)
349
-
350
- 3. Wait for all tasks to complete
344
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
351
345
 
352
- 4. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
346
+ 3. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
353
347
 
354
- 5. Parse response \u2192 next action
348
+ 4. Parse response \u2192 next action
355
349
  \`\`\`
356
350
 
357
351
  ### ACTION_ASK_QUESTIONS
@@ -3621,67 +3615,61 @@ Print: "Error: {error}" \u2192 STOP
3621
3615
 
3622
3616
  ### ACTION_PARALLEL_SECTIONS
3623
3617
 
3624
- **PARALLEL EXECUTION REQUIRED**
3618
+ **PARALLEL EXECUTION (FOREGROUND)**
3625
3619
 
3626
3620
  \`\`\`
3627
3621
  1. FOR EACH section IN parallelSections:
3628
3622
  Task(
3629
3623
  subagent_type: "general-purpose",
3630
- run_in_background: true,
3631
3624
  prompt: "
3632
- # Section Generation Task
3625
+ Generate section and save to file. Return ONLY the path.
3633
3626
 
3634
- Write this section to: {section.outputPath}
3627
+ Path: {section.outputPath}
3628
+ Title: {section.title}
3629
+ Instruction: {section.instruction}
3630
+ Context: {sharedContext.description}
3635
3631
 
3636
- ## Instruction
3637
- {section.instruction}
3638
-
3639
- ## Output
3640
- Use Write tool to save content to the outputPath.
3641
- Include section header. No other content.
3632
+ 1. Generate content for this section
3633
+ 2. Write to the path using Write tool
3634
+ 3. Return ONLY: {section.outputPath}
3635
+ (no explanations, no content, just the path)
3642
3636
  "
3643
3637
  )
3644
3638
 
3645
- 2. ALL Task calls MUST be in SINGLE message (parallel launch)
3646
-
3647
- 3. Wait for all tasks to complete (TaskOutput for each)
3639
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
3648
3640
 
3649
- 4. Bash: npx spets orchestrate sections-done {taskId}
3641
+ 3. Bash: npx spets orchestrate sections-done {taskId}
3650
3642
 
3651
- 5. Parse response \u2192 next action
3643
+ 4. Parse response \u2192 next action
3652
3644
  \`\`\`
3653
3645
 
3654
3646
  ### ACTION_PARALLEL_CONSOLIDATE
3655
3647
 
3656
- **PARALLEL EXECUTION REQUIRED**
3648
+ **PARALLEL EXECUTION (FOREGROUND)**
3657
3649
 
3658
3650
  \`\`\`
3659
3651
  1. FOR EACH group IN parallelGroups:
3660
3652
  Task(
3661
3653
  subagent_type: "general-purpose",
3662
- run_in_background: true,
3663
3654
  prompt: "
3664
- # Consolidation Task
3655
+ Merge children into parent. Return ONLY the path.
3665
3656
 
3666
- Merge child sections into: {group.outputPath}
3657
+ Output: {group.outputPath}
3658
+ Children: {group.childPaths}
3667
3659
 
3668
- ## Children to merge
3669
- {group.childIds} (resolve paths from sharedContext)
3670
-
3671
- ## Instructions
3672
- 1. Read all child files
3673
- 2. Combine content preserving hierarchy
3674
- 3. Write to outputPath
3660
+ 1. Read each child file
3661
+ 2. Merge preserving hierarchy
3662
+ 3. Write to output using Write tool
3663
+ 4. Return ONLY: {group.outputPath}
3664
+ (no explanations, no content, just the path)
3675
3665
  "
3676
3666
  )
3677
3667
 
3678
- 2. ALL Task calls MUST be in SINGLE message (parallel launch)
3679
-
3680
- 3. Wait for all tasks to complete
3668
+ 2. ALL Task calls MUST be in SINGLE message (parallel execution)
3681
3669
 
3682
- 4. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
3670
+ 3. Bash: npx spets orchestrate consolidate-level-done {taskId} {level}
3683
3671
 
3684
- 5. Parse response \u2192 next action
3672
+ 4. Parse response \u2192 next action
3685
3673
  \`\`\`
3686
3674
 
3687
3675
  ### ACTION_ASK_QUESTIONS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spets",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
4
4
  "description": "Spec Driven Development Execution Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",