liteagents 2.22.0 → 2.23.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +170 -1
  2. package/README.md +7 -5
  3. package/package.json +1 -1
  4. package/packages/ampcode/commands/branch-review.md +180 -14
  5. package/packages/ampcode/commands/docs-builder/docs-builder.cjs +25 -8
  6. package/packages/ampcode/commands/refactor.md +71 -3
  7. package/packages/ampcode/commands/release.md +49 -9
  8. package/packages/ampcode/commands/remember/AGENT_RULES.md +12 -3
  9. package/packages/ampcode/commands/remember.md +40 -7
  10. package/packages/ampcode/commands/ship.md +16 -0
  11. package/packages/claude/commands/branch-review.md +180 -14
  12. package/packages/claude/commands/docs-builder/docs-builder.cjs +25 -8
  13. package/packages/claude/commands/refactor.md +71 -3
  14. package/packages/claude/commands/release.md +49 -9
  15. package/packages/claude/commands/remember/AGENT_RULES.md +12 -3
  16. package/packages/claude/commands/remember.md +40 -7
  17. package/packages/claude/commands/ship.md +16 -0
  18. package/packages/droid/commands/branch-review.md +180 -14
  19. package/packages/droid/commands/docs-builder/docs-builder.cjs +25 -8
  20. package/packages/droid/commands/refactor.md +71 -3
  21. package/packages/droid/commands/release.md +49 -9
  22. package/packages/droid/commands/remember/AGENT_RULES.md +12 -3
  23. package/packages/droid/commands/remember.md +40 -7
  24. package/packages/droid/commands/ship.md +16 -0
  25. package/packages/opencode/command/branch-review.md +180 -14
  26. package/packages/opencode/command/docs-builder/docs-builder.cjs +25 -8
  27. package/packages/opencode/command/refactor.md +71 -3
  28. package/packages/opencode/command/release.md +49 -9
  29. package/packages/opencode/command/remember/AGENT_RULES.md +12 -3
  30. package/packages/opencode/command/remember.md +40 -7
  31. package/packages/opencode/command/ship.md +16 -0
@@ -20,6 +20,22 @@ its exit code**. A check you did not run is a **fail**, never a pass. **N/A
20
20
  requires a stated reason** ("no build script in `package.json`") — N/A must
21
21
  never stand in for "didn't get to it."
22
22
 
23
+ **Capture the exit code of the command itself, never of a pipeline.** Run the
24
+ bare command, then read `$?` on the next line:
25
+
26
+ ```
27
+ node "$f" > /tmp/out 2>&1; e=$?
28
+ ```
29
+
30
+ `$?` after a pipe is the *last element's* status, so the common shape
31
+ `out=$(cmd 2>&1 | tail -1); echo "exit=$?"` reports `tail`'s success — `0` —
32
+ for a suite that exited `2`. Reproduced: a check printing "exit 2:
33
+ prerequisites missing" was recorded as a pass by exactly that loop. Nor does
34
+ `${PIPESTATUS[0]}` rescue it inside a command substitution; it is empty by
35
+ the time you read it. This is the rule the whole gate rests on, and the
36
+ piped form is the natural way to write a multi-suite loop, so it fails
37
+ silently and in the unsafe direction.
38
+
23
39
  ## Checklist
24
40
  - [ ] **Tests pass** — run the project's real test command (`npm test`,
25
41
  `pytest`, `go test ./...`, `cargo test`, `make test`).