Document and validate automatic usage reporting

This commit is contained in:
2026-11-22 21:06:39 +00:00
parent a0608a53ee
commit a0cdd3d7c5
13 changed files with 188 additions and 30 deletions

View File

@@ -6,8 +6,8 @@ in-memory model client. **No model service or credentials are required.**
Use Go 1.27.0 on `PATH`. An aligned workspace containing all three local modules
exercises their current sources; follow the [workspace setup](../../../../docs/development.md#documentation-validation)
from the repository root. The example also builds independently against its
published dependencies with `GOWORK=off`.
from the repository root. The current unreleased example requires the aligned workspace until core and
the integrations are released with aligned dependencies.
The [consumer guide](../../../../docs/consumers/guide.md#module-selection) owns
version and compatibility details.
@@ -173,3 +173,14 @@ the complete application.
Run `GOWORK=auto GOTOOLCHAIN=local go test ./...` from this example directory
for an aligned workspace check. Use
`GOWORK=off GOTOOLCHAIN=local go test ./...` to check the declared releases.
## Observe a pipeline
```sh
go run . pipeline run --show-tokens
go run . pipeline run --show-tokens --format json
```
The application passes its invocation context to both prompt executions. The
injected client provides the example usage and cost; ckprompt reports their
aggregate on diagnostics without accounting code in the pipeline handler.