s9n-devops-agent 1.7.0 โ†’ 1.7.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/README.md CHANGED
@@ -1,26 +1,28 @@
1
- # DevOps Agent ๐Ÿš€ v1.3.1
1
+ # DevOps Agent ๐Ÿš€ v1.7.0
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/s9n-devops-agent.svg)](https://badge.fury.io/js/s9n-devops-agent)
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![GitHub](https://img.shields.io/badge/GitHub-Repository-blue)](https://github.com/SecondBrainAICo/CS_DevOpsAgent)
6
6
 
7
- An intelligent Git automation system with multi-agent support, real-time file coordination, session management, and seamless integration with AI coding assistants like Claude, GitHub Copilot, and Cursor.
7
+ An intelligent Git automation system with multi-agent support, enhanced branch management, real-time file coordination, and seamless integration with AI coding assistants like Claude, GitHub Copilot, and Cursor.
8
8
 
9
- ## ๐Ÿ†• What's New in v1.3.1
9
+ ## ๐Ÿ†• What's New in v1.7.0
10
10
 
11
- ### Latest Updates (v1.3.1)
12
- - **๐Ÿ”’ Enhanced File Locking**: Improved coordination scripts with proper empty directory handling
13
- - **๐Ÿงช File Locking Demo**: New comprehensive test showing how multi-agent coordination prevents conflicts
14
- - **๐Ÿ“ Better Organization**: Coordination scripts moved to `scripts/coordination/` for clarity
15
- - **๐Ÿ› Bug Fixes**: Fixed glob expansion issues in file coordination scripts
11
+ ### Major Release: Enhanced Branch Management System
16
12
 
17
- ### Previous Features (v1.3.0)
18
- - **๐Ÿ“š Intelligent House Rules System**: Auto-creates and updates project conventions for AI agents
19
- - **๐ŸŸง Real-time Undeclared Edit Detection**: Instantly alerts when files are edited without declaration
20
- - **๐Ÿ”ด File Conflict Prevention**: Detects and reports when multiple agents try to edit the same files
21
- - **๐Ÿ”„ Smart Version Updates**: House rules sections update independently while preserving user content
22
- - **๐Ÿš€ Streamlined Setup**: One-command setup with `npm start` - handles everything automatically
23
- - **๐Ÿ”ง Self-Healing**: Automatically recovers if house rules are deleted
13
+ - **๐Ÿ”€ Dual Merge Support**: Sessions merge to BOTH daily branch AND target branch (e.g., main)
14
+ - **๐Ÿ“… Weekly Consolidation**: Automated rollup of daily branches into weekly branches
15
+ - **๐Ÿงน Orphaned Session Cleanup**: Automatic detection and cleanup of inactive sessions
16
+ - **๐ŸŒฒ Hierarchical Branching**: Clear structure: `session/* โ†’ daily/* โ†’ weekly/* โ†’ target`
17
+ - **๐Ÿ”’ Critical Lock Timing Fix**: File locks now held for entire session lifetime (not just during editing)
18
+ - **โœ… Comprehensive Testing**: 10/10 automated tests passing + E2E validation with 2 parallel agents
19
+ - **๐Ÿ“š Enhanced Documentation**: Complete branch management guide and testing strategy
20
+
21
+ ### File Coordination Improvements
22
+ - **โฑ๏ธ Correct Lock Timing**: Locks held until session closes/merges (prevents race conditions)
23
+ - **๐Ÿ›‘ Stop-and-Ask Policy**: Agents must ask user permission before editing declared files
24
+ - **๐Ÿ“Š Detailed Conflict Reports**: Shows which agent, which files, and what they're working on
25
+ - **๐Ÿ” Session-Lifetime Protection**: Files protected from other agents until changes are merged
24
26
 
25
27
  ## ๐Ÿ”— Quick Links
26
28
 
@@ -178,11 +180,20 @@ Prevents multiple AI agents from editing the same files simultaneously:
178
180
 
179
181
  1. **Declaration Phase**: Agents declare which files they'll modify
180
182
  2. **Conflict Check**: System checks if files are already being edited
181
- 3. **Real-time Monitoring**: Detects violations within 2 seconds
182
- 4. **Alert System**:
183
+ 3. **Session-Lifetime Locks**: ๐Ÿ”’ **CRITICAL** - Locks held for ENTIRE session, not just during editing
184
+ 4. **Release Only on Close**: Locks released ONLY when session closes/merges (prevents race conditions)
185
+ 5. **Real-time Monitoring**: Detects violations within 2 seconds
186
+ 6. **Alert System**:
183
187
  - ๐ŸŸง **Orange Alert**: Files edited without declaration
184
188
  - ๐Ÿ”ด **Red Alert**: Files being edited by another agent
185
- 5. **Copy-Paste Instructions**: Provides exact commands to correct agent behavior
189
+ - ๐Ÿ›‘ **Stop-and-Ask**: Agents must get user permission to override
190
+ 7. **Copy-Paste Instructions**: Provides exact commands to correct agent behavior
191
+
192
+ #### Why Locks Stay Active During Entire Session:
193
+ - โŒ **Problem**: Releasing locks after commit allows another agent to edit same files
194
+ - ๐Ÿ’ฅ **Result**: Both sessions conflict when merging
195
+ - โœ… **Solution**: Hold locks until session is merged and worktree removed
196
+ - ๐ŸŽฏ **Benefit**: Zero race conditions, no duplicate work
186
197
 
187
198
  **Coordination Commands:**
188
199
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s9n-devops-agent",
3
- "version": "1.7.0",
3
+ "version": "1.7.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",
@@ -158,6 +158,9 @@ class SessionCoordinator {
158
158
  }
159
159
 
160
160
  try {
161
+ // Show checking message
162
+ console.log(`${CONFIG.colors.dim}๐Ÿ” Checking for DevOps Agent updates...${CONFIG.colors.reset}`);
163
+
161
164
  // Check npm for latest version
162
165
  const result = execSync('npm view s9n-devops-agent version', {
163
166
  encoding: 'utf8',
@@ -206,9 +209,13 @@ class SessionCoordinator {
206
209
  console.log(`${CONFIG.colors.dim}You can update later with: npm install -g s9n-devops-agent@latest${CONFIG.colors.reset}`);
207
210
  }
208
211
  console.log();
212
+ } else {
213
+ // Version is up to date
214
+ console.log(`${CONFIG.colors.dim}โœ“ DevOps Agent is up to date (v${this.currentVersion})${CONFIG.colors.reset}`);
209
215
  }
210
216
  } catch (err) {
211
217
  // Silently fail - don't block execution on update check
218
+ console.log(`${CONFIG.colors.dim}โœ— Could not check for updates (offline or npm unavailable)${CONFIG.colors.reset}`);
212
219
  }
213
220
  }
214
221