@leeovery/claude-technical-workflows 2.0.36 → 2.0.37
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
package/scripts/migrate.sh
CHANGED
|
@@ -99,35 +99,25 @@ if [ ${#MIGRATION_SCRIPTS[@]} -eq 0 ]; then
|
|
|
99
99
|
exit 0
|
|
100
100
|
fi
|
|
101
101
|
|
|
102
|
-
echo "Running migrations..."
|
|
103
|
-
echo ""
|
|
104
|
-
|
|
105
102
|
for script in "${MIGRATION_SCRIPTS[@]}"; do
|
|
106
103
|
# Extract migration ID from filename (e.g., "001" from "001-discussion-frontmatter.sh")
|
|
107
104
|
migration_id=$(basename "$script" .sh | grep -oE '^[0-9]+')
|
|
108
|
-
migration_name=$(basename "$script" .sh)
|
|
109
105
|
|
|
110
106
|
if [ -z "$migration_id" ]; then
|
|
111
107
|
echo "Warning: Skipping $script (no numeric prefix)"
|
|
112
108
|
continue
|
|
113
109
|
fi
|
|
114
110
|
|
|
115
|
-
echo "$migration_name:"
|
|
116
|
-
|
|
117
111
|
# Source and run the migration script
|
|
118
112
|
# The script has access to: is_migrated, record_migration, report_update, report_skip
|
|
119
113
|
# shellcheck source=/dev/null
|
|
120
114
|
source "$script"
|
|
121
115
|
|
|
122
116
|
MIGRATIONS_RUN=$((MIGRATIONS_RUN + 1))
|
|
123
|
-
echo ""
|
|
124
117
|
done
|
|
125
118
|
|
|
126
|
-
#
|
|
127
|
-
# Final report
|
|
128
|
-
#
|
|
119
|
+
# Only output if files were actually updated
|
|
129
120
|
if [ "$FILES_UPDATED" -gt 0 ]; then
|
|
130
|
-
echo "
|
|
131
|
-
|
|
132
|
-
echo "All documents up to date."
|
|
121
|
+
echo ""
|
|
122
|
+
echo "$FILES_UPDATED file(s) migrated. Review with \`git diff\`, then proceed."
|
|
133
123
|
fi
|