mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
fix: Replace ls with find for Windows compatibility in workflow architecture
- Replace 'ls .workflow/.active-* 2>/dev/null' with 'find .workflow -name ".active-*"' - Update session detection, switching, and consistency check commands - Improves Windows environment compatibility for workflow activation flags 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -37,7 +37,7 @@ This document defines the complete workflow system architecture using a **JSON-o
|
|||||||
|
|
||||||
#### Detect Active Session
|
#### Detect Active Session
|
||||||
```bash
|
```bash
|
||||||
active_session=$(ls .workflow/.active-* 2>/dev/null | head -1)
|
active_session=$(find .workflow -name ".active-*" | head -1)
|
||||||
if [ -n "$active_session" ]; then
|
if [ -n "$active_session" ]; then
|
||||||
session_name=$(basename "$active_session" | sed 's/^\.active-//')
|
session_name=$(basename "$active_session" | sed 's/^\.active-//')
|
||||||
echo "Active session: $session_name"
|
echo "Active session: $session_name"
|
||||||
@@ -46,7 +46,7 @@ fi
|
|||||||
|
|
||||||
#### Switch Session
|
#### Switch Session
|
||||||
```bash
|
```bash
|
||||||
rm .workflow/.active-* 2>/dev/null && touch .workflow/.active-WFS-new-feature
|
find .workflow -name ".active-*" -delete && touch .workflow/.active-WFS-new-feature
|
||||||
```
|
```
|
||||||
|
|
||||||
### Individual Session Tracking
|
### Individual Session Tracking
|
||||||
@@ -424,7 +424,7 @@ generate_todo_list_from_json .task/
|
|||||||
### Session Consistency Checks
|
### Session Consistency Checks
|
||||||
```bash
|
```bash
|
||||||
# Validate active session integrity
|
# Validate active session integrity
|
||||||
active_marker=$(ls .workflow/.active-* 2>/dev/null | head -1)
|
active_marker=$(find .workflow -name ".active-*" | head -1)
|
||||||
if [ -n "$active_marker" ]; then
|
if [ -n "$active_marker" ]; then
|
||||||
session_name=$(basename "$active_marker" | sed 's/^\.active-//')
|
session_name=$(basename "$active_marker" | sed 's/^\.active-//')
|
||||||
session_dir=".workflow/$session_name"
|
session_dir=".workflow/$session_name"
|
||||||
|
|||||||
Reference in New Issue
Block a user