xwang 0.0.4 → 0.0.5
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.
|
@@ -127,6 +127,29 @@ if [ -d "$CHANGES_DIR" ]; then
|
|
|
127
127
|
done < <(find "$CHANGES_DIR" -maxdepth 1 -mindepth 1 -type d -print)
|
|
128
128
|
fi
|
|
129
129
|
|
|
130
|
+
# 1b. Orphaned OpenSpec changes (OpenSpec artifacts without .xwang.yaml)
|
|
131
|
+
if [ -d "$CHANGES_DIR" ]; then
|
|
132
|
+
while IFS= read -r change_dir; do
|
|
133
|
+
[ -z "$change_dir" ] && continue
|
|
134
|
+
change_name=$(basename "$change_dir")
|
|
135
|
+
|
|
136
|
+
# Skip the archive directory and changes that already have xwang state.
|
|
137
|
+
[ "$change_name" = "archive" ] && continue
|
|
138
|
+
[ -f "$change_dir/.xwang.yaml" ] && continue
|
|
139
|
+
|
|
140
|
+
# Detect common OpenSpec change artifacts.
|
|
141
|
+
if [ -f "$change_dir/.openspec.yaml" ] || \
|
|
142
|
+
[ -f "$change_dir/proposal.md" ] || \
|
|
143
|
+
[ -f "$change_dir/design.md" ] || \
|
|
144
|
+
[ -f "$change_dir/tasks.md" ] || \
|
|
145
|
+
[ -d "$change_dir/specs" ]; then
|
|
146
|
+
JSON_ENTRIES+=("{\"source\":\"openspec-orphan\",\"name\":\"$change_name\",\"status\":\"orphaned\",\"details\":\"OpenSpec artifacts without .xwang.yaml\",\"action\":\"initialize xwang state or archive before starting new work\"}")
|
|
147
|
+
TEXT_LINES+=(" - [openspec-orphan] $change_name: OpenSpec artifacts present but no .xwang.yaml → initialize xwang state or archive before starting new work")
|
|
148
|
+
SIGNAL_COUNT=$((SIGNAL_COUNT + 1))
|
|
149
|
+
fi
|
|
150
|
+
done < <(find "$CHANGES_DIR" -maxdepth 1 -mindepth 1 -type d -print)
|
|
151
|
+
fi
|
|
152
|
+
|
|
130
153
|
# 2. Git dirty worktree
|
|
131
154
|
GIT_DIRTY=0
|
|
132
155
|
GIT_DETAILS=""
|