clawforge-cli 1.5.1__tar.gz → 1.5.3__tar.gz
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.
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/CHANGELOG.md +16 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/Formula/clawforge.rb +3 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/PKG-INFO +1 -1
- clawforge_cli-1.5.3/VERSION +1 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/package.json +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/pyproject.toml +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-ci-loop.sh +2 -2
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-clean.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-cli.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-conflicts.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-cost.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-dx.sh +4 -4
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-eval.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-history.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-init.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-learn.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-management.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-memory.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-merge.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-modes.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-multi-repo.sh +2 -2
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-notify.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-observability.sh +2 -2
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-openclaw.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-power.sh +2 -2
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-practical.sh +2 -2
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-reliability.sh +2 -2
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-review.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-routing.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-scope.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-spawn.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-templates.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-tui.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-watch.sh +1 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-web.sh +2 -2
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/agent.go +3 -4
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/dashboard.go +9 -6
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/model.go +14 -3
- clawforge_cli-1.5.1/VERSION +0 -1
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/.github/workflows/ci.yml +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/.github/workflows/publish-npm.yml +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/.github/workflows/publish-pypi.yml +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/.github/workflows/update-homebrew.yml +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/.github/workflows/version-sync.yml +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/.gitignore +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/LICENSE +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/PRD-v05.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/PRD-v06.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/PRD-v07.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/README.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/SKILL.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/attach.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/check-agents.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/clawforge +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/clawforge-web +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/clean.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/completions.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/config.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/conflicts.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/cost.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/dashboard.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/deps.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/diff.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/doctor.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/eval.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/export.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/history.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/init.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/learn.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/logs.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/memory.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/merge-helper.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/multi-review.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/notify.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/on-complete.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/parse-cost.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/pr.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/profile.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/replay.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/resume.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/review-mode.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/review-pr.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/routing.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/scope-task.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/spawn-agent.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/sprint.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/steer.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/stop.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/summary.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/swarm.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/templates.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/bin/web.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/clawforge/__init__.py +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/clawforge/cli.py +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/completions/_clawforge +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/completions/clawforge.bash +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/completions/clawforge.fish +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/config/defaults.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/config/prompt-templates/default.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/config/routing-defaults.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/IMPLEMENTATION-v04.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/PRD-v04.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/PUBLISHING-CHECKLIST.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/README.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/RELEASE.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/architecture.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/command-reference.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/configuration.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/dashboard.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/evaluation.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/faq.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/fleet-ops.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/getting-started.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/scenarios.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/troubleshooting.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/docs/workflow-modes.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/evals/run-log.example.jsonl +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/evals/run-log.schema.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/evals/scorecard.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/install.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/lib/common.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/lib/templates/bugfix.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/lib/templates/migration.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/lib/templates/refactor.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/lib/templates/security-audit.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/lib/templates/test-coverage.json +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/registry/conflicts.jsonl +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/registry/costs.jsonl +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/run-all-tests.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-dashboard.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-deps.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-foundation.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tests/test-registry.sh +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/PRD.md +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/animation.go +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/filter.go +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/go.mod +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/go.sum +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/keybindings.go +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/main.go +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/steer.go +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/tui/styles.go +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/web/go.mod +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/web/index.html +0 -0
- {clawforge_cli-1.5.1 → clawforge_cli-1.5.3}/web/main.go +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.5.3 — TUI Fixes
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- **Init race**: agents now load instantly on startup (was showing "No agents found" for 2s due to value-receiver bug in Bubble Tea Init)
|
|
7
|
+
- **False failure**: running tasks no longer marked as `failed` when their tmux session hasn't spawned yet or agent runs headlessly
|
|
8
|
+
- **Unicode truncation**: status emoji and description text with multi-byte characters now truncate/pad correctly (rune-aware)
|
|
9
|
+
|
|
10
|
+
## v1.5.2 — Test Harness Stability
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Replaced fragile `echo ... | grep -q` checks in test scripts with here-string checks (`grep -q <<< ...`).
|
|
14
|
+
- Avoids intermittent broken-pipe behavior under `set -o pipefail` on GitHub Actions.
|
|
15
|
+
|
|
16
|
+
### Result
|
|
17
|
+
- Stabilizes observability/web/dashboard-related suites on clean macOS runners.
|
|
18
|
+
|
|
3
19
|
## v1.5.1 — CI Test Flake Fix
|
|
4
20
|
|
|
5
21
|
### Fixed
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
class Clawforge < Formula
|
|
2
2
|
desc "Multi-mode coding workflow CLI for orchestrating AI coding agents"
|
|
3
3
|
homepage "https://github.com/cyperx84/clawforge"
|
|
4
|
-
url "https://github.com/cyperx84/clawforge/archive/refs/tags/v1.5.
|
|
4
|
+
url "https://github.com/cyperx84/clawforge/archive/refs/tags/v1.5.2.tar.gz"
|
|
5
|
+
sha256 "a026cb0df5b7c3efae439a9ca912e728843deb56c70441591c9064f81a1041ae"
|
|
6
|
+
sha256 "27cca187828366d138dbde81f99f313e065c656be7073452ccc016eb5dba16db"
|
|
5
7
|
sha256 "ce9da13357fc54d20e59da5851ac04a4ebbff071ec5a7ce1b17b0cbe877b3416"
|
|
6
8
|
sha256 "050e1745af5f64fe017ecc8d533a7f653935b572f45f4c9766f5746a4b58b54e"
|
|
7
9
|
sha256 "4ff8f36c599e81f03291210a6044bd0cce78a953f53eb360f47ce375706104d9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clawforge-cli
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.3
|
|
4
4
|
Summary: Multi-mode coding workflow CLI for orchestrating AI coding agents
|
|
5
5
|
Project-URL: Homepage, https://github.com/cyperx84/clawforge
|
|
6
6
|
Project-URL: Repository, https://github.com/cyperx84/clawforge
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.5.3
|
|
@@ -34,7 +34,7 @@ assert_contains() {
|
|
|
34
34
|
local desc="$1" expected="$2"; shift 2
|
|
35
35
|
local output
|
|
36
36
|
output=$("$@" 2>&1 || true)
|
|
37
|
-
if
|
|
37
|
+
if grep -q "$expected" <<< "$output"; then
|
|
38
38
|
echo " ✅ $desc"
|
|
39
39
|
((PASS++)) || true
|
|
40
40
|
else
|
|
@@ -113,7 +113,7 @@ assert_ok "check-agents runs on empty registry" "$CHECK" --dry-run
|
|
|
113
113
|
echo "Test 6: check with task"
|
|
114
114
|
output=$("$CHECK" --dry-run 2>&1 || true)
|
|
115
115
|
# Should find our task
|
|
116
|
-
if
|
|
116
|
+
if grep -q "ci-test-1\|Agent Status" <<< "$output"; then
|
|
117
117
|
echo " ✅ check-agents finds registered task"
|
|
118
118
|
PASS=$((PASS+1))
|
|
119
119
|
else
|
|
@@ -33,7 +33,7 @@ TMPDIR=$(mktemp -d)
|
|
|
33
33
|
# Test 1: --help
|
|
34
34
|
echo "Test 1: --help flag"
|
|
35
35
|
help_output=$("$BIN_DIR/clean.sh" --help 2>&1 || true)
|
|
36
|
-
if
|
|
36
|
+
if grep -q "Usage:" <<< "$help_output"; then
|
|
37
37
|
assert_eq "help shows usage" "true" "true"
|
|
38
38
|
else
|
|
39
39
|
assert_eq "help shows usage" "true" "false"
|
|
@@ -10,7 +10,7 @@ PASS=0 FAIL=0
|
|
|
10
10
|
|
|
11
11
|
assert_contains() {
|
|
12
12
|
local desc="$1" needle="$2" haystack="$3"
|
|
13
|
-
if
|
|
13
|
+
if grep -qF -- "$needle" <<< "$haystack"; then
|
|
14
14
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
15
15
|
else
|
|
16
16
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -134,10 +134,10 @@ assert_contains "help shows Developer Experience" "Developer Experience" "$cli_h
|
|
|
134
134
|
# Test 11: version
|
|
135
135
|
echo "Test 11: version"
|
|
136
136
|
version=$(cat "${SCRIPT_DIR}/../VERSION")
|
|
137
|
-
if [[ "$version" == "1.5.
|
|
138
|
-
echo " ✅ version is 1.5.
|
|
137
|
+
if [[ "$version" == "1.5.3" ]]; then
|
|
138
|
+
echo " ✅ version is 1.5.3"; PASS=$((PASS+1))
|
|
139
139
|
else
|
|
140
|
-
echo " ❌ version is $version, expected 1.5.
|
|
140
|
+
echo " ❌ version is $version, expected 1.5.3"; FAIL=$((FAIL+1))
|
|
141
141
|
fi
|
|
142
142
|
|
|
143
143
|
echo ""
|
|
@@ -17,7 +17,7 @@ assert_eq() {
|
|
|
17
17
|
|
|
18
18
|
assert_contains() {
|
|
19
19
|
local desc="$1" needle="$2" haystack="$3"
|
|
20
|
-
if
|
|
20
|
+
if grep -qF -- "$needle" <<< "$haystack"; then
|
|
21
21
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
22
22
|
else
|
|
23
23
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -27,7 +27,7 @@ assert_eq() {
|
|
|
27
27
|
|
|
28
28
|
assert_contains() {
|
|
29
29
|
local desc="$1" needle="$2" haystack="$3"
|
|
30
|
-
if
|
|
30
|
+
if grep -qF "$needle" <<< "$haystack"; then
|
|
31
31
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
32
32
|
else
|
|
33
33
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -29,7 +29,7 @@ assert_eq() {
|
|
|
29
29
|
|
|
30
30
|
assert_contains() {
|
|
31
31
|
local desc="$1" needle="$2" haystack="$3"
|
|
32
|
-
if
|
|
32
|
+
if grep -qF "$needle" <<< "$haystack"; then
|
|
33
33
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
34
34
|
else
|
|
35
35
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -26,7 +26,7 @@ assert_eq() {
|
|
|
26
26
|
|
|
27
27
|
assert_contains() {
|
|
28
28
|
local desc="$1" needle="$2" haystack="$3"
|
|
29
|
-
if
|
|
29
|
+
if grep -qF "$needle" <<< "$haystack"; then
|
|
30
30
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
31
31
|
else
|
|
32
32
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -27,7 +27,7 @@ assert_eq() {
|
|
|
27
27
|
|
|
28
28
|
assert_contains() {
|
|
29
29
|
local desc="$1" needle="$2" haystack="$3"
|
|
30
|
-
if
|
|
30
|
+
if grep -qF "$needle" <<< "$haystack"; then
|
|
31
31
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
32
32
|
else
|
|
33
33
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -24,7 +24,7 @@ assert_eq() {
|
|
|
24
24
|
|
|
25
25
|
assert_contains() {
|
|
26
26
|
local desc="$1" needle="$2" haystack="$3"
|
|
27
|
-
if
|
|
27
|
+
if grep -qF "$needle" <<< "$haystack"; then
|
|
28
28
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
29
29
|
else
|
|
30
30
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -56,7 +56,7 @@ assert_contains() {
|
|
|
56
56
|
local desc="$1" expected="$2"; shift 2
|
|
57
57
|
local output
|
|
58
58
|
output=$("$@" 2>&1 || true)
|
|
59
|
-
if
|
|
59
|
+
if grep -q "$expected" <<< "$output"; then
|
|
60
60
|
echo " ✅ $desc"
|
|
61
61
|
PASS=$((PASS+1))
|
|
62
62
|
else
|
|
@@ -173,7 +173,7 @@ echo '{"tasks":[]}' > "$REGISTRY_FILE"
|
|
|
173
173
|
output=$("$BIN_DIR/swarm.sh" "$TMPDIR/repo-api" "Migrate tests" --dry-run 2>&1 || true)
|
|
174
174
|
assert_contains "normal swarm dry-run works" "Decomposition" echo "$output"
|
|
175
175
|
# Should NOT have Multi-Repo in output
|
|
176
|
-
if
|
|
176
|
+
if grep -q "Multi-Repo" <<< "$output"; then
|
|
177
177
|
echo " ❌ normal swarm should not show Multi-Repo"
|
|
178
178
|
FAIL=$((FAIL+1))
|
|
179
179
|
else
|
|
@@ -24,7 +24,7 @@ assert_eq() {
|
|
|
24
24
|
|
|
25
25
|
assert_contains() {
|
|
26
26
|
local desc="$1" needle="$2" haystack="$3"
|
|
27
|
-
if
|
|
27
|
+
if grep -qF "$needle" <<< "$haystack"; then
|
|
28
28
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
29
29
|
else
|
|
30
30
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -11,7 +11,7 @@ PASS=0 FAIL=0
|
|
|
11
11
|
|
|
12
12
|
assert_contains() {
|
|
13
13
|
local desc="$1" needle="$2" haystack="$3"
|
|
14
|
-
if
|
|
14
|
+
if grep -qF -- "$needle" <<< "$haystack"; then
|
|
15
15
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
16
16
|
else
|
|
17
17
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -77,7 +77,7 @@ assert_contains "dashboard help shows p key" "preview" "$tui_help"
|
|
|
77
77
|
# Test 7: version
|
|
78
78
|
echo "Test 7: version"
|
|
79
79
|
version=$(cat "${SCRIPT_DIR}/../VERSION")
|
|
80
|
-
assert_eq "version is 1.5.
|
|
80
|
+
assert_eq "version is 1.5.3" "1.5.3" "$version"
|
|
81
81
|
|
|
82
82
|
echo ""
|
|
83
83
|
echo "Results: $PASS passed, $FAIL failed"
|
|
@@ -10,7 +10,7 @@ PASS=0 FAIL=0
|
|
|
10
10
|
|
|
11
11
|
assert_contains() {
|
|
12
12
|
local desc="$1" needle="$2" haystack="$3"
|
|
13
|
-
if
|
|
13
|
+
if grep -qF -- "$needle" <<< "$haystack"; then
|
|
14
14
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
15
15
|
else
|
|
16
16
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -121,7 +121,7 @@ assert_contains "help shows Power Features" "Power Features" "$cli_help"
|
|
|
121
121
|
# Test 13: version
|
|
122
122
|
echo "Test 13: version"
|
|
123
123
|
version=$(cat "${SCRIPT_DIR}/../VERSION")
|
|
124
|
-
assert_eq "version is 1.5.
|
|
124
|
+
assert_eq "version is 1.5.3" "1.5.3" "$version"
|
|
125
125
|
|
|
126
126
|
echo ""
|
|
127
127
|
echo "Results: $PASS passed, $FAIL failed"
|
|
@@ -10,7 +10,7 @@ PASS=0 FAIL=0
|
|
|
10
10
|
|
|
11
11
|
assert_contains() {
|
|
12
12
|
local desc="$1" needle="$2" haystack="$3"
|
|
13
|
-
if
|
|
13
|
+
if grep -qF -- "$needle" <<< "$haystack"; then
|
|
14
14
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
15
15
|
else
|
|
16
16
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -96,7 +96,7 @@ assert_contains "watch checks terminal states" "done|failed|timeout|cancelled" "
|
|
|
96
96
|
# Test 9: version
|
|
97
97
|
echo "Test 9: version"
|
|
98
98
|
version=$(cat "${SCRIPT_DIR}/../VERSION")
|
|
99
|
-
assert_eq "version is 1.5.
|
|
99
|
+
assert_eq "version is 1.5.3" "1.5.3" "$version"
|
|
100
100
|
|
|
101
101
|
echo ""
|
|
102
102
|
echo "Results: $PASS passed, $FAIL failed"
|
|
@@ -10,7 +10,7 @@ PASS=0 FAIL=0
|
|
|
10
10
|
|
|
11
11
|
assert_contains() {
|
|
12
12
|
local desc="$1" needle="$2" haystack="$3"
|
|
13
|
-
if
|
|
13
|
+
if grep -qF -- "$needle" <<< "$haystack"; then
|
|
14
14
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
15
15
|
else
|
|
16
16
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -96,7 +96,7 @@ assert_contains "help shows Reliability" "Reliability" "$cli_help"
|
|
|
96
96
|
# Test 11: version bump
|
|
97
97
|
echo "Test 11: version"
|
|
98
98
|
version=$(cat "${SCRIPT_DIR}/../VERSION")
|
|
99
|
-
assert_eq "version is 1.5.
|
|
99
|
+
assert_eq "version is 1.5.3" "1.5.3" "$version"
|
|
100
100
|
|
|
101
101
|
# Test 12: doctor --fix runs without errors
|
|
102
102
|
echo "Test 12: doctor --fix"
|
|
@@ -24,7 +24,7 @@ echo "=== test-review.sh ==="
|
|
|
24
24
|
# Test 1: --help flag
|
|
25
25
|
echo "Test 1: --help flag"
|
|
26
26
|
help_output=$("$BIN_DIR/review-pr.sh" --help 2>&1 || true)
|
|
27
|
-
if
|
|
27
|
+
if grep -q "Usage:" <<< "$help_output"; then
|
|
28
28
|
assert_eq "help shows usage" "true" "true"
|
|
29
29
|
else
|
|
30
30
|
assert_eq "help shows usage" "true" "false"
|
|
@@ -25,7 +25,7 @@ assert_eq() {
|
|
|
25
25
|
|
|
26
26
|
assert_contains() {
|
|
27
27
|
local desc="$1" needle="$2" haystack="$3"
|
|
28
|
-
if
|
|
28
|
+
if grep -qF "$needle" <<< "$haystack"; then
|
|
29
29
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
30
30
|
else
|
|
31
31
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -58,7 +58,7 @@ echo '{"tasks":[]}' > "$REGISTRY_FILE"
|
|
|
58
58
|
# Test 1: --help flag
|
|
59
59
|
echo "Test 1: --help flag"
|
|
60
60
|
help_output=$("$BIN_DIR/spawn-agent.sh" --help 2>&1 || true)
|
|
61
|
-
if
|
|
61
|
+
if grep -q "Usage:" <<< "$help_output"; then
|
|
62
62
|
assert_eq "help shows usage" "true" "true"
|
|
63
63
|
else
|
|
64
64
|
assert_eq "help shows usage" "true" "false"
|
|
@@ -74,7 +74,7 @@ assert_eq "dead session detected as failed" "failed" "$detected_status"
|
|
|
74
74
|
# Test 4: --help flag
|
|
75
75
|
echo "Test 4: --help flag"
|
|
76
76
|
help_output=$("$BIN_DIR/check-agents.sh" --help 2>&1 || true)
|
|
77
|
-
if
|
|
77
|
+
if grep -q "Usage:" <<< "$help_output"; then
|
|
78
78
|
assert_eq "help shows usage" "true" "true"
|
|
79
79
|
else
|
|
80
80
|
assert_eq "help shows usage" "true" "false"
|
|
@@ -10,7 +10,7 @@ PASS=0 FAIL=0
|
|
|
10
10
|
|
|
11
11
|
assert_contains() {
|
|
12
12
|
local desc="$1" needle="$2" haystack="$3"
|
|
13
|
-
if
|
|
13
|
+
if grep -qF -- "$needle" <<< "$haystack"; then
|
|
14
14
|
echo " ✅ $desc"; PASS=$((PASS+1))
|
|
15
15
|
else
|
|
16
16
|
echo " ❌ $desc (missing: $needle)"; FAIL=$((FAIL+1))
|
|
@@ -107,7 +107,7 @@ assert_contains "help shows Web Dashboard" "Web Dashboard" "$cli_help"
|
|
|
107
107
|
# Test 7: version
|
|
108
108
|
echo "Test 7: version"
|
|
109
109
|
version=$(cat "${SCRIPT_DIR}/../VERSION")
|
|
110
|
-
assert_eq "version is 1.5.
|
|
110
|
+
assert_eq "version is 1.5.3" "1.5.3" "$version"
|
|
111
111
|
|
|
112
112
|
echo ""
|
|
113
113
|
echo "Results: $PASS passed, $FAIL failed"
|
|
@@ -128,13 +128,12 @@ func LoadAgents() []Agent {
|
|
|
128
128
|
Conflicts: conflicts[t.ID],
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
// Enrich
|
|
131
|
+
// Enrich preview from tmux if task is "running".
|
|
132
132
|
if a.Status == "running" && a.TmuxSession != "" {
|
|
133
|
-
if _, ok := tmuxSessions[a.TmuxSession];
|
|
134
|
-
a.Status = "failed"
|
|
135
|
-
} else {
|
|
133
|
+
if _, ok := tmuxSessions[a.TmuxSession]; ok {
|
|
136
134
|
a.Preview = captureTmuxPreview(a.TmuxSession, previewLines)
|
|
137
135
|
}
|
|
136
|
+
// Don't override status — tmux may not be up yet or agent runs headlessly.
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
if a.Cost == "" {
|
|
@@ -2,6 +2,7 @@ package main
|
|
|
2
2
|
|
|
3
3
|
import (
|
|
4
4
|
"fmt"
|
|
5
|
+
"unicode/utf8"
|
|
5
6
|
"strings"
|
|
6
7
|
|
|
7
8
|
"charm.land/lipgloss/v2"
|
|
@@ -199,21 +200,23 @@ func renderStatusBar(m Model) string {
|
|
|
199
200
|
return statusBarStyle.Render(bar)
|
|
200
201
|
}
|
|
201
202
|
|
|
202
|
-
// truncate shortens a string to maxLen, adding "…" if needed.
|
|
203
|
+
// truncate shortens a string to maxLen runes, adding "…" if needed.
|
|
203
204
|
func truncate(s string, maxLen int) string {
|
|
204
|
-
if
|
|
205
|
+
if utf8.RuneCountInString(s) <= maxLen {
|
|
205
206
|
return s
|
|
206
207
|
}
|
|
207
208
|
if maxLen <= 1 {
|
|
208
209
|
return "…"
|
|
209
210
|
}
|
|
210
|
-
|
|
211
|
+
runes := []rune(s)
|
|
212
|
+
return string(runes[:maxLen-1]) + "…"
|
|
211
213
|
}
|
|
212
214
|
|
|
213
|
-
// padRight pads a string with spaces to the given width.
|
|
215
|
+
// padRight pads a string with spaces to the given width (rune-aware).
|
|
214
216
|
func padRight(s string, width int) string {
|
|
215
|
-
|
|
217
|
+
n := utf8.RuneCountInString(s)
|
|
218
|
+
if n >= width {
|
|
216
219
|
return s
|
|
217
220
|
}
|
|
218
|
-
return s + strings.Repeat(" ", width-
|
|
221
|
+
return s + strings.Repeat(" ", width-n)
|
|
219
222
|
}
|
|
@@ -9,6 +9,11 @@ import (
|
|
|
9
9
|
// RefreshTickMsg triggers periodic data reload.
|
|
10
10
|
type RefreshTickMsg time.Time
|
|
11
11
|
|
|
12
|
+
// InitialLoadMsg carries the first agent load so Init can return it as a Cmd.
|
|
13
|
+
type InitialLoadMsg struct {
|
|
14
|
+
Agents []Agent
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
const refreshInterval = 2 * time.Second
|
|
13
18
|
|
|
14
19
|
// Model is the top-level Bubble Tea model for the ClawForge TUI dashboard.
|
|
@@ -68,9 +73,11 @@ func (m Model) Init() tea.Cmd {
|
|
|
68
73
|
if m.animating {
|
|
69
74
|
return animationTick()
|
|
70
75
|
}
|
|
71
|
-
// No animation: load agents
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
// No animation: load agents via command (Init has value receiver, can't mutate).
|
|
77
|
+
return tea.Batch(
|
|
78
|
+
func() tea.Msg { return InitialLoadMsg{Agents: LoadAgents()} },
|
|
79
|
+
refreshTick(),
|
|
80
|
+
)
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
// refreshTick returns a command that sends a RefreshTickMsg after refreshInterval.
|
|
@@ -100,6 +107,10 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|
|
100
107
|
}
|
|
101
108
|
return m, nil
|
|
102
109
|
|
|
110
|
+
case InitialLoadMsg:
|
|
111
|
+
m.agents = msg.Agents
|
|
112
|
+
return m, nil
|
|
113
|
+
|
|
103
114
|
case AnimationDoneMsg:
|
|
104
115
|
// Animation was skipped via keypress — load agents and start refresh.
|
|
105
116
|
m.agents = LoadAgents()
|
clawforge_cli-1.5.1/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.5.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|