opencode-beads 0.2.2 → 0.3.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/package.json +1 -1
- package/vendor/commands/audit.md +28 -0
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Log and label agent interactions (append-only JSONL)
|
|
3
|
+
argument-hint: record|label
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Append-only audit logging for agent interactions (prompts, responses, tool calls) in `.beads/interactions.jsonl`.
|
|
7
|
+
|
|
8
|
+
Each line is one event. Labeling is done by appending a new `"label"` event referencing a previous entry.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
- **Record an interaction**:
|
|
13
|
+
- `bd audit record --kind llm_call --model "claude-3-5-haiku" --prompt "..." --response "..."`
|
|
14
|
+
- `bd audit record --kind tool_call --tool-name "go test" --exit-code 1 --error "..." --issue-id bd-42`
|
|
15
|
+
|
|
16
|
+
- **Pipe JSON via stdin**:
|
|
17
|
+
- `cat event.json | bd audit record`
|
|
18
|
+
|
|
19
|
+
- **Label an entry**:
|
|
20
|
+
- `bd audit label int-a1b2 --label good --reason "Worked perfectly"`
|
|
21
|
+
- `bd audit label int-a1b2 --label bad --reason "Hallucinated a file path"`
|
|
22
|
+
|
|
23
|
+
## Notes
|
|
24
|
+
|
|
25
|
+
- Audit entries are **append-only** (no in-place edits).
|
|
26
|
+
- `bd sync` includes `.beads/interactions.jsonl` in the commit allowlist (like `issues.jsonl`).
|
|
27
|
+
|
|
28
|
+
|