specweave 1.0.487 → 1.0.488
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": "specweave",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.488",
|
|
4
4
|
"description": "100+ domain-expert AI skills — PM, Architect, Frontend, QA, Security and more. Skills learn your team's patterns permanently. Spec-first planning, autonomous execution, multi-agent teams, synced to GitHub/JIRA. Claude Code, Cursor, Copilot & more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -178,6 +178,11 @@ get_best_event_type() {
|
|
|
178
178
|
# Resolve github-sync-handler path (for user-story event routing)
|
|
179
179
|
GITHUB_SYNC_HANDLER="$HANDLER_DIR/github-sync-handler.sh"
|
|
180
180
|
|
|
181
|
+
# Resolve living-specs-handler path (for lifecycle event routing)
|
|
182
|
+
# BUGFIX: living-specs-handler was never called after v1.0.148 migration from processor.js
|
|
183
|
+
# This handler updates .specweave/docs/internal/specs/ on lifecycle changes
|
|
184
|
+
LIVING_SPECS_HANDLER="$HANDLER_DIR/living-specs-handler.sh"
|
|
185
|
+
|
|
181
186
|
for INC_ID in $INCREMENTS_TO_SYNC; do
|
|
182
187
|
[ -z "$INC_ID" ] && continue
|
|
183
188
|
|
|
@@ -193,6 +198,17 @@ for INC_ID in $INCREMENTS_TO_SYNC; do
|
|
|
193
198
|
log "Sync failed: $INC_ID"
|
|
194
199
|
fi
|
|
195
200
|
|
|
201
|
+
# Route lifecycle events to living-specs-handler
|
|
202
|
+
# Updates living docs (specs/) on increment create/done/archive/reopen
|
|
203
|
+
if [ -f "$LIVING_SPECS_HANDLER" ]; then
|
|
204
|
+
case "$EVENT_TYPE" in
|
|
205
|
+
increment.created|increment.done|increment.archived|increment.reopened)
|
|
206
|
+
log "Routing lifecycle event to living-specs-handler: $EVENT_TYPE $INC_ID"
|
|
207
|
+
run_with_timeout 30 bash "$LIVING_SPECS_HANDLER" "$EVENT_TYPE" "$INC_ID"
|
|
208
|
+
;;
|
|
209
|
+
esac
|
|
210
|
+
fi
|
|
211
|
+
|
|
196
212
|
# Route user-story events to github-sync-handler (v1.0.262+)
|
|
197
213
|
# github-sync-handler understands user-story.completed/reopened with INC_ID:US_ID data
|
|
198
214
|
# FIXED (v1.0.302): Filter by BOTH event type AND increment ID to prevent
|