s9n-devops-agent 1.5.0 → 1.5.1

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": "s9n-devops-agent",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "CS_DevOpsAgent - Intelligent Git Automation System with multi-agent support and session management",
5
5
  "type": "module",
6
6
  "main": "src/cs-devops-agent-worker.js",
@@ -1565,20 +1565,14 @@ The DevOps agent is monitoring this worktree for changes.
1565
1565
 
1566
1566
  console.log(`\n${CONFIG.colors.yellow}Starting agent for session ${session.sessionId}...${CONFIG.colors.reset}`);
1567
1567
 
1568
- // Start the agent first
1568
+ // Start the agent
1569
1569
  await this.startAgent(session.sessionId);
1570
1570
 
1571
1571
  // Wait for agent to initialize and show its interactive commands
1572
1572
  await new Promise(resolve => setTimeout(resolve, 3000));
1573
1573
 
1574
- // Now display the instructions AFTER the agent is running
1575
- console.log('\n'.repeat(2)); // Add some spacing
1576
- // Create instructions object with worktreePath for display
1577
- const instructionsForDisplay = {
1578
- worktreePath: session.worktreePath,
1579
- sessionId: session.sessionId
1580
- };
1581
- this.displayInstructions(instructionsForDisplay, session.sessionId, options.task || 'development');
1574
+ // Instructions were already displayed by createSession() - no need to display again
1575
+ // This prevents duplicate copy-paste instructions
1582
1576
 
1583
1577
  return session;
1584
1578
  }
@@ -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.0 | Build 20251009.2"
44
+ echo " Version 1.5.1 | Build 20251009.3"
45
45
  echo " "
46
46
  echo " Copyright (c) 2024 SecondBrain Labs"
47
47
  echo " Author: Sachin Dev Duggal"
@@ -62,36 +62,8 @@ show_header() {
62
62
  echo
63
63
  }
64
64
 
65
- # Function to display session instructions
66
- display_instructions() {
67
- local session_id="$1"
68
- local worktree_path="$2"
69
- local branch_name="$3"
70
- local task="$4"
71
-
72
- echo
73
- echo -e "${BG_GREEN}${BOLD} Instructions for Your Coding Agent ${NC}"
74
- echo
75
- echo -e "${YELLOW}══════════════════════════════════════════════════════════════${NC}"
76
- echo -e "${BOLD}COPY AND PASTE THIS ENTIRE BLOCK INTO YOUR CODING AGENT BEFORE YOUR PROMPT:${NC}"
77
- echo -e "${YELLOW}──────────────────────────────────────────────────────────────${NC}"
78
- echo
79
- echo "I'm working in a DevOps-managed session with the following setup:"
80
- echo "- Session ID: ${session_id}"
81
- echo "- Working Directory: ${worktree_path}"
82
- echo "- Task: ${task}"
83
- echo ""
84
- echo "Please switch to this directory before making any changes:"
85
- echo "cd \"${worktree_path}\""
86
- echo ""
87
- echo "Write commit messages to: .devops-commit-${session_id}.msg"
88
- echo "The DevOps agent will automatically commit and push changes."
89
- echo
90
- echo -e "${YELLOW}══════════════════════════════════════════════════════════════${NC}"
91
- echo
92
- echo -e "${GREEN}✓ DevOps agent will monitor for changes${NC}"
93
- echo
94
- }
65
+ # NOTE: display_instructions function removed - session coordinator handles this now
66
+ # to prevent duplicate copy-paste instructions
95
67
 
96
68
  # Function to list existing sessions
97
69
  list_sessions() {