s9n-devops-agent 1.5.5 → 1.5.6
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 +1 -1
- package/start-devops-session.sh +11 -1
package/package.json
CHANGED
package/start-devops-session.sh
CHANGED
|
@@ -41,7 +41,7 @@ show_copyright() {
|
|
|
41
41
|
echo "======================================================================"
|
|
42
42
|
echo
|
|
43
43
|
echo " CS_DevOpsAgent - Intelligent Git Automation System"
|
|
44
|
-
echo " Version 1.5.
|
|
44
|
+
echo " Version 1.5.6 | Build 20251009.8"
|
|
45
45
|
echo " "
|
|
46
46
|
echo " Copyright (c) 2024 SecondBrain Labs"
|
|
47
47
|
echo " Author: Sachin Dev Duggal"
|
|
@@ -183,12 +183,22 @@ select_session() {
|
|
|
183
183
|
return 0
|
|
184
184
|
elif [[ "$choice" =~ ^[0-9]+$ ]] && [[ "$choice" -ge 1 ]] && [[ "$choice" -le "${#session_files[@]}" ]]; then
|
|
185
185
|
# Use existing session
|
|
186
|
+
# Debug: Show what we're trying to access
|
|
187
|
+
echo -e "${DIM}[Debug] Choice: $choice, Array size: ${#session_files[@]}${NC}"
|
|
188
|
+
echo -e "${DIM}[Debug] Array contents: ${session_files[@]}${NC}"
|
|
189
|
+
|
|
186
190
|
# In zsh, arrays are 1-indexed, so $choice maps directly
|
|
187
191
|
local selected_file="${session_files[$choice]}"
|
|
188
192
|
|
|
193
|
+
echo -e "${DIM}[Debug] Selected file: $selected_file${NC}"
|
|
194
|
+
|
|
189
195
|
# Validate that the file exists
|
|
190
196
|
if [[ ! -f "$selected_file" ]]; then
|
|
191
197
|
echo -e "${RED}Error: Session file not found: $selected_file${NC}"
|
|
198
|
+
echo -e "${YELLOW}All files in array:${NC}"
|
|
199
|
+
for idx in "${!session_files[@]}"; do
|
|
200
|
+
echo -e " [$idx] = ${session_files[$idx]}"
|
|
201
|
+
done
|
|
192
202
|
return 1
|
|
193
203
|
fi
|
|
194
204
|
|