@thiagodiogo/pscode 2.5.0 → 2.6.0

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.
@@ -44,9 +44,8 @@ function getArchiveInstructions() {
44
44
  If status reports \`actionContext.mode: "workspace-planning"\`, explain that workspace archive is not supported in this slice and STOP.
45
45
 
46
46
  **If any artifacts are not \`done\`:**
47
- - Display warning listing incomplete artifacts
48
- - Use **AskUserQuestion tool** to confirm user wants to proceed
49
- - Proceed if user confirms
47
+ - Record a warning listing the incomplete artifacts (to surface in the final summary)
48
+ - Proceed automatically — do NOT use \`AskUserQuestion\` and do NOT block on this
50
49
 
51
50
  3. **Check task completion status**
52
51
 
@@ -55,26 +54,20 @@ function getArchiveInstructions() {
55
54
  Count tasks marked with \`- [ ]\` (incomplete) vs \`- [x]\` (complete).
56
55
 
57
56
  **If incomplete tasks found:**
58
- - Display warning showing count of incomplete tasks
59
- - Use **AskUserQuestion tool** to confirm user wants to proceed
60
- - Proceed if user confirms
57
+ - Record a warning showing the count of incomplete tasks (to surface in the final summary)
58
+ - Proceed automatically — do NOT use \`AskUserQuestion\` and do NOT block on this
61
59
 
62
60
  **If no tasks file exists:** Proceed without task-related warning.
63
61
 
64
- 4. **Assess delta spec sync state**
62
+ 4. **Sync delta specs into main specs automatically**
65
63
 
66
- Use \`artifactPaths.specs.existingOutputPaths\` from status JSON to check for delta specs. If none exist, proceed without sync prompt.
64
+ Use \`artifactPaths.specs.existingOutputPaths\` from status JSON to check for delta specs. If none exist, proceed directly to the archive step — there is nothing to sync.
67
65
 
68
- **If delta specs exist:**
69
- - Compare each delta spec with its corresponding main spec at \`pscode/specs/<capability>/spec.md\`
70
- - Determine what changes would be applied (adds, modifications, removals, renames)
71
- - Show a combined summary before prompting
72
-
73
- **Prompt options:**
74
- - If changes needed: "Sync now (recommended)", "Archive without syncing"
75
- - If already synced: "Archive now", "Sync anyway", "Cancel"
76
-
77
- If user chooses sync, use Task tool (subagent_type: "general-purpose", prompt: "Use Skill tool to invoke pscode-sync-specs for change '<name>'. Delta spec analysis: <include the analyzed delta spec summary>"). Proceed to archive regardless of choice.
66
+ **If delta specs exist, sync them inline yourself (no prompt, no subagent):**
67
+ - For each delta spec, read it and compare it with its corresponding main spec at \`pscode/specs/<capability>/spec.md\` (create the main spec if it does not exist yet).
68
+ - Apply the delta directly to the main spec: \`## ADDED Requirements\` are inserted, \`## MODIFIED Requirements\` replace the matching requirement, \`## REMOVED Requirements\` are deleted, and renames update the heading. Use the **Edit/Write tools** to apply the changes.
69
+ - Do NOT use \`AskUserQuestion\` and do NOT delegate to a \`pscode-sync-specs\` skill (it does not exist) — perform the merge inline.
70
+ - After applying, keep an informative summary of what was synced (adds, modifications, removals, renames) to show in the final summary. This summary is informational only — never blocking.
78
71
 
79
72
  5. **Perform the archive**
80
73
 
@@ -144,7 +137,7 @@ function getArchiveInstructions() {
144
137
  Change: <change-name>
145
138
  Schema: <schema-name>
146
139
  Arquivada em: <archive-path>
147
- Specs: <sincronizado / sem delta specs / sync pulado>
140
+ Specs: <sincronizado / sem delta specs>
148
141
  Tasks: <N>/<N> concluidas
149
142
 
150
143
  Fluxo encerrado. Nenhuma acao adicional necessaria.
@@ -158,8 +151,8 @@ function getArchiveInstructions() {
158
151
  - Change name
159
152
  - Schema that was used
160
153
  - Archive location
161
- - Spec sync status (synced / sync skipped / no delta specs)
162
- - Note about any warnings (incomplete artifacts/tasks)
154
+ - Spec sync status (synced / no delta specs)
155
+ - Note about any warnings (incomplete artifacts/tasks that were archived anyway)
163
156
  - Trello: mention if card was moved to "Concluído"
164
157
 
165
158
  **Output On Success**
@@ -184,13 +177,12 @@ All artifacts complete. All tasks complete.
184
177
  **Change:** <change-name>
185
178
  **Schema:** <schema-name>
186
179
  **Archived to:** <archive-path>
187
- **Specs:** Sync skipped (user chose to skip)
180
+ **Specs:** Synced to main specs
188
181
  **Trello:** Card moved to ✅ Concluído ← only shown if Trello is configured
189
182
 
190
183
  **Warnings:**
191
184
  - Archived with 2 incomplete artifacts
192
185
  - Archived with 3 incomplete tasks
193
- - Delta spec sync was skipped
194
186
 
195
187
  Review the archive if this was not intentional.
196
188
  \`\`\`
@@ -212,13 +204,13 @@ Target archive directory already exists.
212
204
  \`\`\`
213
205
 
214
206
  **Guardrails**
215
- - Always prompt for change selection if not provided
207
+ - Change selection (Step 1) is the ONLY interactive point — prompt for it only when no name is provided
208
+ - Never use \`AskUserQuestion\` to confirm sync or archiving; sync and archive run automatically
216
209
  - Use artifact graph (pscode status --json) for completion checking
217
- - Don't block archive on warnings — just inform and confirm
210
+ - Don't block archive on warnings — record them and surface in the final summary
218
211
  - Preserve .pscode.yaml when moving to archive (it moves with the directory)
219
212
  - Show clear summary of what happened
220
- - If sync is requested, use pscode-sync-specs approach (agent-driven)
221
- - If delta specs exist, always run the sync assessment and show the combined summary before prompting
213
+ - If delta specs exist, sync them inline yourself (agent-driven merge into main specs) — there is no \`pscode-sync-specs\` skill
222
214
  - If Trello tools fail, continue normally — Trello is auxiliary, not blocking
223
215
  - All content written to Trello must be in Portuguese
224
216
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thiagodiogo/pscode",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "AI-native system for spec-driven development",
5
5
  "keywords": [
6
6
  "pscode",