@freshworks/shiftleft-tools 1.1.19 → 1.1.20

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freshworks/shiftleft-tools",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "CLI for managing Cursor rules/skills and Postman test infrastructure across Java Spring Boot and Node.js/Express projects",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -219,17 +219,22 @@ fi
219
219
  echo ""
220
220
  echo -e "${CYAN}Phase 5: Combined Quality Report${NC}"
221
221
 
222
- # Install Python dependencies if needed (defusedxml for XXE protection)
222
+ # Install Python dependencies if needed (defusedxml for XXE protection, boto3 for health publishing)
223
223
  if [ "$SKIP_REPORT" = false ] || [ "$SKIP_COVERAGE" = false ]; then
224
224
  echo -e "${YELLOW}Installing Python dependencies...${NC}"
225
+ python3 -m pip install --upgrade pip >/dev/null 2>&1
225
226
  if [ -f "$PROJECT_ROOT/requirements.txt" ]; then
226
- python3 -m pip install --upgrade pip >/dev/null 2>&1
227
227
  python3 -m pip install -r "$PROJECT_ROOT/requirements.txt" >/dev/null 2>&1 || {
228
228
  echo -e "${RED}Failed to install Python dependencies${NC}"
229
229
  exit 1
230
230
  }
231
- echo -e "${GREEN}Python dependencies installed${NC}"
231
+ else
232
+ # Fallback: ensure minimum deps when requirements.txt absent or predates boto3 addition
233
+ python3 -m pip install "defusedxml>=0.7.1" "boto3>=1.28.0" >/dev/null 2>&1 || true
232
234
  fi
235
+ # Ensure boto3 present even if requirements.txt predates health-publishing feature
236
+ python3 -c "import boto3" 2>/dev/null || python3 -m pip install "boto3>=1.28.0" >/dev/null 2>&1 || true
237
+ echo -e "${GREEN}Python dependencies installed${NC}"
233
238
  fi
234
239
 
235
240
  if [ "$SKIP_REPORT" = false ]; then