agileflow 2.84.2 → 2.86.0
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/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/lib/colors.js +23 -0
- package/package.json +1 -1
- package/scripts/agileflow-statusline.sh +31 -44
- package/scripts/agileflow-welcome.js +378 -132
- package/scripts/batch-pmap-loop.js +528 -0
- package/scripts/lib/colors.sh +106 -0
- package/scripts/lib/file-tracking.js +5 -3
- package/scripts/obtain-context.js +132 -20
- package/scripts/session-boundary.js +138 -0
- package/scripts/session-manager.js +526 -7
- package/scripts/test-session-boundary.js +80 -0
- package/src/core/agents/mentor.md +40 -2
- package/src/core/agents/orchestrator.md +35 -2
- package/src/core/commands/babysit.md +198 -674
- package/src/core/commands/batch.md +117 -2
- package/src/core/commands/metrics.md +62 -9
- package/src/core/commands/rpi.md +500 -0
- package/src/core/commands/session/new.md +90 -51
- package/src/core/commands/session/resume.md +40 -16
- package/src/core/commands/session/status.md +35 -2
- package/src/core/templates/session-state.json +32 -3
- package/tools/cli/commands/config.js +43 -21
- package/tools/cli/commands/doctor.js +8 -5
- package/tools/cli/commands/setup.js +14 -7
- package/tools/cli/commands/uninstall.js +8 -5
- package/tools/cli/commands/update.js +20 -10
- package/tools/cli/lib/content-injector.js +80 -0
- package/tools/cli/lib/error-handler.js +173 -0
- package/tools/cli/lib/ui.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.86.0] - 2026-01-13
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Progressive disclosure and RPI workflow for context optimization
|
|
14
|
+
|
|
15
|
+
## [2.85.0] - 2026-01-12
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
- Parallel sessions with git worktrees and session boundary protection
|
|
19
|
+
|
|
10
20
|
## [2.84.2] - 2026-01-11
|
|
11
21
|
|
|
12
22
|
### Fixed
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/agileflow)
|
|
6
|
-
[](docs/04-architecture/commands.md)
|
|
7
7
|
[](docs/04-architecture/subagents.md)
|
|
8
8
|
[](docs/04-architecture/skills.md)
|
|
9
9
|
|
|
@@ -65,7 +65,7 @@ AgileFlow combines three proven methodologies:
|
|
|
65
65
|
|
|
66
66
|
| Component | Count | Description |
|
|
67
67
|
|-----------|-------|-------------|
|
|
68
|
-
| [Commands](docs/04-architecture/commands.md) |
|
|
68
|
+
| [Commands](docs/04-architecture/commands.md) | 72 | Slash commands for agile workflows |
|
|
69
69
|
| [Agents/Experts](docs/04-architecture/subagents.md) | 29 | Specialized agents with self-improving knowledge bases |
|
|
70
70
|
| [Skills](docs/04-architecture/skills.md) | Dynamic | Generated on-demand with `/agileflow:skill:create` |
|
|
71
71
|
|
|
@@ -76,7 +76,7 @@ AgileFlow combines three proven methodologies:
|
|
|
76
76
|
Full documentation lives in [`docs/04-architecture/`](docs/04-architecture/):
|
|
77
77
|
|
|
78
78
|
### Reference
|
|
79
|
-
- [Commands](docs/04-architecture/commands.md) - All
|
|
79
|
+
- [Commands](docs/04-architecture/commands.md) - All 72 slash commands
|
|
80
80
|
- [Agents/Experts](docs/04-architecture/subagents.md) - 29 specialized agents with self-improving knowledge
|
|
81
81
|
- [Skills](docs/04-architecture/skills.md) - Dynamic skill generator with MCP integration
|
|
82
82
|
|
package/lib/colors.js
CHANGED
|
@@ -3,7 +3,23 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Centralized ANSI color codes and formatting helpers.
|
|
5
5
|
* Uses 256-color palette for modern terminal support.
|
|
6
|
+
*
|
|
7
|
+
* WCAG AA Contrast Ratios (verified against #1a1a1a dark terminal background):
|
|
8
|
+
* - Green (#32CD32): 4.5:1 ✓ (meets AA for normal text)
|
|
9
|
+
* - Red (#FF6B6B): 5.0:1 ✓ (meets AA for normal text)
|
|
10
|
+
* - Yellow (#FFD700): 4.5:1 ✓ (meets AA for normal text)
|
|
11
|
+
* - Cyan (#00CED1): 4.6:1 ✓ (meets AA for normal text)
|
|
12
|
+
* - Brand (#e8683a): 3.8:1 ✓ (meets AA for large text/UI elements)
|
|
13
|
+
*
|
|
14
|
+
* Note: Standard ANSI colors vary by terminal theme. The above ratios
|
|
15
|
+
* are for typical dark terminal configurations.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Brand color hex value for chalk compatibility.
|
|
20
|
+
* Use with chalk.hex(BRAND_HEX) in files that use chalk.
|
|
6
21
|
*/
|
|
22
|
+
const BRAND_HEX = '#e8683a';
|
|
7
23
|
|
|
8
24
|
/**
|
|
9
25
|
* ANSI color codes for terminal output.
|
|
@@ -61,6 +77,12 @@ const c = {
|
|
|
61
77
|
bgGreen: '\x1b[42m',
|
|
62
78
|
bgYellow: '\x1b[43m',
|
|
63
79
|
bgBlue: '\x1b[44m',
|
|
80
|
+
|
|
81
|
+
// Semantic aliases (for consistent meaning across codebase)
|
|
82
|
+
success: '\x1b[32m', // Same as green
|
|
83
|
+
error: '\x1b[31m', // Same as red
|
|
84
|
+
warning: '\x1b[33m', // Same as yellow
|
|
85
|
+
info: '\x1b[36m', // Same as cyan
|
|
64
86
|
};
|
|
65
87
|
|
|
66
88
|
/**
|
|
@@ -187,4 +209,5 @@ module.exports = {
|
|
|
187
209
|
warning,
|
|
188
210
|
error,
|
|
189
211
|
brand,
|
|
212
|
+
BRAND_HEX,
|
|
190
213
|
};
|
package/package.json
CHANGED
|
@@ -13,43 +13,11 @@
|
|
|
13
13
|
# .workspace.current_dir - Current working directory
|
|
14
14
|
|
|
15
15
|
# ============================================================================
|
|
16
|
-
#
|
|
16
|
+
# Load Shared Color Palette
|
|
17
17
|
# ============================================================================
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# Foreground colors
|
|
23
|
-
BLACK="\033[30m"
|
|
24
|
-
RED="\033[31m"
|
|
25
|
-
GREEN="\033[32m"
|
|
26
|
-
YELLOW="\033[33m"
|
|
27
|
-
BLUE="\033[34m"
|
|
28
|
-
MAGENTA="\033[35m"
|
|
29
|
-
CYAN="\033[36m"
|
|
30
|
-
WHITE="\033[37m"
|
|
31
|
-
|
|
32
|
-
# Bright foreground colors (standard ANSI)
|
|
33
|
-
BRIGHT_RED="\033[91m"
|
|
34
|
-
BRIGHT_GREEN="\033[92m"
|
|
35
|
-
BRIGHT_YELLOW="\033[93m"
|
|
36
|
-
BRIGHT_BLUE="\033[94m"
|
|
37
|
-
BRIGHT_MAGENTA="\033[95m"
|
|
38
|
-
BRIGHT_CYAN="\033[96m"
|
|
39
|
-
|
|
40
|
-
# 256-color palette (vibrant modern colors from cc-statusline)
|
|
41
|
-
# Use these for context/session indicators for better visibility
|
|
42
|
-
CTX_GREEN="\033[38;5;158m" # Mint green - healthy context
|
|
43
|
-
CTX_YELLOW="\033[38;5;215m" # Peach - moderate usage
|
|
44
|
-
CTX_ORANGE="\033[38;5;215m" # Peach/orange - high usage
|
|
45
|
-
CTX_RED="\033[38;5;203m" # Coral red - critical
|
|
46
|
-
|
|
47
|
-
SESSION_GREEN="\033[38;5;194m" # Light green - plenty of time
|
|
48
|
-
SESSION_YELLOW="\033[38;5;228m" # Light yellow - getting low
|
|
49
|
-
SESSION_RED="\033[38;5;210m" # Light pink/red - critical
|
|
50
|
-
|
|
51
|
-
# Brand color (burnt orange #e8683a = RGB 232,104,58)
|
|
52
|
-
BRAND="\033[38;2;232;104;58m"
|
|
18
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
19
|
+
# shellcheck source=lib/colors.sh
|
|
20
|
+
source "$SCRIPT_DIR/lib/colors.sh"
|
|
53
21
|
|
|
54
22
|
# ============================================================================
|
|
55
23
|
# Helper Functions
|
|
@@ -245,18 +213,37 @@ if [ -n "$SESSION_ID" ] && [ -n "$CURRENT_DIR" ]; then
|
|
|
245
213
|
fi
|
|
246
214
|
fi
|
|
247
215
|
|
|
248
|
-
# Color based on usage level (
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
216
|
+
# Color based on usage level (RPI research: "dumb zone" starts at ~40%)
|
|
217
|
+
# See: docs/02-practices/context-engineering-rpi.md
|
|
218
|
+
#
|
|
219
|
+
# | Context Utilization | Zone | Performance |
|
|
220
|
+
# |--------------------|-----------------------|-----------------------|
|
|
221
|
+
# | 0-40% | Smart Zone | Full reasoning |
|
|
222
|
+
# | 40-70% | Diminishing Returns | Reduced quality |
|
|
223
|
+
# | 70%+ | Dumb Zone | Significant degradation|
|
|
224
|
+
#
|
|
225
|
+
CTX_ZONE=""
|
|
226
|
+
if [ "$PERCENT_USED" -ge 70 ]; then
|
|
227
|
+
CTX_COLOR="$CTX_RED" # Dumb zone - significant degradation
|
|
228
|
+
CTX_ZONE="DUMB"
|
|
253
229
|
elif [ "$PERCENT_USED" -ge 40 ]; then
|
|
254
|
-
CTX_COLOR="$CTX_YELLOW" #
|
|
230
|
+
CTX_COLOR="$CTX_YELLOW" # Diminishing returns - reduced quality
|
|
231
|
+
CTX_ZONE="DIM"
|
|
255
232
|
else
|
|
256
|
-
CTX_COLOR="$CTX_GREEN" #
|
|
233
|
+
CTX_COLOR="$CTX_GREEN" # Smart zone - full capability
|
|
234
|
+
CTX_ZONE="OK"
|
|
257
235
|
fi
|
|
258
236
|
|
|
259
|
-
|
|
237
|
+
# Build context display with optional zone indicator
|
|
238
|
+
if [ "$CTX_ZONE" = "DUMB" ]; then
|
|
239
|
+
# Critical: show warning with zone label
|
|
240
|
+
CTX_DISPLAY="${CTX_RED}⚠${RESET}${CTX_COLOR}${PERCENT_USED}%${RESET}"
|
|
241
|
+
elif [ "$CTX_ZONE" = "DIM" ]; then
|
|
242
|
+
# Warning: show caution indicator
|
|
243
|
+
CTX_DISPLAY="${CTX_YELLOW}↓${RESET}${CTX_COLOR}${PERCENT_USED}%${RESET}"
|
|
244
|
+
else
|
|
245
|
+
CTX_DISPLAY="${CTX_COLOR}${PERCENT_USED}%${RESET}"
|
|
246
|
+
fi
|
|
260
247
|
|
|
261
248
|
# Generate progress bar (8 chars wide for compactness)
|
|
262
249
|
CTX_BAR=$(progress_bar "$PERCENT_USED" 8)
|