s9n-devops-agent 1.3.3 → 1.3.4
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
|
@@ -918,6 +918,10 @@ The DevOps agent will automatically:
|
|
|
918
918
|
* Display instructions in a user-friendly format
|
|
919
919
|
*/
|
|
920
920
|
displayInstructions(instructions, sessionId, task) {
|
|
921
|
+
// Get the parent repository root (where the session was started from)
|
|
922
|
+
const parentRepoRoot = process.cwd();
|
|
923
|
+
const houseRulesPath = path.join(parentRepoRoot, 'houserules.md');
|
|
924
|
+
|
|
921
925
|
console.log(`\n${CONFIG.colors.bgGreen}${CONFIG.colors.bright} Instructions for Your Coding Agent ${CONFIG.colors.reset}\n`);
|
|
922
926
|
|
|
923
927
|
// Clean separator
|
|
@@ -935,10 +939,10 @@ The DevOps agent will automatically:
|
|
|
935
939
|
console.log(`⚠️ IMPORTANT: DO NOT start working yet! Wait for the user's specific instructions.`);
|
|
936
940
|
console.log(``);
|
|
937
941
|
console.log(`CRITICAL FIRST STEP:`);
|
|
938
|
-
console.log(`1. Read and follow the house rules: cat "${
|
|
942
|
+
console.log(`1. Read and follow the house rules: cat "${houseRulesPath}"`);
|
|
939
943
|
console.log(`2. Switch to the working directory: cd "${instructions.worktreePath}"`);
|
|
940
944
|
console.log(``);
|
|
941
|
-
console.log(`FILE COORDINATION PROTOCOL (from house rules at ${
|
|
945
|
+
console.log(`FILE COORDINATION PROTOCOL (from house rules at ${houseRulesPath}):`);
|
|
942
946
|
console.log(`Before editing ANY files, you MUST:`);
|
|
943
947
|
console.log(`- Declare your intent in .file-coordination/active-edits/<agent>-${sessionId}.json`);
|
|
944
948
|
console.log(`- Check for conflicts with other agents`);
|
package/start-devops-session.sh
CHANGED
|
@@ -160,7 +160,7 @@ create_new_session() {
|
|
|
160
160
|
echo -e "${YELLOW}Creating session for: ${task_name}${NC}"
|
|
161
161
|
|
|
162
162
|
# Run the session coordinator to create AND START the session
|
|
163
|
-
|
|
163
|
+
# Keep current directory to ensure session is created for the right repo
|
|
164
164
|
node "$SRC_DIR/session-coordinator.js" create-and-start --task "$task_name" --agent "$agent_type"
|
|
165
165
|
}
|
|
166
166
|
|
|
@@ -234,7 +234,7 @@ select_session() {
|
|
|
234
234
|
echo -e "${YELLOW}═══════════════════════════════════════════════════════════${NC}"
|
|
235
235
|
|
|
236
236
|
# Start the agent for this session
|
|
237
|
-
|
|
237
|
+
# Keep current directory to ensure agent runs in the right repo
|
|
238
238
|
node "$SRC_DIR/session-coordinator.js" start "$session_id"
|
|
239
239
|
return 0
|
|
240
240
|
else
|