Add opt-in PromptKit namespaces

This commit is contained in:
2026-11-07 04:23:39 +00:00
parent 8e5e64c6e9
commit 644e6c365b
12 changed files with 353 additions and 32 deletions

View File

@@ -1,6 +1,6 @@
# Shared reporting and PromptKit v0.20.0 implementation plan
Status: implementation in progress; Stages 1–11 complete.
Status: implementation in progress; Stages 1–12 complete.
## Scope, authority, and execution
@@ -433,6 +433,11 @@ native result rather than asserting PromptKit's rendering algorithm.
## Stage 12: Opt-in namespace composition
**Complete.** Opt-in namespace defaults and applicable selectors reach custom
callbacks and native engine views. The root, ckconfig, and ckprompt workspace
suites passed with Go 1.27.0; focused tests cover default composition, clearing,
applicability, loader views, and native error identity.
Add `WithNamespaces(suite, promptkit.Namespaces) Suite` and store explicit
application defaults in an optional suite field. Add `Namespaces
*promptkit.Namespaces` to applicable ckprompt request envelopes, including