specweave 0.17.3 → 0.17.4

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 (34) hide show
  1. package/.claude-plugin/README.md +2 -2
  2. package/.claude-plugin/marketplace.json +22 -22
  3. package/dist/locales/de/.gitkeep +0 -0
  4. package/dist/locales/de/cli.json +108 -0
  5. package/dist/locales/en/cli.json +287 -0
  6. package/dist/locales/en/errors.json +7 -0
  7. package/dist/locales/en/templates.json +6 -0
  8. package/dist/locales/es/.gitkeep +0 -0
  9. package/dist/locales/es/cli.json +41 -0
  10. package/dist/locales/fr/.gitkeep +0 -0
  11. package/dist/locales/fr/cli.json +108 -0
  12. package/dist/locales/ja/.gitkeep +0 -0
  13. package/dist/locales/ja/cli.json +108 -0
  14. package/dist/locales/ko/.gitkeep +0 -0
  15. package/dist/locales/ko/cli.json +108 -0
  16. package/dist/locales/pt/.gitkeep +0 -0
  17. package/dist/locales/pt/cli.json +108 -0
  18. package/dist/locales/ru/.gitkeep +0 -0
  19. package/dist/locales/ru/cli.json +269 -0
  20. package/dist/locales/zh/.gitkeep +0 -0
  21. package/dist/locales/zh/cli.json +108 -0
  22. package/dist/src/cli/commands/init.js +10 -10
  23. package/dist/src/cli/commands/init.js.map +1 -1
  24. package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -1
  25. package/dist/src/cli/helpers/issue-tracker/index.js +18 -15
  26. package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -1
  27. package/dist/src/core/spec-task-mapper.d.ts.map +1 -1
  28. package/dist/src/core/spec-task-mapper.js +7 -12
  29. package/dist/src/core/spec-task-mapper.js.map +1 -1
  30. package/package.json +1 -1
  31. package/plugins/specweave/hooks/post-task-completion.sh +72 -12
  32. package/plugins/specweave/skills/increment-planner/SKILL.md +4 -4
  33. package/plugins/specweave-github/hooks/post-task-completion.sh +35 -15
  34. package/plugins/specweave-ui/.claude-plugin/plugin.json +1 -1
@@ -71,10 +71,10 @@ EOF
71
71
  exit 0
72
72
  fi
73
73
 
74
- # Check if github-spec-sync CLI exists
75
- SYNC_CLI="$PROJECT_ROOT/dist/cli/commands/sync-specs-to-github.js"
74
+ # Check if github-spec-content-sync CLI exists
75
+ SYNC_CLI="$PROJECT_ROOT/dist/src/cli/commands/sync-spec-content.js"
76
76
  if [ ! -f "$SYNC_CLI" ]; then
77
- echo "[$(date)] [GitHub] ⚠️ github-spec-sync CLI not found at $SYNC_CLI, skipping sync" >> "$DEBUG_LOG" 2>/dev/null || true
77
+ echo "[$(date)] [GitHub] ⚠️ sync-spec-content CLI not found at $SYNC_CLI, skipping sync" >> "$DEBUG_LOG" 2>/dev/null || true
78
78
  cat <<EOF
79
79
  {
80
80
  "continue": true
@@ -131,23 +131,43 @@ fi
131
131
  # ============================================================================
132
132
 
133
133
  if [ -n "$SPEC_ID" ]; then
134
- # Sync specific spec
135
- echo "[$(date)] [GitHub] 🔄 Syncing spec $SPEC_ID to GitHub Project..." >> "$DEBUG_LOG" 2>/dev/null || true
134
+ # Convert SPEC_ID to spec file path
135
+ SPEC_FILE=$(find .specweave/docs/internal/specs -name "${SPEC_ID}*.md" -o -name "${SPEC_ID}.md" 2>/dev/null | head -1)
136
136
 
137
- node "$SYNC_CLI" --spec-id "$SPEC_ID" 2>&1 | tee -a "$DEBUG_LOG" >/dev/null || {
138
- echo "[$(date)] [GitHub] ⚠️ Spec sync failed for $SPEC_ID (non-blocking)" >> "$DEBUG_LOG" 2>/dev/null || true
139
- }
137
+ if [ -n "$SPEC_FILE" ]; then
138
+ # Sync specific spec
139
+ echo "[$(date)] [GitHub] 🔄 Syncing spec $SPEC_ID ($SPEC_FILE) to GitHub..." >> "$DEBUG_LOG" 2>/dev/null || true
140
140
 
141
- echo "[$(date)] [GitHub] Spec sync complete for $SPEC_ID" >> "$DEBUG_LOG" 2>/dev/null || true
141
+ (cd "$PROJECT_ROOT" && node "$SYNC_CLI" --spec "$SPEC_FILE" --provider github) 2>&1 | tee -a "$DEBUG_LOG" >/dev/null || {
142
+ echo "[$(date)] [GitHub] ⚠️ Spec sync failed for $SPEC_ID (non-blocking)" >> "$DEBUG_LOG" 2>/dev/null || true
143
+ }
144
+
145
+ echo "[$(date)] [GitHub] ✅ Spec sync complete for $SPEC_ID" >> "$DEBUG_LOG" 2>/dev/null || true
146
+ else
147
+ echo "[$(date)] [GitHub] ⚠️ Spec file not found for $SPEC_ID" >> "$DEBUG_LOG" 2>/dev/null || true
148
+ fi
142
149
  else
143
- # Sync all changed specs (fallback)
144
- echo "[$(date)] [GitHub] 🔄 Syncing all changed specs to GitHub..." >> "$DEBUG_LOG" 2>/dev/null || true
150
+ # Sync all modified specs (check git diff)
151
+ echo "[$(date)] [GitHub] 🔄 Checking for modified specs..." >> "$DEBUG_LOG" 2>/dev/null || true
152
+
153
+ MODIFIED_SPECS=$(git diff --name-only HEAD .specweave/docs/internal/specs/*.md 2>/dev/null || echo "")
145
154
 
146
- node "$SYNC_CLI" --all 2>&1 | tee -a "$DEBUG_LOG" >/dev/null || {
147
- echo "[$(date)] [GitHub] ⚠️ Batch spec sync failed (non-blocking)" >> "$DEBUG_LOG" 2>/dev/null || true
148
- }
155
+ if [ -n "$MODIFIED_SPECS" ]; then
156
+ echo "[$(date)] [GitHub] 📝 Found modified specs:" >> "$DEBUG_LOG" 2>/dev/null || true
157
+ echo "$MODIFIED_SPECS" >> "$DEBUG_LOG" 2>/dev/null || true
149
158
 
150
- echo "[$(date)] [GitHub] Batch spec sync complete" >> "$DEBUG_LOG" 2>/dev/null || true
159
+ # Sync each modified spec
160
+ echo "$MODIFIED_SPECS" | while read -r SPEC_FILE; do
161
+ if [ -n "$SPEC_FILE" ]; then
162
+ echo "[$(date)] [GitHub] 🔄 Syncing $SPEC_FILE..." >> "$DEBUG_LOG" 2>/dev/null || true
163
+ (cd "$PROJECT_ROOT" && node "$SYNC_CLI" --spec "$SPEC_FILE" --provider github) 2>&1 | tee -a "$DEBUG_LOG" >/dev/null || true
164
+ fi
165
+ done
166
+
167
+ echo "[$(date)] [GitHub] ✅ Batch spec sync complete" >> "$DEBUG_LOG" 2>/dev/null || true
168
+ else
169
+ echo "[$(date)] [GitHub] ℹ️ No modified specs found, skipping sync" >> "$DEBUG_LOG" 2>/dev/null || true
170
+ fi
151
171
  fi
152
172
 
153
173
  # ============================================================================
@@ -4,7 +4,7 @@
4
4
  "version": "1.0.0",
5
5
  "author": {
6
6
  "name": "SpecWeave Team",
7
- "email": "anton@spec-weave.com",
7
+ "email": "anton.abyzov@gmail.com",
8
8
  "url": "https://spec-weave.com"
9
9
  },
10
10
  "license": "MIT",