diff --git a/docs/releases/v0.8.0.md b/docs/releases/v0.8.0.md new file mode 100644 index 0000000..7775c7b --- /dev/null +++ b/docs/releases/v0.8.0.md @@ -0,0 +1,46 @@ +# CommandKit v0.8.0 + +CommandKit v0.8.0 adds captured invocation features for application-wide flags, +context decoration, and final diagnostic reports. Optional integrations can +install this behavior through normal command assembly without applications +wrapping `App.Execute` or adding bookkeeping to each handler. + +## Invocation features + +`NewInvocationFeature` captures an `InvocationFeatureSpec`, and +`WithInvocationFeature` attaches its reusable handle to a command declaration. +Installation validates the capability against the complete registry atomically, +including local flags and aliases in either registration order. Reusing one +handle installs it once per application. + +Features start after input construction and successful `CommandSpec.CheckInput`, +before `Run`. Their report producers run after deferred messages and before +terminal failure explanations, including after returned failures or cancellation. +Reports use text on diagnostics independently of the main result's `--format`. +Quiet suppresses delivery while retaining rendering-error handling. + +`CommandSpec.CheckInput` may return `ErrHelpRequested` for a help-only preflight +result. Core displays help without starting features or requiring their +execution-only flags. Generated help, version, completion, and input failures +also skip feature startup. Applications continue to own their execution context, +work lifetimes, outcomes, and process exit. + +Flag occurrence preparation now partitions input owners once; installation +shares invocation-flag lookup across command contexts. These changes avoid +repeated indexing and duplicated global spelling maps as capabilities grow. + +## Compatibility and upgrade + +The Go consumer minimum remains 1.27.0; maintainer validation uses Go 1.27.4. +Existing command factory signatures and reporting controls remain available. +New invocation flags participate in ordinary long/short spelling and alias +collision checks; resolve conflicts when installing a capability. + +Coordinated ckconfig v0.11.0 and ckprompt v0.12.0 releases follow core under the +[dependency-alignment policy](../policy/release.md#commandkit-downstream-dependency-alignment). +See the [consumer guide](../consumers/guide.md) and [CLI reference](../cli.md) +for current assembly and operator contracts. + +[COPYRIGHT](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.8.0/COPYRIGHT) | +[LICENSE](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.8.0/LICENSE) | +[ATTRIBUTION](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/v0.8.0/docs/oss/attribution.md) diff --git a/docs/roadmap/future.md b/docs/roadmap/future.md index 8251bbf..1d7bb75 100644 --- a/docs/roadmap/future.md +++ b/docs/roadmap/future.md @@ -5,6 +5,13 @@ No delivery dates are selected here. ## Pending release coordination +Draft notes are prepared for [core v0.8.0](../releases/v0.8.0.md), +[ckconfig v0.11.0](../../integrations/ckconfig/docs/releases/v0.11.0.md), and +[ckprompt v0.12.0](../../integrations/ckprompt/docs/releases/v0.12.0.md). +These versions were unused locally and on origin when drafted. Finalize the +integration drafts while aligning their module requirements after dependency +publication; the notes do not identify already prepared integration candidates. + Automatic usage reporting and R1–R4 remediation are implemented. Publication is separate follow-up work: release core, align and release ckconfig, then align and release ckprompt with both published CommandKit dependencies under the diff --git a/integrations/ckconfig/docs/releases/v0.11.0.md b/integrations/ckconfig/docs/releases/v0.11.0.md new file mode 100644 index 0000000..67c0996 --- /dev/null +++ b/integrations/ckconfig/docs/releases/v0.11.0.md @@ -0,0 +1,28 @@ +# CommandKit ckconfig v0.11.0 + +CommandKit ckconfig v0.11.0 integrates core's help-only preflight signal. +Bare `config explain` continues to display help when neither `--path` nor +`--list` is supplied. It now has the same invocation-feature exemption as +explicit `--help`: no feature startup, usage summary, or execution-only feature +flag requirement. Configuration state factories and loaders remain uninvoked. + +Real configuration operations retain their ordinary invocation-feature behavior, +including requested zero-usage summaries when no PromptKit execution occurs. +Invalid supplied values still produce usage errors. + +## Compatibility and upgrade + +The coordinated release targets CommandKit core v0.8.0; ConfigKit remains +v1.4.0 and the Go consumer minimum remains 1.27.0. Existing ckconfig assembly +signatures and scope contracts are unchanged. ckconfig itself adds no token-usage +flag; that capability is installed by a nonempty ckprompt family. + +Draft preparation: after core v0.8.0 is published, align this module's core +requirement and run its independent suite with the workspace disabled before +publication. The current checkout still selects the prior published core. +ckprompt v0.12.0 follows this release under the dependency-alignment policy. +See the [consumer guide](../../../../docs/consumers/guide.md#configkit-scopes). + +[COPYRIGHT](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/integrations/ckconfig/v0.11.0/integrations/ckconfig/COPYRIGHT) | +[LICENSE](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/integrations/ckconfig/v0.11.0/integrations/ckconfig/LICENSE) | +[ATTRIBUTION](https://forge.maximumdirect.net/base-layer/commandkit/src/tag/integrations/ckconfig/v0.11.0/integrations/ckconfig/docs/oss/attribution.md) diff --git a/integrations/ckprompt/docs/releases/v0.12.0.md b/integrations/ckprompt/docs/releases/v0.12.0.md new file mode 100644 index 0000000..f49d01b --- /dev/null +++ b/integrations/ckprompt/docs/releases/v0.12.0.md @@ -0,0 +1,62 @@ +# 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 + +The coordinated release targets 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. + +Draft preparation: publish core and ckconfig first, then align this module's two +CommandKit requirements and run its independent suite against those published +versions. The current checkout still selects the prior published requirements; +workspace and temporary local-source checks do not replace that release check. +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)