Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "humanize",
"source": "./",
"description": "Humanize - An iterative development plugin that uses Codex to review Claude's work. Creates a feedback loop where Claude implements plans and Codex independently reviews progress, ensuring quality through continuous refinement.",
"version": "1.14.0"
"version": "1.14.1"
}
]
}
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "humanize",
"description": "Humanize - An iterative development plugin that uses Codex to review Claude's work. Creates a feedback loop where Claude implements plans and Codex independently reviews progress, ensuring quality through continuous refinement.",
"version": "1.14.0",
"version": "1.14.1",
"author": {
"name": "humania-org"
},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Humanize

**Current Version: 1.14.0**
**Current Version: 1.14.1**

> Derived from the [GAAC (GitHub-as-a-Context)](https://github.com/SihaoLiu/gaac) project.

Expand Down
2 changes: 1 addition & 1 deletion hooks/lib/loop-common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Common functions for RLCR loop hooks
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/lib/template-loader.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Template loading functions for RLCR loop hooks
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/loop-bash-validator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# PreToolUse Hook: Validate Bash commands for RLCR loop and PR loop
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/loop-codex-stop-hook.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Stop Hook for RLCR loop
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/loop-edit-validator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# PreToolUse Hook: Validate Edit paths for RLCR loop and PR loop
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/loop-plan-file-validator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# UserPromptSubmit hook for plan file validation during RLCR loop
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/loop-post-bash-hook.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# PostToolUse Bash Hook for RLCR loop
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/loop-read-validator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# PreToolUse Hook: Validate Read access for RLCR loop and PR loop files
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/loop-write-validator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# PreToolUse Hook: Validate Write paths for RLCR loop and PR loop
#
Expand Down
2 changes: 1 addition & 1 deletion hooks/pr-loop-stop-hook.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Stop Hook for PR loop
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/ask-codex.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Ask Codex - One-shot consultation with Codex
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/cancel-pr-loop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Cancel script for cancel-pr-loop
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/cancel-rlcr-loop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Cancel script for cancel-rlcr-loop
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-bot-reactions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Check bot reactions on PR or comments
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-pr-reviewer-status.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Check PR reviewer status for startup case determination
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch-pr-comments.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Fetch PR comments from GitHub
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/humanize.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# humanize.sh - Humanize shell utilities
# Part of rc.d configuration
# Compatible with both bash and zsh
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-skill.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Install/upgrade Humanize skills for Kimi and/or Codex.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-skills-codex.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Convenience wrapper: install Humanize skills for Codex target.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-skills-kimi.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Convenience wrapper: install Humanize skills for Kimi target.
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/monitor-common.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# monitor-common.sh - Shared utilities for humanize monitor functions
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/monitor-skill.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# monitor-skill.sh - Skill monitor for humanize
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/poll-pr-reviews.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Poll for new PR reviews from specified bots
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/portable-timeout.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Portable timeout wrapper for macOS/Linux compatibility
# Usage: source portable-timeout.sh; run_with_timeout <seconds> <command> [args...]
Expand Down
2 changes: 1 addition & 1 deletion scripts/rlcr-stop-gate.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Run RLCR stop-hook logic from non-hook environments (e.g. skill workflows).
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-pr-loop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup script for start-pr-loop
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-rlcr-loop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Setup script for start-rlcr-loop
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate-gen-plan-io.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# validate-gen-plan-io.sh
# Validates input and output paths for the gen-plan command
# Exit codes:
Expand Down
2 changes: 1 addition & 1 deletion tests/manual-monitor-test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Manual Test Script for tests
#
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/gh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Mock gh CLI for testing PR loop functionality
#
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-base-branch-detection.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for base branch auto-detection
#
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-cancel-security-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for cancel operation security
#
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-concurrent-state-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for concurrent state access
#
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-git-operations-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for git operation scripts
#
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-goal-tracker-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for goal tracker parsing
#
Expand Down
8 changes: 4 additions & 4 deletions tests/robustness/test-hook-input-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for hook input parsing and monitor edge cases
#
Expand Down Expand Up @@ -453,7 +453,7 @@ cd "$MONITOR_TEST_DIR/project"

# Create monitor runner script
cat > "$MONITOR_TEST_DIR/run_monitor.sh" << 'MONITOR_EOF'
#!/bin/bash
#!/usr/bin/env bash
PROJECT_DIR="$1"
PROJECT_ROOT="$2"
FAKE_HOME="$3"
Expand Down Expand Up @@ -512,7 +512,7 @@ echo "Test log" > "$FAKE_HOME_MONITOR/.cache/humanize/$SANITIZED/2026-01-17_10-0

# Create narrow terminal runner - calls _humanize_monitor_codex directly in same shell
cat > "$MONITOR_TEST_DIR/run_narrow.sh" << 'NARROW_EOF'
#!/bin/bash
#!/usr/bin/env bash
PROJECT_DIR="$1"
PROJECT_ROOT="$2"
FAKE_HOME="$3"
Expand Down Expand Up @@ -603,7 +603,7 @@ mkdir -p "$FAKE_HOME_MONITOR/.cache/humanize/$SANITIZED3/2026-01-17_11-00-00"
printf '\033[31mRed text\033[0m\n\033[1;32mBold green\033[0m\n' > "$FAKE_HOME_MONITOR/.cache/humanize/$SANITIZED3/2026-01-17_11-00-00/round-1-codex-run.log"

cat > "$MONITOR_TEST_DIR/run_ansi.sh" << 'ANSI_EOF'
#!/bin/bash
#!/usr/bin/env bash
PROJECT_DIR="$1"
PROJECT_ROOT="$2"
FAKE_HOME="$3"
Expand Down
4 changes: 2 additions & 2 deletions tests/robustness/test-hook-system-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for all hook scripts
#
Expand Down Expand Up @@ -592,7 +592,7 @@ cd - > /dev/null
# Create mock codex to avoid real API calls (review_started: false triggers codex exec)
mkdir -p "$TEST_DIR/mock-bin"
cat > "$TEST_DIR/mock-bin/codex" << 'MOCKEOF'
#!/bin/bash
#!/usr/bin/env bash
# Mock codex that returns review output indicating work continues
echo "Review: Code looks good but more testing needed."
echo "No COMPLETE or STOP markers - work should continue."
Expand Down
4 changes: 2 additions & 2 deletions tests/robustness/test-path-validation-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for path validation
#
Expand All @@ -22,7 +22,7 @@ setup_test_dir
setup_mock_codex() {
mkdir -p "$TEST_DIR/bin"
cat > "$TEST_DIR/bin/codex" << 'MOCKEOF'
#!/bin/bash
#!/usr/bin/env bash
# Mock codex for test-path-validation-robustness.sh
echo "Mock codex output"
exit 0
Expand Down
4 changes: 2 additions & 2 deletions tests/robustness/test-plan-file-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for plan file validation
#
Expand Down Expand Up @@ -27,7 +27,7 @@ mkdir -p "$XDG_CACHE_HOME"
setup_mock_codex() {
mkdir -p "$TEST_DIR/bin"
cat > "$TEST_DIR/bin/codex" << 'MOCKEOF'
#!/bin/bash
#!/usr/bin/env bash
# Mock codex for test-plan-file-robustness.sh
echo "Mock codex output"
exit 0
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-pr-loop-api-fetch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# PR Loop API fetch/state tests (parallel split 1/2)
#
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-pr-loop-api-poll.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# PR Loop API poll/stop-hook tests (parallel split 2/2)
#
Expand Down
8 changes: 4 additions & 4 deletions tests/robustness/test-pr-loop-api-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for PR loop API handling
#
Expand Down Expand Up @@ -41,7 +41,7 @@ create_mock_gh() {
# fetch-pr-comments.sh uses: gh repo view --json owner,name -q '...'
# gh pr view PR --repo REPO --json number -q .number
cat > "$dir/bin/gh" << 'GHEOF_START'
#!/bin/bash
#!/usr/bin/env bash
# Mock gh command for testing

# Check for -q flag anywhere in args (jq query)
Expand Down Expand Up @@ -694,7 +694,7 @@ run_poll_tests() {
# Create a mock gh that sleeps briefly but responds
mkdir -p "$TEST_DIR/poll2/bin"
cat > "$TEST_DIR/poll2/bin/gh" << 'GHEOF'
#!/bin/bash
#!/usr/bin/env bash
# Handle repo view
if [[ "$1" == "repo" && "$2" == "view" ]]; then
if [[ "$*" == *"--json"* ]]; then
Expand Down Expand Up @@ -761,7 +761,7 @@ GHEOF
# Create a mock gh that fails on API calls
mkdir -p "$TEST_DIR/poll3/bin"
cat > "$TEST_DIR/poll3/bin/gh" << 'GHEOF'
#!/bin/bash
#!/usr/bin/env bash
# Check for -q flag anywhere in args (jq query)
HAS_Q_FLAG=false
for arg in "$@"; do
Expand Down
2 changes: 1 addition & 1 deletion tests/robustness/test-session-robustness.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Robustness tests for concurrent session handling
#
Expand Down
Loading
Loading