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.
- package/.claude-plugin/README.md +2 -2
- package/.claude-plugin/marketplace.json +22 -22
- package/dist/locales/de/.gitkeep +0 -0
- package/dist/locales/de/cli.json +108 -0
- package/dist/locales/en/cli.json +287 -0
- package/dist/locales/en/errors.json +7 -0
- package/dist/locales/en/templates.json +6 -0
- package/dist/locales/es/.gitkeep +0 -0
- package/dist/locales/es/cli.json +41 -0
- package/dist/locales/fr/.gitkeep +0 -0
- package/dist/locales/fr/cli.json +108 -0
- package/dist/locales/ja/.gitkeep +0 -0
- package/dist/locales/ja/cli.json +108 -0
- package/dist/locales/ko/.gitkeep +0 -0
- package/dist/locales/ko/cli.json +108 -0
- package/dist/locales/pt/.gitkeep +0 -0
- package/dist/locales/pt/cli.json +108 -0
- package/dist/locales/ru/.gitkeep +0 -0
- package/dist/locales/ru/cli.json +269 -0
- package/dist/locales/zh/.gitkeep +0 -0
- package/dist/locales/zh/cli.json +108 -0
- package/dist/src/cli/commands/init.js +10 -10
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.js +18 -15
- package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/src/core/spec-task-mapper.d.ts.map +1 -1
- package/dist/src/core/spec-task-mapper.js +7 -12
- package/dist/src/core/spec-task-mapper.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/hooks/post-task-completion.sh +72 -12
- package/plugins/specweave/skills/increment-planner/SKILL.md +4 -4
- package/plugins/specweave-github/hooks/post-task-completion.sh +35 -15
- 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-
|
|
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] ⚠️
|
|
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
|
-
#
|
|
135
|
-
|
|
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
|
-
|
|
138
|
-
|
|
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
|
-
|
|
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
|
|
144
|
-
echo "[$(date)] [GitHub] 🔄
|
|
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
|
-
|
|
147
|
-
echo "[$(date)] [GitHub]
|
|
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
|
-
|
|
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
|
# ============================================================================
|