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 +29 -18
- package/package.json +1 -1
- package/src/session-coordinator.js +7 -0
package/README.md
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
# DevOps Agent ๐ v1.
|
|
1
|
+
# DevOps Agent ๐ v1.7.0
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/s9n-devops-agent)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
[](https://github.com/SecondBrainAICo/CS_DevOpsAgent)
|
|
6
6
|
|
|
7
|
-
An intelligent Git automation system with multi-agent support, real-time file coordination,
|
|
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.
|
|
9
|
+
## ๐ What's New in v1.7.0
|
|
10
10
|
|
|
11
|
-
###
|
|
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
|
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
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. **
|
|
182
|
-
4. **
|
|
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
|
-
|
|
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
|
@@ -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
|
|