Record alias invocation metadata decision
This commit is contained in:
@@ -213,9 +213,17 @@ defaults, typed bindings, input preparation, providers, diagnostics, and
|
|||||||
outcomes. Execute the ordinary lifecycle once. Alias registration, resolution,
|
outcomes. Execute the ordinary lifecycle once. Alias registration, resolution,
|
||||||
and help do not invoke application input/state factories or acquisition callbacks.
|
and help do not invoke application input/state factories or acquisition callbacks.
|
||||||
|
|
||||||
Retain the entered alias path and resolved canonical path for routing and
|
Expose the original entered command path and final resolved canonical command
|
||||||
presentation. Whether this identity is exposed through the public invocation
|
path as read-only invocation metadata. Both paths exclude the executable name,
|
||||||
API remains open.
|
flags, and operands. For a direct canonical invocation the paths are equal;
|
||||||
|
for `app pk test full`, they can be `pk test full` and `promptkit test all`.
|
||||||
|
Retain the endpoints through a chain; intermediate rewrites are not part of
|
||||||
|
the selected public metadata.
|
||||||
|
|
||||||
|
Consumers can use the canonical path to identify the operation consistently
|
||||||
|
and the entered path for logging and diagnostics. CommandKit dispatch and
|
||||||
|
bindings continue to use the canonical target. Exact accessor names and path
|
||||||
|
representation remain API design details under OD-1.
|
||||||
|
|
||||||
Support both help forms:
|
Support both help forms:
|
||||||
|
|
||||||
@@ -364,13 +372,9 @@ duplicate handling, and core-only availability are selected above. What public
|
|||||||
declaration type lets `New` and `App.Register` accept commands and aliases
|
declaration type lets `New` and `App.Register` accept commands and aliases
|
||||||
together? How do collections of reusable declarations and group composition
|
together? How do collections of reusable declarations and group composition
|
||||||
interact with application-root alias paths? What exact whitespace parsing and
|
interact with application-root alias paths? What exact whitespace parsing and
|
||||||
path validation rules accompany the selected string representation?
|
path validation rules accompany the selected string representation? What
|
||||||
|
accessor names and representation expose the selected read-only entered and
|
||||||
### OD-5: Invocation identity
|
canonical invocation paths?
|
||||||
|
|
||||||
Does the public invocation API expose entered and canonical command paths?
|
|
||||||
What identity is retained through a chain, and how is it represented in that
|
|
||||||
API? Help and diagnostic presentation are selected above.
|
|
||||||
|
|
||||||
### OD-6: Flag alias scope and composition
|
### OD-6: Flag alias scope and composition
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user