prjct-cli 3.57.0 → 3.58.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 CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [3.58.0] - 2026-07-14
6
+
7
+ ### Added
8
+ - Fix ship_* retention archive + context-pressure compact path
9
+
10
+ ### Fixed
11
+ - Retention/dream: `ship_*` candidates archive via `shipped_features` delete (no more wouldArchive>0 while archived=0)
12
+ - Context pressure: warn (≥60%) is hard compact-path (land→prime); Claude statusline shows `→land` at ≥60% host context
13
+
5
14
  ## [3.57.0] - 2026-07-14
6
15
 
7
16
  ### Added
@@ -5,21 +5,28 @@
5
5
  component_context() {
6
6
  component_enabled "context" || return
7
7
 
8
- # CTX_PERCENT is set by parse_stdin in cache.sh
8
+ # CTX_PERCENT is set by parse_stdin in cache.sh (host context-window fill %)
9
9
  local min_percent="${CONFIG_CONTEXT_MIN_PERCENT:-30}"
10
10
 
11
11
  # Only show when usage is significant
12
+ [[ -z "$CTX_PERCENT" || ! "$CTX_PERCENT" =~ ^[0-9]+$ ]] && return
12
13
  [[ "$CTX_PERCENT" -lt "$min_percent" ]] && return
13
14
 
14
- # Determine color based on usage
15
+ # Determine color based on usage — ≥60% is prjct compact-path territory
16
+ # (align with context-pressure WARN_RATIO 0.6 / Claude utilization guard).
15
17
  local color
16
- if [[ "$CTX_PERCENT" -ge 80 ]]; then
18
+ local suffix=""
19
+ if [[ "$CTX_PERCENT" -ge 70 ]]; then
17
20
  color="$ERROR"
21
+ suffix=" →land"
22
+ elif [[ "$CTX_PERCENT" -ge 60 ]]; then
23
+ color="$ERROR"
24
+ suffix=" →land"
18
25
  elif [[ "$CTX_PERCENT" -ge 50 ]]; then
19
26
  color="$ACCENT"
20
27
  else
21
28
  color="$MUTED"
22
29
  fi
23
30
 
24
- echo -e "${color}${CTX_PERCENT}%${NC}"
31
+ echo -e "${color}${CTX_PERCENT}%${suffix}${NC}"
25
32
  }