housebroken-cli 0.6.5__tar.gz → 0.6.7__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.
Files changed (27) hide show
  1. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/PKG-INFO +1 -1
  2. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/pyproject.toml +1 -1
  3. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/branch-check.sh +4 -2
  4. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/pr-sweep.sh +9 -0
  5. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/skills/housebroken/SKILL.md +5 -2
  6. housebroken_cli-0.6.7/src/housebroken/__init__.py +1 -0
  7. housebroken_cli-0.6.5/src/housebroken/__init__.py +0 -1
  8. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/.gitignore +0 -0
  9. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/LICENSE +0 -0
  10. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/README.md +0 -0
  11. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/bin/housebroken +0 -0
  12. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/hatch_build.py +0 -0
  13. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/check-ai-policy.sh +0 -0
  14. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/claim-check.sh +0 -0
  15. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/comment-census.sh +0 -0
  16. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/comment-check.sh +0 -0
  17. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/diff-defaults.sh +0 -0
  18. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/distinct-outside.sh +0 -0
  19. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/file-issue.sh +0 -0
  20. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/file-pr.sh +0 -0
  21. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/fork-hygiene.sh +0 -0
  22. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/inbox.sh +0 -0
  23. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/notes.sh +0 -0
  24. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/prior-art.sh +0 -0
  25. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/review.sh +0 -0
  26. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/scripts/verify-filed-pr.sh +0 -0
  27. {housebroken_cli-0.6.5 → housebroken_cli-0.6.7}/src/housebroken/cli.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: housebroken-cli
3
- Version: 0.6.5
3
+ Version: 0.6.7
4
4
  Summary: Agent-written pull requests that do not make a mess in someone else's house.
5
5
  Project-URL: Repository, https://github.com/lenamonj/housebroken
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "housebroken-cli"
7
- version = "0.6.5"
7
+ version = "0.6.7"
8
8
  description = "Agent-written pull requests that do not make a mess in someone else's house."
9
9
  dynamic = ["readme"]
10
10
  license = "MIT"
@@ -91,8 +91,10 @@ while IFS= read -r f; do
91
91
  [ -n "$entry" ] || continue
92
92
  mode=$(printf '%s\n' "$entry" | awk '{print $1}')
93
93
 
94
- # A mode is only wrong relative to the file's own neighbours.
95
- if [ "$mode" = "100755" ]; then
94
+ # A mode is only wrong relative to the file's own neighbours, and only the
95
+ # branch's to answer for when the base does not already carry it.
96
+ base_mode=$(git ls-tree "$base" -- "$f" 2>/dev/null | awk '{print $1}')
97
+ if [ "$mode" = "100755" ] && [ "$base_mode" != "100755" ]; then
96
98
  case "$f" in
97
99
  *.*) ext=".${f##*.}" ;;
98
100
  *) ext="" ;;
@@ -82,6 +82,15 @@ if [ -f "$STATE" ]; then
82
82
  echo "--- merged or closed since $last"
83
83
  tidy="$(jq -r '.tidy[]?' "$STATE" | tr -d '\r')"
84
84
  gone="$(comm -23 <(jq -r '.open[]?' "$STATE" | tr -d '\r' | sort) <(printf '%s\n' "$open_ids"))"
85
+ # A PR filed and merged between two runs was never in the stored open set.
86
+ if printf '%s' "$last" | grep -qE '^[0-9]{4}-[0-9]{2}-[0-9]{2}T'; then
87
+ if ! closed="$(gh search prs --author "$ME" --state closed --closed ">=$last" --limit 100 --json repository,number \
88
+ --jq '.[] | "\(.repository.nameWithOwner)#\(.number)"')"; then
89
+ echo "pr-sweep.sh: gh search prs failed for PRs of $ME closed since $last" >&2
90
+ exit 1
91
+ fi
92
+ gone="$(printf '%s\n%s\n' "$gone" "$closed" | tr -d '\r' | awk 'NF && !seen[$0]++')"
93
+ fi
85
94
  while read -r id; do
86
95
  [ -n "$id" ] || continue
87
96
  gone_repo="${id%#*}"; gone_num="${id##*#}"
@@ -99,8 +99,11 @@ report it in one line and do not proceed to the next step.
99
99
  commit, so a correction made after that commit is not in the new one. When the
100
100
  patched function serves several public entry points or has several
101
101
  branches, the test is a grid: every entry point through every branch,
102
- plus the zero, identity and signed-boundary rows. A reviewer lists the
103
- empty cells otherwise.
102
+ plus the zero, identity and signed-boundary rows. A patch that
103
+ reconciles two coupled setters keeps a value that already satisfies the
104
+ invariant instead of resetting it, and its grid has a row for every
105
+ order the two are called in, the same value twice and null included. A
106
+ reviewer lists the empty cells otherwise.
104
107
 
105
108
  5. **Run their CI, not yours.**
106
109
  Run the project's own test target on the fresh clone, and every gate its
@@ -0,0 +1 @@
1
+ __version__ = "0.6.7"
@@ -1 +0,0 @@
1
- __version__ = "0.6.4"
File without changes