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.
- package/CHANGELOG.md +170 -1
- package/README.md +7 -5
- package/package.json +1 -1
- package/packages/ampcode/commands/branch-review.md +180 -14
- package/packages/ampcode/commands/docs-builder/docs-builder.cjs +25 -8
- package/packages/ampcode/commands/refactor.md +71 -3
- package/packages/ampcode/commands/release.md +49 -9
- package/packages/ampcode/commands/remember/AGENT_RULES.md +12 -3
- package/packages/ampcode/commands/remember.md +40 -7
- package/packages/ampcode/commands/ship.md +16 -0
- package/packages/claude/commands/branch-review.md +180 -14
- package/packages/claude/commands/docs-builder/docs-builder.cjs +25 -8
- package/packages/claude/commands/refactor.md +71 -3
- package/packages/claude/commands/release.md +49 -9
- package/packages/claude/commands/remember/AGENT_RULES.md +12 -3
- package/packages/claude/commands/remember.md +40 -7
- package/packages/claude/commands/ship.md +16 -0
- package/packages/droid/commands/branch-review.md +180 -14
- package/packages/droid/commands/docs-builder/docs-builder.cjs +25 -8
- package/packages/droid/commands/refactor.md +71 -3
- package/packages/droid/commands/release.md +49 -9
- package/packages/droid/commands/remember/AGENT_RULES.md +12 -3
- package/packages/droid/commands/remember.md +40 -7
- package/packages/droid/commands/ship.md +16 -0
- package/packages/opencode/command/branch-review.md +180 -14
- package/packages/opencode/command/docs-builder/docs-builder.cjs +25 -8
- package/packages/opencode/command/refactor.md +71 -3
- package/packages/opencode/command/release.md +49 -9
- package/packages/opencode/command/remember/AGENT_RULES.md +12 -3
- package/packages/opencode/command/remember.md +40 -7
- 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`).
|