Expose native PromptKit discovery preparation and smoke testing

This commit is contained in:
2026-11-20 04:37:18 +00:00
parent f2f807e87b
commit f9b5121432
4 changed files with 421 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ func Execute(ctx context.Context, identity commandkit.Identity, args []string, s
}
func newApp(identity commandkit.Identity) (*commandkit.App, error) {
definitions := ckprompt.FromEngine(loadEngine)
definitions := promptSuite()
declarations := []commandkit.Declaration{
commandkit.NewCommand(commandkit.CommandSpec[struct{}]{Name: "run", Summary: "Run a stored prompt.", Run: commandNotImplemented}),
commandkit.NewCommand(commandkit.CommandSpec[serveInput]{Name: "serve", Summary: "Serve the HTTP API.", Flags: serveFlags(), Run: func(commandkit.Invocation, serveInput) commandkit.Outcome {