Add offline pipeline inspection and shared native resource preflight

This commit is contained in:
2026-11-22 03:32:31 +00:00
parent 9f66421f4f
commit 2a9c5a6075
9 changed files with 806 additions and 10 deletions

View File

@@ -31,6 +31,13 @@ type loadedSelection struct {
engine *promptkit.Engine
}
func checkConfigSelection(selection ckconfig.Selection) error {
if selection.Config.Set && strings.TrimSpace(selection.Config.Value) == "" {
return fmt.Errorf("--config must not be empty")
}
return nil
}
func (loaders *nativeLoaders) application(ctx context.Context, selection ckconfig.Selection) (*configkit.Result[config.Document], error) {
if err := ctx.Err(); err != nil {
return nil, err