padrone 1.8.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/{args-DrCXxXeP.mjs → args-WmyGc59s.mjs} +45 -33
  3. package/dist/{args-DrCXxXeP.mjs.map → args-WmyGc59s.mjs.map} +1 -1
  4. package/dist/codegen/index.mjs +1 -1
  5. package/dist/{commands-DLR0rFgq.mjs → commands-ohEApqIw.mjs} +2 -2
  6. package/dist/commands-ohEApqIw.mjs.map +1 -0
  7. package/dist/{completion-UnBKfGuk.mjs → completion-D8qkAinX.mjs} +2 -2
  8. package/dist/{completion-UnBKfGuk.mjs.map → completion-D8qkAinX.mjs.map} +1 -1
  9. package/dist/docs/index.mjs +2 -2
  10. package/dist/{help-B-ZMYyn-.mjs → help-CeI45CJx.mjs} +3 -3
  11. package/dist/{help-B-ZMYyn-.mjs.map → help-CeI45CJx.mjs.map} +1 -1
  12. package/dist/{index-Guyz-CBm.d.mts → index-C3Ed1LYN.d.mts} +17 -8
  13. package/dist/index-C3Ed1LYN.d.mts.map +1 -0
  14. package/dist/index.d.mts +17 -10
  15. package/dist/index.d.mts.map +1 -1
  16. package/dist/index.mjs +99 -41
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/{mcp-D6PdtjIs.mjs → mcp-wCoVFTXz.mjs} +4 -4
  19. package/dist/{mcp-D6PdtjIs.mjs.map → mcp-wCoVFTXz.mjs.map} +1 -1
  20. package/dist/{serve-PaCLsNoD.mjs → serve-ICZFl3xr.mjs} +4 -4
  21. package/dist/{serve-PaCLsNoD.mjs.map → serve-ICZFl3xr.mjs.map} +1 -1
  22. package/dist/test.d.mts +1 -1
  23. package/dist/zod.d.mts +1 -1
  24. package/package.json +1 -1
  25. package/src/cli/link.ts +51 -19
  26. package/src/core/args.ts +63 -37
  27. package/src/core/exec.ts +8 -1
  28. package/src/core/interceptors.ts +7 -4
  29. package/src/core/runtime.ts +11 -2
  30. package/src/extension/auto-output.ts +28 -3
  31. package/src/extension/progress-renderer.ts +32 -8
  32. package/src/extension/progress.ts +19 -9
  33. package/src/index.ts +1 -1
  34. package/src/types/builder.ts +2 -2
  35. package/src/types/index.ts +1 -0
  36. package/src/types/interceptor.ts +7 -0
  37. package/dist/commands-DLR0rFgq.mjs.map +0 -1
  38. package/dist/index-Guyz-CBm.d.mts.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as ColorConfig, i as AnsiStyle, n as HelpFormat, o as ColorTheme, r as HelpInfo, s as colorThemes, t as HelpDetail } from "./formatter-CY3KrOEd.mjs";
2
- import { $ as PadroneLogger, A as InterceptorParseResult, B as RegisteredInterceptor, C as InterceptorErrorContext, Ct as PadroneSpinnerPreset, D as InterceptorFactory, E as InterceptorExecuteResult, F as InterceptorValidateContext, G as OtelSpan, H as WrapResult, I as InterceptorValidateResult, J as PadroneTracer, K as OtelTracer, L as PadroneContextInterceptor, M as InterceptorRouteContext, N as InterceptorShutdownContext, O as InterceptorMeta, P as InterceptorStartContext, Q as PadroneLogLevel, R as PadroneInterceptor, S as InterceptorDefBuilder, St as PadroneSpinnerConfig, T as InterceptorExecuteContext, U as PadroneServePreferences, V as WrapConfig, W as PadroneMcpPreferences, X as WithTracing, Y as PadroneTracingConfig, Z as padroneTracing, _ as PadroneCommand, _t as PadroneProgressOptions, a as DefineCommandContext, at as PossibleCommands, b as ExtractInterceptorRequires, bt as PadroneRuntime, c as PadroneProgram, ct as WithInterceptor, d as PadroneParseResult, dt as InteractiveMode, et as PadroneLoggerConfig, f as PadroneReplPreferences, ft as InteractivePromptConfig, g as PadroneActionContext, gt as PadroneProgressIndicator, h as GetArgsMeta, ht as PadroneBarConfig, i as DefineCommandBuilder, it as PickCommandByName, j as InterceptorPhases, k as InterceptorParseContext, l as PadroneCommandResult, lt as AsyncPadroneSchema, m as CommandTypesBase, mt as PadroneBarChar, n as AnyPadroneProgram, nt as padroneLogger, o as PadroneBuilder, ot as WithAsync, p as AnyPadroneCommand, pt as PadroneBarAnimation, q as OtelTracerProvider, r as DefineCommand, rt as Drained, s as PadroneExtension, st as WithCommand, t as AnyPadroneBuilder, tt as WithLogger, u as PadroneDrainResult, ut as PadroneSchema, v as PadroneProgramMeta, vt as PadroneProgressShow, w as InterceptorErrorResult, wt as REPL_SIGINT, x as InterceptorBaseContext, xt as PadroneSignal, y as ExtractInterceptorContext, yt as PadroneProgressUpdate, z as PadroneInterceptorFn } from "./index-Guyz-CBm.mjs";
2
+ import { $ as PadroneLogger, A as InterceptorParseResult, B as RegisteredInterceptor, C as InterceptorErrorContext, Ct as PadroneSpinnerPreset, D as InterceptorFactory, E as InterceptorExecuteResult, F as InterceptorValidateContext, G as OtelSpan, H as WrapResult, I as InterceptorValidateResult, J as PadroneTracer, K as OtelTracer, L as PadroneContextInterceptor, M as InterceptorRouteContext, N as InterceptorShutdownContext, O as InterceptorMeta, P as InterceptorStartContext, Q as PadroneLogLevel, R as PadroneInterceptor, S as InterceptorDefBuilder, St as PadroneSpinnerConfig, T as InterceptorExecuteContext, U as PadroneServePreferences, V as WrapConfig, W as PadroneMcpPreferences, X as WithTracing, Y as PadroneTracingConfig, Z as padroneTracing, _ as PadroneCommand, _t as PadroneProgressOptions, a as DefineCommandContext, at as PossibleCommands, b as ExtractInterceptorRequires, bt as PadroneRuntime, c as PadroneProgram, ct as WithInterceptor, d as PadroneParseResult, dt as InteractiveMode, et as PadroneLoggerConfig, f as PadroneReplPreferences, ft as InteractivePromptConfig, g as PadroneActionContext, gt as PadroneProgress, h as GetArgsMeta, ht as PadroneBarConfig, i as DefineCommandBuilder, it as PickCommandByName, j as InterceptorPhases, k as InterceptorParseContext, l as PadroneCommandResult, lt as AsyncPadroneSchema, m as CommandTypesBase, mt as PadroneBarChar, n as AnyPadroneProgram, nt as padroneLogger, o as PadroneBuilder, ot as WithAsync, p as AnyPadroneCommand, pt as PadroneBarAnimation, q as OtelTracerProvider, r as DefineCommand, rt as Drained, s as PadroneExtension, st as WithCommand, t as AnyPadroneBuilder, tt as WithLogger, u as PadroneDrainResult, ut as PadroneSchema, v as PadroneProgramMeta, vt as PadroneProgressShow, w as InterceptorErrorResult, wt as REPL_SIGINT, x as InterceptorBaseContext, xt as PadroneSignal, y as ExtractInterceptorContext, yt as PadroneProgressUpdate, z as PadroneInterceptorFn } from "./index-C3Ed1LYN.mjs";
3
3
  import { StandardSchemaV1 } from "@standard-schema/spec";
4
4
  import * as _$ink from "ink";
5
5
 
@@ -355,6 +355,12 @@ type PadroneAutoOutputOptions = {
355
355
  * ```
356
356
  */
357
357
  output?: OutputConfig;
358
+ /**
359
+ * Automatically print unhandled errors to stderr in CLI mode.
360
+ * Skips errors already handled by other extensions (routing, validation, signal).
361
+ * @default true
362
+ */
363
+ errorOutput?: boolean;
358
364
  };
359
365
  /**
360
366
  * Extension that automatically writes a command's return value to output after execution.
@@ -574,13 +580,13 @@ type WithMcp<T> = WithCommand<T, 'mcp', McpCommand>;
574
580
  declare function padroneMcp(defaults?: PadroneMcpPreferences): <T extends CommandTypesBase>(builder: T) => WithMcp<T>;
575
581
  //#endregion
576
582
  //#region src/extension/progress-renderer.d.ts
577
- /** Factory function that creates a `PadroneProgressIndicator`. */
578
- type PadroneProgressRenderer = (message: string, options?: PadroneProgressOptions) => PadroneProgressIndicator;
583
+ /** Factory function that creates a `PadroneProgress`. */
584
+ type PadroneProgressRenderer = (message: string, options?: PadroneProgressOptions) => PadroneProgress;
579
585
  /**
580
586
  * Creates a terminal progress indicator (spinner, bar, or both).
581
587
  * Returns a no-op indicator in non-TTY/CI environments.
582
588
  */
583
- declare function createTerminalProgress(message: string, options?: PadroneProgressOptions): PadroneProgressIndicator;
589
+ declare function createTerminalProgress(message: string, options?: PadroneProgressOptions): PadroneProgress;
584
590
  //#endregion
585
591
  //#region src/extension/progress.d.ts
586
592
  /** A progress message value: a plain string, `null` to suppress, or an object with a message and custom indicator icon. */
@@ -608,7 +614,8 @@ type PadroneProgressConfig<TRes = unknown> = {
608
614
  * Custom renderer factory. Called to create the progress indicator.
609
615
  * Defaults to the built-in terminal renderer (`createTerminalProgress`).
610
616
  */
611
- renderer?: PadroneProgressRenderer;
617
+ renderer?: PadroneProgressRenderer; /** Suppress all progress output. The `progress` interface is still provided on the context as a no-op. */
618
+ silent?: boolean;
612
619
  };
613
620
  /**
614
621
  * Shared progress defaults that can be provided via context instead of repeating
@@ -617,10 +624,10 @@ type PadroneProgressConfig<TRes = unknown> = {
617
624
  *
618
625
  * Provide via context as `{ progressConfig: PadroneProgressDefaults }`.
619
626
  */
620
- type PadroneProgressDefaults = Pick<PadroneProgressConfig, 'message' | 'spinner' | 'bar' | 'time' | 'eta' | 'renderer'>;
621
- /** Builder/program type after applying `padroneProgress()`. Adds `{ progress: PadroneProgressIndicator }` to the command context. */
627
+ type PadroneProgressDefaults = Pick<PadroneProgressConfig, 'message' | 'spinner' | 'bar' | 'time' | 'eta' | 'renderer' | 'silent'>;
628
+ /** Builder/program type after applying `padroneProgress()`. Adds `{ progress: PadroneProgress }` to the command context. */
622
629
  type WithProgress<T> = WithInterceptor<T, {
623
- progress: PadroneProgressIndicator;
630
+ progress: PadroneProgress;
624
631
  }>;
625
632
  /**
626
633
  * Extension that adds an auto-managed progress indicator to the command pipeline.
@@ -631,7 +638,7 @@ type WithProgress<T> = WithInterceptor<T, {
631
638
  * The indicator is automatically started before validation, updated at each phase transition,
632
639
  * and stopped on success (`.succeed()`) or failure (`.fail()`).
633
640
  *
634
- * Provides `{ progress: PadroneProgressIndicator }` on the command context.
641
+ * Provides `{ progress: PadroneProgress }` on the command context.
635
642
  * Access it in action handlers as `ctx.context.progress`.
636
643
  *
637
644
  * Uses the built-in terminal renderer by default. Pass a custom `renderer` for non-terminal
@@ -891,5 +898,5 @@ type InferInterceptorRequires<T extends PadroneInterceptorFn & {
891
898
  */
892
899
  type InferCommand<T extends AnyPadroneCommand | AnyPadroneProgram, TPath extends PossibleCommands<T extends AnyPadroneCommand ? [T] : T['~types']['commands'], true, true>> = T extends AnyPadroneProgram ? PickCommandByName<[PadroneCommand<'', '', any, any, T['~types']['commands']>], TPath> : T extends AnyPadroneCommand ? PickCommandByName<[T], TPath> : never;
893
900
  //#endregion
894
- export { ActionError, type AnsiStyle, type AnyPadroneBuilder, type AnyPadroneCommand, type AnyPadroneProgram, type AsyncPadroneSchema, type AsyncStreamMeta, type ColorConfig, type ColorTheme, type CommandTypesBase, ConfigError, type DefineCommand, type DefineCommandBuilder, type DefineCommandContext, type Drained, type ExtractInterceptorContext, type ExtractInterceptorRequires, type GetArgsMeta, type HelpCommand, type HelpDetail, type HelpFormat, type HelpInfo, type InferArgsInput, type InferArgsOutput, type InferCommand, type InferContext, type InferContextProvided, type InferInterceptorContext, type InferInterceptorRequires, type InkOptions, type InteractiveMode, type InteractivePromptConfig, type InterceptorBaseContext, type InterceptorDefBuilder, type InterceptorErrorContext, type InterceptorErrorResult, type InterceptorExecuteContext, type InterceptorExecuteResult, type InterceptorFactory, type InterceptorMeta, type InterceptorParseContext, type InterceptorParseResult, type InterceptorPhases, type InterceptorRouteContext, type InterceptorShutdownContext, type InterceptorStartContext, type InterceptorValidateContext, type InterceptorValidateResult, type KeyValueOptions, type ListItem, type ListOptions, type OtelSpan, type OtelTracer, type OtelTracerProvider, type OutputContext, type OutputFormat, type PadroneActionContext, type PadroneBarAnimation, type PadroneBarChar, type PadroneBarConfig, type PadroneBuilder, type PadroneCommand, type PadroneCommandResult, type PadroneContextInterceptor, type PadroneDrainResult, PadroneError, type PadroneErrorOptions, type PadroneExtension, type PadroneInterceptor, type PadroneInterceptorFn, type PadroneLogLevel, type PadroneLogger, type PadroneLoggerConfig, type PadroneMcpPreferences, type PadroneOptions, type PadroneOutputIndicator, type PadroneParseResult, type PadroneProgram, type PadroneProgramMeta, type PadroneProgressConfig, type PadroneProgressDefaults, type PadroneProgressIndicator, type PadroneProgressMessage, type PadroneProgressMessages, type PadroneProgressOptions, type PadroneProgressRenderer, type PadroneProgressShow, type PadroneProgressUpdate, type PadroneRuntime, type PadroneSchema, type PadroneSignal, type PadroneSpinnerConfig, type PadroneSpinnerPreset, type PadroneTracer, type PadroneTracingConfig, REPL_SIGINT, type RegisteredInterceptor, RoutingError, SignalError, type TableOptions, type TreeNode, type TreeOptions, type UpdateCheckConfig, ValidationError, type VersionCommand, type WithAsync, type WithCompletion, type WithHelp, type WithLogger, type WithMan, type WithMcp, type WithProgress, type WithRepl, type WithServe, type WithTracing, type WithVersion, type WrapConfig, type WrapResult, asyncSchema, asyncStream, buildReplCompleter, colorThemes, createPadrone, createTerminalProgress, defineCommand, defineInterceptor, isReactElement, padroneAutoOutput, padroneColor, padroneCompletion, padroneConfig, padroneEnv, padroneHelp, padroneInk, padroneInteractive, padroneLogger, padroneMan, padroneMcp, padroneProgress, padroneRepl, padroneServe, padroneSignalHandling, padroneStdin, padroneSuggestions, padroneTiming, padroneTracing, padroneUpdateCheck, padroneVersion };
901
+ export { ActionError, type AnsiStyle, type AnyPadroneBuilder, type AnyPadroneCommand, type AnyPadroneProgram, type AsyncPadroneSchema, type AsyncStreamMeta, type ColorConfig, type ColorTheme, type CommandTypesBase, ConfigError, type DefineCommand, type DefineCommandBuilder, type DefineCommandContext, type Drained, type ExtractInterceptorContext, type ExtractInterceptorRequires, type GetArgsMeta, type HelpCommand, type HelpDetail, type HelpFormat, type HelpInfo, type InferArgsInput, type InferArgsOutput, type InferCommand, type InferContext, type InferContextProvided, type InferInterceptorContext, type InferInterceptorRequires, type InkOptions, type InteractiveMode, type InteractivePromptConfig, type InterceptorBaseContext, type InterceptorDefBuilder, type InterceptorErrorContext, type InterceptorErrorResult, type InterceptorExecuteContext, type InterceptorExecuteResult, type InterceptorFactory, type InterceptorMeta, type InterceptorParseContext, type InterceptorParseResult, type InterceptorPhases, type InterceptorRouteContext, type InterceptorShutdownContext, type InterceptorStartContext, type InterceptorValidateContext, type InterceptorValidateResult, type KeyValueOptions, type ListItem, type ListOptions, type OtelSpan, type OtelTracer, type OtelTracerProvider, type OutputContext, type OutputFormat, type PadroneActionContext, type PadroneBarAnimation, type PadroneBarChar, type PadroneBarConfig, type PadroneBuilder, type PadroneCommand, type PadroneCommandResult, type PadroneContextInterceptor, type PadroneDrainResult, PadroneError, type PadroneErrorOptions, type PadroneExtension, type PadroneInterceptor, type PadroneInterceptorFn, type PadroneLogLevel, type PadroneLogger, type PadroneLoggerConfig, type PadroneMcpPreferences, type PadroneOptions, type PadroneOutputIndicator, type PadroneParseResult, type PadroneProgram, type PadroneProgramMeta, type PadroneProgress, type PadroneProgressConfig, type PadroneProgressDefaults, type PadroneProgressMessage, type PadroneProgressMessages, type PadroneProgressOptions, type PadroneProgressRenderer, type PadroneProgressShow, type PadroneProgressUpdate, type PadroneRuntime, type PadroneSchema, type PadroneSignal, type PadroneSpinnerConfig, type PadroneSpinnerPreset, type PadroneTracer, type PadroneTracingConfig, REPL_SIGINT, type RegisteredInterceptor, RoutingError, SignalError, type TableOptions, type TreeNode, type TreeOptions, type UpdateCheckConfig, ValidationError, type VersionCommand, type WithAsync, type WithCompletion, type WithHelp, type WithLogger, type WithMan, type WithMcp, type WithProgress, type WithRepl, type WithServe, type WithTracing, type WithVersion, type WrapConfig, type WrapResult, asyncSchema, asyncStream, buildReplCompleter, colorThemes, createPadrone, createTerminalProgress, defineCommand, defineInterceptor, isReactElement, padroneAutoOutput, padroneColor, padroneCompletion, padroneConfig, padroneEnv, padroneHelp, padroneInk, padroneInteractive, padroneLogger, padroneMan, padroneMcp, padroneProgress, padroneRepl, padroneServe, padroneSignalHandling, padroneStdin, padroneSuggestions, padroneTiming, padroneTracing, padroneUpdateCheck, padroneVersion };
895
902
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/commands.ts","../src/extension/help.ts","../src/extension/version.ts","../src/core/results.ts","../src/core/create.ts","../src/core/errors.ts","../src/core/interceptors.ts","../src/output/styling.ts","../src/output/primitives.ts","../src/output/output-indicator.ts","../src/extension/auto-output.ts","../src/extension/color.ts","../src/extension/completion.ts","../src/extension/config.ts","../src/extension/env.ts","../src/extension/ink.ts","../src/extension/interactive.ts","../src/extension/man.ts","../src/extension/mcp.ts","../src/extension/progress-renderer.ts","../src/extension/progress.ts","../src/extension/repl.ts","../src/extension/serve.ts","../src/extension/signal.ts","../src/extension/stdin.ts","../src/extension/suggestions.ts","../src/extension/timing.ts","../src/feature/update-check.ts","../src/extension/update-check.ts","../src/util/stream.ts","../src/util/type-helpers.ts"],"mappings":";;;;;;;;ACiBA;;;iBDkHgB,kBAAA,CACd,WAAA,EAAa,iBAAA,EACb,QAAA;EACE,OAAA;AAAA,KAEA,IAAA;;;KCzHC,QAAA;EAAa,OAAA;EAAoB,MAAA,GAAS,UAAA;EAAY,MAAA,GAAS,UAAA;EAAY,GAAA;AAAA;AAAA,KAEpE,WAAA,GAAc,cAAA,aAA2B,aAAA,CAAc,QAAA;AAAA,KAEvD,QAAA,MAAc,WAAA,CAAY,CAAA,UAAW,WAAA;;;;;;;;;AAVQ;;;;iBA6JzC,WAAA,CAAA,cAA0B,gBAAA,EAAkB,OAAA,EAAS,CAAA,KAAM,QAAA,CAAS,CAAA;;;KC5JxE,cAAA,GAAiB,cAAA,gBAA8B,aAAA;AAAA,KAE/C,WAAA,MAAiB,WAAA,CAAY,CAAA,aAAc,cAAA;;AFuHvD;;;;;;;;;iBE/EgB,cAAA,CAAA,cAA6B,gBAAA,EAAkB,OAAA,EAAS,CAAA,KAAM,WAAA,CAAY,CAAA;;;;;;;AF+E1F;iBG1HgB,WAAA,WAAsB,aAAA,CAAA,CAAe,MAAA,EAAQ,CAAA,GAAI,CAAA;EAAM,QAAA;AAAA;;;AH0HvE;;;AAAA,KIzFY,eAAA;EJ0FG,kGIxFb,IAAA,YJ0FE;EIxFF,OAAA,YJ0FE;EIxFF,IAAA,YJwFc;EItFd,KAAA;EAEA,WAAA,YHrCG;EGuCH,MAAA;EAEA,UAAA,YHzCgB;E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gBAAA,CAAiB,CAAA,SAAU,iBAAA,IAAqB,CAAA,IAAK,CAAA,uCACjE,CAAA,SAAU,iBAAA,GACV,iBAAA,EAAmB,cAAA,mBAAiC,CAAA,0BAA2B,KAAA,IAC/E,CAAA,SAAU,iBAAA,GACR,iBAAA,EAAmB,CAAA,GAAI,KAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/core/commands.ts","../src/extension/help.ts","../src/extension/version.ts","../src/core/results.ts","../src/core/create.ts","../src/core/errors.ts","../src/core/interceptors.ts","../src/output/styling.ts","../src/output/primitives.ts","../src/output/output-indicator.ts","../src/extension/auto-output.ts","../src/extension/color.ts","../src/extension/completion.ts","../src/extension/config.ts","../src/extension/env.ts","../src/extension/ink.ts","../src/extension/interactive.ts","../src/extension/man.ts","../src/extension/mcp.ts","../src/extension/progress-renderer.ts","../src/extension/progress.ts","../src/extension/repl.ts","../src/extension/serve.ts","../src/extension/signal.ts","../src/extension/stdin.ts","../src/extension/suggestions.ts","../src/extension/timing.ts","../src/feature/update-check.ts","../src/extension/update-check.ts","../src/util/stream.ts","../src/util/type-helpers.ts"],"mappings":";;;;;;;;ACiBA;;;iBDkHgB,kBAAA,CACd,WAAA,EAAa,iBAAA,EACb,QAAA;EACE,OAAA;AAAA,KAEA,IAAA;;;KCzHC,QAAA;EAAa,OAAA;EAAoB,MAAA,GAAS,UAAA;EAAY,MAAA,GAAS,UAAA;EAAY,GAAA;AAAA;AAAA,KAEpE,WAAA,GAAc,cAAA,aAA2B,aAAA,CAAc,QAAA;AAAA,KAEvD,QAAA,MAAc,WAAA,CAAY,CAAA,UAAW,WAAA;;;;;;;;;AAVQ;;;;iBA6JzC,WAAA,CAAA,cAA0B,gBAAA,EAAkB,OAAA,EAAS,CAAA,KAAM,QAAA,CAAS,CAAA;;;KC5JxE,cAAA,GAAiB,cAAA,gBAA8B,aAAA;AAAA,KAE/C,WAAA,MAAiB,WAAA,CAAY,CAAA,aAAc,cAAA;;AFuHvD;;;;;;;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AyB,iBAAA,IAAqB,CAAA;;;;;;;;KAS9C,eAAA,WAA0B,iBAAA,IAAqB,CAAA;;;A7BhBF;;;;;K6ByB7C,YAAA,WAAuB,iBAAA,IAAqB,CAAA;;;;;;;A7BjBxD;K6B0BY,oBAAA,WAA+B,iBAAA,IAAqB,CAAA;;;;;;;;KASpD,uBAAA,WAAkC,yBAAA,SAAkC,CAAA;;;;A7BjChF;;;;K6B0CY,wBAAA,WAAmC,oBAAA;EAAyB,kBAAA;AAAA,KAA6B,CAAA,+BACnG,GAAA,sBAEE,CAAA;;;;;;;;A7BsGJ;;;;;;;;K6BpFY,YAAA,WACA,iBAAA,GAAoB,iBAAA,gBAChB,gBAAA,CAAiB,CAAA,SAAU,iBAAA,IAAqB,CAAA,IAAK,CAAA,uCACjE,CAAA,SAAU,iBAAA,GACV,iBAAA,EAAmB,cAAA,mBAAiC,CAAA,0BAA2B,KAAA,IAC/E,CAAA,SAAU,iBAAA,GACR,iBAAA,EAAmB,CAAA,GAAI,KAAA"}
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as resolveStdin, c as getCommandRuntime, d as repathCommandTree, f as resolveAllCommands, g as createTerminalReplSession, h as suggestSimilar, i as commandSymbol, l as lazyResolver, n as buildReplCompleter, o as findCommandByName, p as resolveCommand, u as mergeCommands, v as resolveStdinAlways, y as REPL_SIGINT } from "./commands-DLR0rFgq.mjs";
2
- import { a as getJsonSchema, c as parsePositionalConfig, i as extractSchemaMetadata, l as preprocessArgs, n as coerceArgs, o as isArrayField, r as detectUnknownArgs, s as isAsyncStreamField, t as applyValues } from "./args-DrCXxXeP.mjs";
1
+ import { _ as resolveStdin, c as getCommandRuntime, d as repathCommandTree, f as resolveAllCommands, g as createTerminalReplSession, h as suggestSimilar, i as commandSymbol, l as lazyResolver, n as buildReplCompleter, o as findCommandByName, p as resolveCommand, u as mergeCommands, v as resolveStdinAlways, y as REPL_SIGINT } from "./commands-ohEApqIw.mjs";
2
+ import { a as getJsonSchema, c as parsePositionalConfig, i as extractSchemaMetadata, l as preprocessArgs, n as coerceArgs, o as isArrayField, r as detectUnknownArgs, s as isAsyncStreamField, t as applyValues } from "./args-WmyGc59s.mjs";
3
3
  import { i as createStdinStream, r as concatBytes, t as asyncStream } from "./stream-DC4H8YTx.mjs";
4
- import { a as escapeHtml, i as getVersion, o as resolveOutputFormat, r as getRootCommand, s as colorThemes, t as generateHelp } from "./help-B-ZMYyn-.mjs";
4
+ import { a as escapeHtml, i as getVersion, o as resolveOutputFormat, r as getRootCommand, s as colorThemes, t as generateHelp } from "./help-CeI45CJx.mjs";
5
5
  import { a as SignalError, i as RoutingError, n as ConfigError, o as ValidationError, r as PadroneError, s as signalExitCode, t as ActionError } from "./errors-DA4KzK1M.mjs";
6
6
  //#region src/core/results.ts
7
7
  /**
@@ -261,6 +261,7 @@ function wrapWithLifecycle(interceptors, command, input, pipeline, wrapErrorResu
261
261
  const hasStart = interceptors.some((p) => p.start);
262
262
  const hasError = interceptors.some((p) => p.error);
263
263
  const hasShutdown = interceptors.some((p) => p.shutdown);
264
+ const effectivePipelineState = pipelineState ?? { phase: "start" };
264
265
  if (!hasStart && !hasError && !hasShutdown) return pipeline(signal ?? defaultSignal, context);
265
266
  let effectiveSignal = signal ?? defaultSignal;
266
267
  let effectiveContext = context;
@@ -276,7 +277,7 @@ function wrapWithLifecycle(interceptors, command, input, pipeline, wrapErrorResu
276
277
  runtime,
277
278
  program,
278
279
  caller,
279
- ...pipelineState
280
+ ...effectivePipelineState
280
281
  }, () => {});
281
282
  };
282
283
  const runError = (error) => {
@@ -296,7 +297,7 @@ function wrapWithLifecycle(interceptors, command, input, pipeline, wrapErrorResu
296
297
  runtime,
297
298
  program,
298
299
  caller,
299
- ...pipelineState
300
+ ...effectivePipelineState
300
301
  }, () => ({ error })), (er) => {
301
302
  if (er.error !== void 0) return thenMaybe(runShutdown(er.error), () => {
302
303
  throw er.error;
@@ -689,32 +690,45 @@ const autoOutputMeta = {
689
690
  name: "padrone:auto-output",
690
691
  order: -1100
691
692
  };
692
- function createAutoOutputInterceptor(outputConfig) {
693
- return defineInterceptor(autoOutputMeta, () => ({ execute(ctx, next) {
694
- const outputCtx = resolveOutputFormat(ctx.runtime, ctx.caller);
695
- const indicator = createOutputIndicator(ctx.runtime.output, outputCtx);
696
- const handleResult = (e) => {
697
- if (indicator.called) return e;
698
- const autoOutput = (value) => {
699
- if (value == null) return value;
700
- if (outputConfig) {
701
- const rendered = formatDeclarativeOutput(value, outputConfig, outputCtx);
702
- if (rendered !== void 0) {
703
- ctx.runtime.output(rendered);
704
- return value;
693
+ function createAutoOutputInterceptor(outputConfig, errorOutput) {
694
+ return defineInterceptor(autoOutputMeta, () => ({
695
+ error(ctx, next) {
696
+ const handleResult = (er) => {
697
+ if (!er.error || errorOutput === false || ctx.caller !== "cli" || ctx.phase !== "execute") return er;
698
+ const message = er.error instanceof Error ? er.error.message : String(er.error);
699
+ ctx.runtime.error(message);
700
+ return er;
701
+ };
702
+ const result = next();
703
+ if (result instanceof Promise) return result.then(handleResult);
704
+ return handleResult(result);
705
+ },
706
+ execute(ctx, next) {
707
+ const outputCtx = resolveOutputFormat(ctx.runtime, ctx.caller);
708
+ const indicator = createOutputIndicator(ctx.runtime.output, outputCtx);
709
+ const handleResult = (e) => {
710
+ if (indicator.called) return e;
711
+ const autoOutput = (value) => {
712
+ if (value == null) return value;
713
+ if (outputConfig) {
714
+ const rendered = formatDeclarativeOutput(value, outputConfig, outputCtx);
715
+ if (rendered !== void 0) {
716
+ ctx.runtime.output(rendered);
717
+ return value;
718
+ }
705
719
  }
706
- }
707
- return outputAndCollect(value, ctx.runtime.output);
720
+ return outputAndCollect(value, ctx.runtime.output);
721
+ };
722
+ if (e.result instanceof Promise) return { result: e.result.then(autoOutput) };
723
+ const collected = autoOutput(e.result);
724
+ if (collected instanceof Promise) return collected.then((v) => ({ result: v }));
725
+ return { result: collected };
708
726
  };
709
- if (e.result instanceof Promise) return { result: e.result.then(autoOutput) };
710
- const collected = autoOutput(e.result);
711
- if (collected instanceof Promise) return collected.then((v) => ({ result: v }));
712
- return { result: collected };
713
- };
714
- const executedOrPromise = next({ context: { output: indicator } });
715
- if (executedOrPromise instanceof Promise) return executedOrPromise.then(handleResult);
716
- return handleResult(executedOrPromise);
717
- } }));
727
+ const executedOrPromise = next({ context: { output: indicator } });
728
+ if (executedOrPromise instanceof Promise) return executedOrPromise.then(handleResult);
729
+ return handleResult(executedOrPromise);
730
+ }
731
+ }));
718
732
  }
719
733
  /**
720
734
  * Extension that automatically writes a command's return value to output after execution.
@@ -741,7 +755,7 @@ function padroneAutoOutput(options) {
741
755
  const interceptor = options?.disabled ? defineInterceptor({
742
756
  ...autoOutputMeta,
743
757
  disabled: true
744
- }, () => ({})) : createAutoOutputInterceptor(options?.output);
758
+ }, () => ({})) : createAutoOutputInterceptor(options?.output, options?.errorOutput);
745
759
  return ((builder) => builder.intercept(interceptor));
746
760
  }
747
761
  //#endregion
@@ -2060,7 +2074,7 @@ function execCommand(resolvedInput, ctx, evalOptions, errorMode = "soft", caller
2060
2074
  const baseRuntime = getCommandRuntime(rootCommand);
2061
2075
  const runtime = evalOptions?.runtime ? Object.assign({}, baseRuntime, Object.fromEntries(Object.entries(evalOptions.runtime).filter(([, v]) => v !== void 0))) : baseRuntime;
2062
2076
  const inertSignal = new AbortController().signal;
2063
- const pipelineState = {};
2077
+ const pipelineState = { phase: "start" };
2064
2078
  const initialContext = evalOptions?.context;
2065
2079
  const factoryCache = /* @__PURE__ */ new Map();
2066
2080
  const rootInterceptors = resolveRegisteredInterceptors(rootCommand.interceptors ?? [], factoryCache);
@@ -2079,6 +2093,7 @@ function execCommand(resolvedInput, ctx, evalOptions, errorMode = "soft", caller
2079
2093
  const parsedOrPromise = runInterceptorChain("parse", rootInterceptors, parseCtx, coreParse);
2080
2094
  const continueAfterParse = (parsed) => {
2081
2095
  const { command } = parsed;
2096
+ pipelineState.phase = "parse";
2082
2097
  pipelineState.rawArgs = parsed.rawArgs;
2083
2098
  pipelineState.positionalArgs = parsed.positionalArgs;
2084
2099
  const commandInterceptors = resolveRegisteredInterceptors(collectInterceptorsFn(command), factoryCache);
@@ -2092,6 +2107,7 @@ function execCommand(resolvedInput, ctx, evalOptions, errorMode = "soft", caller
2092
2107
  context
2093
2108
  }, () => {});
2094
2109
  const continueAfterRoute = () => {
2110
+ pipelineState.phase = "route";
2095
2111
  const runValidateAndExecute = () => {
2096
2112
  const validateCtx = {
2097
2113
  ...parseCtx,
@@ -2111,6 +2127,7 @@ function execCommand(resolvedInput, ctx, evalOptions, errorMode = "soft", caller
2111
2127
  };
2112
2128
  const validatedOrPromise = runInterceptorChain("validate", commandInterceptors, validateCtx, coreValidate);
2113
2129
  const continueAfterValidate = (v) => {
2130
+ pipelineState.phase = "validate";
2114
2131
  pipelineState.args = v.args;
2115
2132
  if (v.argsResult?.issues) return handleValidationIssues(v.argsResult, command, errorMode);
2116
2133
  const executeCtx = {
@@ -2129,6 +2146,7 @@ function execCommand(resolvedInput, ctx, evalOptions, errorMode = "soft", caller
2129
2146
  };
2130
2147
  return { result: handler(executeCtx.args, actionCtx) };
2131
2148
  };
2149
+ pipelineState.phase = "execute";
2132
2150
  return thenMaybe(runInterceptorChain("execute", commandInterceptors, executeCtx, coreExecute), (e) => {
2133
2151
  const finalize = (result) => withDrain({
2134
2152
  command,
@@ -2585,17 +2603,17 @@ function createProgramMethods(ctx, evalCommand) {
2585
2603
  };
2586
2604
  const completion = async (shell) => {
2587
2605
  resolveAllCommands(rootCommand);
2588
- const { generateCompletionOutput } = await import("./completion-UnBKfGuk.mjs");
2606
+ const { generateCompletionOutput } = await import("./completion-D8qkAinX.mjs");
2589
2607
  return generateCompletionOutput(rootCommand, shell);
2590
2608
  };
2591
2609
  const mcp = async (prefs) => {
2592
2610
  resolveAllCommands(rootCommand);
2593
- const { startMcpServer } = await import("./mcp-D6PdtjIs.mjs");
2611
+ const { startMcpServer } = await import("./mcp-wCoVFTXz.mjs");
2594
2612
  return startMcpServer(ctx.builder, rootCommand, evalCommand, prefs);
2595
2613
  };
2596
2614
  const serve = async (prefs) => {
2597
2615
  resolveAllCommands(rootCommand);
2598
- const { startServeServer } = await import("./serve-PaCLsNoD.mjs");
2616
+ const { startServeServer } = await import("./serve-ICZFl3xr.mjs");
2599
2617
  return startServeServer(ctx.builder, rootCommand, evalCommand, prefs);
2600
2618
  };
2601
2619
  return {
@@ -2844,7 +2862,7 @@ function padroneCompletion() {
2844
2862
  }), { positional: ["shell"] }).async().action(async (args, ctx) => {
2845
2863
  const rootCommand = getRootCommand(ctx.command);
2846
2864
  resolveAllCommands(rootCommand);
2847
- const { detectShell, generateCompletionOutput, setupCompletions } = await import("./completion-UnBKfGuk.mjs");
2865
+ const { detectShell, generateCompletionOutput, setupCompletions } = await import("./completion-D8qkAinX.mjs");
2848
2866
  const shell = args.shell;
2849
2867
  if (args.setup) {
2850
2868
  const resolvedShell = shell ?? await detectShell();
@@ -3518,7 +3536,7 @@ function padroneMcp(defaults) {
3518
3536
  }), { positional: ["transport"] }).async().action(async (args, ctx) => {
3519
3537
  const rootCommand = getRootCommand(ctx.command);
3520
3538
  resolveAllCommands(rootCommand);
3521
- const { startMcpServer } = await import("./mcp-D6PdtjIs.mjs");
3539
+ const { startMcpServer } = await import("./mcp-wCoVFTXz.mjs");
3522
3540
  const transport = args.transport === "stdio" || args.transport === "http" ? args.transport : void 0;
3523
3541
  const port = args.port ? parseInt(args.port, 10) : void 0;
3524
3542
  const prefs = {
@@ -3688,6 +3706,11 @@ function createTerminalProgress(message, options) {
3688
3706
  const formatFinal = (icon, msg) => icon ? `${icon} ${msg}\n` : `${msg}\n`;
3689
3707
  if (typeof process === "undefined" || !process.stderr?.isTTY) return {
3690
3708
  update() {},
3709
+ eta: {
3710
+ start() {},
3711
+ stop() {},
3712
+ reset() {}
3713
+ },
3691
3714
  succeed(msg, opts) {
3692
3715
  if (msg === null) return;
3693
3716
  const icon = opts?.indicator ?? successIcon;
@@ -3705,6 +3728,11 @@ function createTerminalProgress(message, options) {
3705
3728
  const ansiPattern = /\x1b\[[0-9;]*m/g;
3706
3729
  if (spinnerCfg.show === "never" && (!barCfg || barCfg.show === "never") && !message) return {
3707
3730
  update() {},
3731
+ eta: {
3732
+ start() {},
3733
+ stop() {},
3734
+ reset() {}
3735
+ },
3708
3736
  succeed() {},
3709
3737
  fail() {},
3710
3738
  stop() {},
@@ -3712,7 +3740,7 @@ function createTerminalProgress(message, options) {
3712
3740
  resume() {}
3713
3741
  };
3714
3742
  const showTime = options?.time ?? false;
3715
- const showEta = options?.eta ?? false;
3743
+ let etaEnabled = options?.eta ?? false;
3716
3744
  let spinnerFrame = 0;
3717
3745
  let barFrame = 0;
3718
3746
  let text = message;
@@ -3745,7 +3773,7 @@ function createTerminalProgress(message, options) {
3745
3773
  const spinnerVisible = spinnerCfg.show === "always" || spinnerCfg.show === "auto" && !barVisible;
3746
3774
  let line = "";
3747
3775
  if (barVisible) line += formatBar(progress, barCfg, barFrame);
3748
- const hasEta = showEta && progress !== void 0 && progress < 1 && etaMs !== void 0;
3776
+ const hasEta = etaEnabled && progress !== void 0 && progress < 1 && etaMs !== void 0;
3749
3777
  if (timeEnabled || hasEta) {
3750
3778
  const parts = [];
3751
3779
  if (timeEnabled) parts.push(`⏱ ${formatDuration$1(Date.now() - startTime)}`);
@@ -3794,7 +3822,7 @@ function createTerminalProgress(message, options) {
3794
3822
  if (parsed.message !== void 0) text = parsed.message;
3795
3823
  if (parsed.progress !== void 0) {
3796
3824
  progress = parsed.progress;
3797
- if (showEta) {
3825
+ if (etaEnabled) {
3798
3826
  const now = Date.now();
3799
3827
  etaSamples.push({
3800
3828
  time: now,
@@ -3819,6 +3847,26 @@ function createTerminalProgress(message, options) {
3819
3847
  }
3820
3848
  render();
3821
3849
  },
3850
+ eta: {
3851
+ start() {
3852
+ if (stopped) return;
3853
+ etaEnabled = true;
3854
+ render();
3855
+ },
3856
+ stop() {
3857
+ if (stopped) return;
3858
+ etaEnabled = false;
3859
+ etaMs = void 0;
3860
+ render();
3861
+ },
3862
+ reset() {
3863
+ if (stopped) return;
3864
+ etaSamples.length = 0;
3865
+ etaMs = void 0;
3866
+ etaCalculatedAt = 0;
3867
+ render();
3868
+ }
3869
+ },
3822
3870
  succeed(msg, opts) {
3823
3871
  clear();
3824
3872
  if (msg === null) return;
@@ -3853,6 +3901,11 @@ function createTerminalProgress(message, options) {
3853
3901
  //#region src/extension/progress.ts
3854
3902
  const noopIndicator = {
3855
3903
  update() {},
3904
+ eta: {
3905
+ start() {},
3906
+ stop() {},
3907
+ reset() {}
3908
+ },
3856
3909
  succeed() {},
3857
3910
  fail() {},
3858
3911
  stop() {},
@@ -3913,6 +3966,7 @@ function progressInterceptor(config) {
3913
3966
  const rawRenderer = isObj ? config.renderer : void 0;
3914
3967
  const rawTime = isObj ? config.time : void 0;
3915
3968
  const rawEta = isObj ? config.eta : void 0;
3969
+ const rawSilent = isObj ? config.silent : void 0;
3916
3970
  return defineInterceptor({
3917
3971
  id: "padrone:progress",
3918
3972
  name: "padrone:progress"
@@ -3921,10 +3975,12 @@ function progressInterceptor(config) {
3921
3975
  let restoreOutput;
3922
3976
  let resolvedRenderer;
3923
3977
  let resolvedOptions;
3978
+ let resolvedSilent = false;
3924
3979
  let msgs;
3925
3980
  function resolve(ctx) {
3926
3981
  if (resolvedRenderer) return;
3927
3982
  const ctxCfg = ctx.context?.progressConfig;
3983
+ resolvedSilent = rawSilent ?? ctxCfg?.silent ?? false;
3928
3984
  const spinner = rawSpinner ?? ctxCfg?.spinner;
3929
3985
  const bar = rawBar ?? ctxCfg?.bar;
3930
3986
  const time = rawTime ?? ctxCfg?.time;
@@ -3946,6 +4002,7 @@ function progressInterceptor(config) {
3946
4002
  return {
3947
4003
  validate(ctx, next) {
3948
4004
  resolve(ctx);
4005
+ if (resolvedSilent) return next();
3949
4006
  indicator = resolvedRenderer(msgs.validation || msgs.progress, resolvedOptions);
3950
4007
  const originalOutput = ctx.runtime.output;
3951
4008
  const originalError = ctx.runtime.error;
@@ -3987,6 +4044,7 @@ function progressInterceptor(config) {
3987
4044
  return checkResult(result);
3988
4045
  },
3989
4046
  execute(_ctx, next) {
4047
+ if (resolvedSilent) return next({ context: { progress: noopIndicator } });
3990
4048
  if (indicator && msgs.validation) indicator.update(msgs.progress);
3991
4049
  const effectiveIndicator = indicator ?? noopIndicator;
3992
4050
  const onSuccess = (value) => {
@@ -4039,7 +4097,7 @@ function progressInterceptor(config) {
4039
4097
  * The indicator is automatically started before validation, updated at each phase transition,
4040
4098
  * and stopped on success (`.succeed()`) or failure (`.fail()`).
4041
4099
  *
4042
- * Provides `{ progress: PadroneProgressIndicator }` on the command context.
4100
+ * Provides `{ progress: PadroneProgress }` on the command context.
4043
4101
  * Access it in action handlers as `ctx.context.progress`.
4044
4102
  *
4045
4103
  * Uses the built-in terminal renderer by default. Pass a custom `renderer` for non-terminal
@@ -4080,7 +4138,7 @@ function padroneServe(defaults) {
4080
4138
  })).async().action(async (args, ctx) => {
4081
4139
  const rootCommand = getRootCommand(ctx.command);
4082
4140
  resolveAllCommands(rootCommand);
4083
- const { startServeServer } = await import("./serve-PaCLsNoD.mjs");
4141
+ const { startServeServer } = await import("./serve-ICZFl3xr.mjs");
4084
4142
  const port = args.port ? parseInt(args.port, 10) : void 0;
4085
4143
  const prefs = {
4086
4144
  ...defaults,