Commit 839404f
authored
fix: format crumb data on same line as message (#17)
## Summary
- Data was printed on a separate line from the message, making log
output noisy and harder to scan
- Now prints inline: `webapp:llm-pricing loaded models from db +353ms {
count: 145 }`
- Set `breakLength: Infinity` on `util.inspect` to prevent Node from
wrapping the data object
- Fixed in both `ConsoleSink` (stderr output) and `formatCrumbPretty`
(CLI tail/query output)
## Test plan
- [ ] `pnpm build` passes
- [ ] Run a service with `AGENTCRUMBS=1` and verify crumbs print on a
single line
- [ ] `agentcrumbs tail` and `agentcrumbs query` also show single-line
outputFile tree
3 files changed
+9
-4
lines changed- .changeset
- packages/agentcrumbs/src
- cli
- sinks
3 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments