s9n-devops-agent 1.5.5 → 1.5.7
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/src/house-rules-manager.js +16 -12
- package/start-devops-session.sh +11 -1
package/package.json
CHANGED
|
@@ -550,20 +550,24 @@ ${endMarker}`;
|
|
|
550
550
|
});
|
|
551
551
|
|
|
552
552
|
return new Promise((resolve) => {
|
|
553
|
-
console.log('\n
|
|
554
|
-
console.log('
|
|
555
|
-
console.log('
|
|
556
|
-
console.log('\
|
|
557
|
-
console.log('
|
|
558
|
-
console.log(' •
|
|
559
|
-
console.log(' •
|
|
560
|
-
console.log('
|
|
561
|
-
console.log(' •
|
|
562
|
-
console.log(' • Best for: Existing projects, quick setup');
|
|
563
|
-
console.log(' • Includes: Core house rules only');
|
|
553
|
+
console.log('\n' + '='.repeat(70));
|
|
554
|
+
console.log('📋 FIRST-TIME PROJECT SETUP: House Rules Configuration');
|
|
555
|
+
console.log('='.repeat(70));
|
|
556
|
+
console.log('\nChoose your project organization style:\n');
|
|
557
|
+
console.log(' ✅ STRUCTURED (Recommended for new projects)');
|
|
558
|
+
console.log(' • Enforced modular folder organization');
|
|
559
|
+
console.log(' • Pattern: /ModuleName/src/featurename/');
|
|
560
|
+
console.log(' • Includes: houserules.md + folders.md guide');
|
|
561
|
+
console.log(' • Best for: New projects, large applications, teams');
|
|
564
562
|
console.log();
|
|
563
|
+
console.log(' ❌ FLEXIBLE (Recommended for existing projects)');
|
|
564
|
+
console.log(' • No enforced folder structure');
|
|
565
|
+
console.log(' • Organize files your own way');
|
|
566
|
+
console.log(' • Includes: houserules.md only');
|
|
567
|
+
console.log(' • Best for: Existing projects, personal projects');
|
|
568
|
+
console.log('\n' + '─'.repeat(70));
|
|
565
569
|
|
|
566
|
-
rl.question('
|
|
570
|
+
rl.question('\nDo you want STRUCTURED folder organization? (Y/N) [N]: ', (answer) => {
|
|
567
571
|
const wantStructure = answer.trim().toLowerCase() === 'y' || answer.trim().toLowerCase() === 'yes';
|
|
568
572
|
rl.close();
|
|
569
573
|
|
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.7 | Build 20251009.9"
|
|
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
|
|