@fullchico/harness 0.1.6 → 0.1.7

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/install CHANGED
@@ -38,10 +38,30 @@ PROFILE="$(sed -n 's/^PROFILE=//p' "$ROOT/harness.conf" | tr -d "\"'" | sed -n 1
38
38
  PROFILE="${PROFILE:-fullstack-typescript}"
39
39
 
40
40
  # Mostra em que ponto está: registrar plugins e baixar skills leva mais de um minuto, e em
41
- # silêncio parece travado. Num terminal a linha é reescrita; fora dele sai uma linha por passo.
41
+ # silêncio parece travado. Num terminal, um trem anda pelo trilho ao lado do passo atual; fora
42
+ # dele sai uma linha por passo, sem desenho.
43
+ ANIM="" LABEL=""
44
+ stop_train() {
45
+ [ -n "$ANIM" ] || return 0
46
+ { kill "$ANIM" && wait "$ANIM"; } 2>/dev/null
47
+ ANIM=""
48
+ }
42
49
  if [ -t 1 ]; then
43
- progress() { printf '\r\033[K%s' "$1"; }
44
- settle() { printf '\r\033[K%s\n' "$1"; }
50
+ LABEL="$(mktemp)"
51
+ trap 'stop_train; rm -f "$LABEL"' EXIT
52
+ train() { # o trem vai da esquerda à direita do trilho e recomeça; a fumaça fica para trás
53
+ local at=0 width=16 smoke left right
54
+ while :; do
55
+ case $((at % 3)) in 0) smoke=".oO" ;; 1) smoke="oO." ;; *) smoke="O.o" ;; esac
56
+ left="$(printf '%*s' "$at" '' | tr ' ' '=')"
57
+ right="$(printf '%*s' "$((width - at))" '' | tr ' ' '=')"
58
+ printf '\r\033[K%s%s[##]D%s %s' "$left" "$smoke" "$right" "$(cat "$LABEL" 2>/dev/null)"
59
+ at=$(((at + 1) % (width + 1)))
60
+ sleep 0.12
61
+ done
62
+ }
63
+ progress() { printf '%s' "$1" > "$LABEL"; [ -n "$ANIM" ] || { train & ANIM=$!; }; }
64
+ settle() { stop_train; printf '\r\033[K%s\n' "$1"; }
45
65
  else
46
66
  progress() { echo "$1"; }
47
67
  settle() { :; }
@@ -111,6 +131,8 @@ if grep -Eq '^PROJECT="?[^"[:space:]]' "$ROOT/harness.conf" 2>/dev/null; then
111
131
  NEXT="O harness.conf já estava preenchido: portas gravadas no .env e dependências instaladas."
112
132
  fi
113
133
 
134
+ stop_train
135
+ [ -t 1 ] && printf '\r\033[K'
114
136
  if [ -n "${CLAUDECODE:-}" ]; then
115
137
  cat >&2 <<'EOT'
116
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullchico/harness",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Trilhos e portões para projetos desenvolvidos com agentes no Claude Code: orquestração por ticket, revisão independente presa ao commit, ambiente por feature.",
5
5
  "license": "MIT",
6
6
  "author": "FullChico",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Orquestração, guardrails e memória para projetos desenvolvidos com agentes.",
5
5
  "license": "MIT",
6
6
  "author": {