59 lines
3.6 KiB
Markdown
59 lines
3.6 KiB
Markdown
# CommandKit ckprompt v0.12.0
|
|
|
|
CommandKit ckprompt v0.12.0 adopts PromptKit v0.25.0 and adds automatic,
|
|
invocation-scoped token and cost reporting through normal integration installation.
|
|
|
|
## Automatic usage reporting
|
|
|
|
Both `Command` and `Declarations` install `--show-tokens` for application-owned
|
|
commands and the PromptKit family. Applications pass `Invocation.Context` through
|
|
their PromptKit work and wait for work they own before returning; no request
|
|
observers, accounting groups, or final reporting callbacks are needed in handlers.
|
|
Empty suites continue to install no commands, namespace, or usage capability.
|
|
|
|
The flag defaults to false, has no shorthand, accepts explicit false, and uses
|
|
the last occurrence when repeated. When enabled, the summary appears on
|
|
diagnostics after deferred messages and before any terminal failure explanation.
|
|
It is independent of the main result's `--format`; quiet suppresses it.
|
|
Help, including ckconfig's bare `config explain` fallback, does not start reporting.
|
|
Returned execution failures and cancellation retain observed usage.
|
|
|
|
The summary shows observed prompt executions, nonzero repair-call details, token
|
|
categories including reasoning and cache activity, available cache-hit ratio,
|
|
and USD cost with its native source. Unknown, incomplete, known-zero, and
|
|
terminal-coverage states remain distinct. Empty groups use standard zero totals.
|
|
PromptKit owns accounting; CommandKit adds no pricing estimates or cost defaults.
|
|
|
|
## Existing reports and upstream adoption
|
|
|
|
Smoke attempt and aggregate usage now retain `reasoning_tokens` and nullable
|
|
`cache_hit_ratio`. JSON/YAML ratios are numeric fractions; text adds percentages
|
|
with one decimal place. Smoke reports default to the text template, which retains
|
|
YAML evidence and adds percentage comments. Use `--format yaml` or `--format json`
|
|
for structured output. Smoke usage remains in its own report and is separate from
|
|
ordinary execution observation; its report has no added cost field.
|
|
|
|
Backend inspection forwards native provider and explicit zero-cost declarations,
|
|
including false. Review application-defined OpenRouter backends: select
|
|
`provider: openrouter` explicitly for its usage, cost, and authentication
|
|
conventions. Names and endpoint hostnames do not choose provider behavior.
|
|
PromptKit also supplies vLLM conventions and authentication findings, reasoning
|
|
usage, and optional `zero_cost` fallback. See the [upstream release notes](https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.25.0/docs/releases/v0.25.0.md)
|
|
and [backend format](https://forge.maximumdirect.net/base-layer/promptkit/src/tag/v0.25.0/docs/formats.md#backend-definitions).
|
|
|
|
## Compatibility and upgrade
|
|
|
|
This release selects core v0.8.0 and ckconfig v0.11.0. ConfigKit remains
|
|
v1.4.0 and the Go consumer minimum remains 1.27.0. Existing integration factory
|
|
signatures remain unchanged. Resolve application flag or alias collisions with
|
|
`--show-tokens` before installing a nonempty family. Review positional upstream
|
|
struct literals and strict report decoders for added reasoning/cost fields, and
|
|
scripts relying on the prior default smoke representation.
|
|
|
|
The maintained [composed consumer](../../examples/composed) demonstrates automatic
|
|
reporting for a two-prompt application pipeline.
|
|
|
|
[COPYRIGHT](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/integrations/ckprompt/v0.12.0/integrations/ckprompt/COPYRIGHT) |
|
|
[LICENSE](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/integrations/ckprompt/v0.12.0/integrations/ckprompt/LICENSE) |
|
|
[ATTRIBUTION](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/integrations/ckprompt/v0.12.0/integrations/ckprompt/docs/oss/attribution.md)
|