s9n-devops-agent 2.0.13 → 2.0.18-dev.0

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.
@@ -758,7 +758,8 @@ Examples:
758
758
  }
759
759
 
760
760
  // Run if called directly
761
- if (import.meta.url === `file://${__filename}`) {
761
+ const isMainModule = process.argv[1] === __filename;
762
+ if (isMainModule) {
762
763
  main().catch(error => {
763
764
  log.error(`Fatal error: ${error.message}`);
764
765
  process.exit(1);
@@ -177,7 +177,8 @@ select_session() {
177
177
  echo -e "${BOLD}🚀 Session Selection${NC}"
178
178
  echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
179
179
  echo
180
- echo " ${BOLD}${GREEN}N)${NC} Create a ${BOLD}new${NC} session"
180
+ echo -e " ${BOLD}${MAGENTA}0)${NC} 🤖 Kora (Smart Assistant)"
181
+ echo -e " ${BOLD}${GREEN}N)${NC} Create a ${BOLD}new${NC} session"
181
182
 
182
183
  # List existing sessions
183
184
  local sessions_dir="local_deploy/session-locks"
@@ -211,7 +212,13 @@ select_session() {
211
212
  read choice
212
213
 
213
214
  # Handle the choice
214
- if [[ "$choice" =~ ^[Qq]$ ]]; then
215
+ if [[ "$choice" == "0" ]]; then
216
+ # Start Smart Assistant
217
+ echo
218
+ echo -e "${MAGENTA}Starting Smart Assistant...${NC}"
219
+ node "$SRC_DIR/agent-chat.js"
220
+ return 0
221
+ elif [[ "$choice" =~ ^[Qq]$ ]]; then
215
222
  # Quit the session manager
216
223
  echo
217
224
  echo -e "${GREEN}Goodbye! Exiting DevOps Session Manager.${NC}"