bailian-cli-core 1.20.0 → 1.22.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 (2) hide show
  1. package/dist/index.d.mts +3 -1
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1715,8 +1715,10 @@ interface Command<F extends FlagsDef = FlagsDef> {
1715
1715
  * Cross-flag validation, after parsing and before run. Return an error message
1716
1716
  * → UsageError; undefined to pass. Single-flag `required` is enforced by the
1717
1717
  * parser — use this for rules spanning flags or depending on a flag's *value*.
1718
+ * May be async for read-only local preflight. Runtime awaits it before auth
1719
+ * and confirmation. Do not perform remote requests or local writes here.
1718
1720
  */
1719
- validate?: (flags: ParsedFlags<F>) => string | undefined;
1721
+ validate?: (flags: ParsedFlags<F>) => string | undefined | Promise<string | undefined>;
1720
1722
  run: (ctx: CommandContext<F>) => Promise<void>;
1721
1723
  }
1722
1724
  /** Type-erased command for heterogeneous storage (registry / context). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bailian-cli-core",
3
- "version": "1.20.0",
3
+ "version": "1.22.0",
4
4
  "description": "Core SDK for bailian-cli. See https://www.npmjs.com/package/bailian-cli for usage.",
5
5
  "homepage": "https://bailian.console.aliyun.com/cli",
6
6
  "bugs": {