@kjanat/dreamcli 3.0.0-rc.11 → 3.0.0-rc.12
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.
- package/CHANGELOG.md +46 -1
- package/dist/core/cli/index.d.mts +29 -4
- package/dist/core/cli/index.mjs +44 -11
- package/dist/core/cli/root-help.mjs +1 -0
- package/dist/core/completion/shells/shared.mjs +1 -0
- package/dist/core/config/package-json.d.mts +1 -0
- package/dist/core/help/index.d.mts +2 -0
- package/dist/core/json-schema/index.d.mts +0 -5
- package/dist/core/json-schema/index.mjs +242 -78
- package/dist/core/output/index.d.mts +33 -1
- package/dist/core/output/index.mjs +29 -2
- package/dist/core/resolve/index.mjs +5 -0
- package/dist/core/resolve/standard.d.mts +24 -0
- package/dist/core/resolve/standard.mjs +114 -0
- package/dist/core/schema/arg.d.mts +35 -0
- package/dist/core/schema/arg.mjs +5 -2
- package/dist/core/schema/command.d.mts +9 -0
- package/dist/core/schema/flag.d.mts +37 -1
- package/dist/core/schema/flag.mjs +5 -2
- package/dist/core/schema/index.d.mts +2 -1
- package/dist/core/schema/standard.d.mts +100 -0
- package/dist/core/schema/standard.mjs +15 -0
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +2 -2
- package/dist/version.mjs +2 -2
- package/dreamcli.schema.json +79 -0
- package/examples/gh/node_modules/typescript/LICENSE +55 -0
- package/examples/gh/node_modules/typescript/NOTICE.txt +436 -0
- package/examples/gh/node_modules/typescript/README.md +49 -0
- package/examples/gh/node_modules/typescript/bin/tsc +2 -0
- package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts +529 -0
- package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/async/api.js +1657 -0
- package/examples/gh/node_modules/typescript/dist/api/async/api.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts +39 -0
- package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/async/client.js +211 -0
- package/examples/gh/node_modules/typescript/dist/api/async/client.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts +310 -0
- package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/async/types.js +2 -0
- package/examples/gh/node_modules/typescript/dist/api/async/types.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts +109 -0
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js +2 -0
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/fs.d.ts +23 -0
- package/examples/gh/node_modules/typescript/dist/api/fs.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/fs.js +109 -0
- package/examples/gh/node_modules/typescript/dist/api/fs.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts +15 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts +5 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js +74 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.js +287 -0
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts +32 -0
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js +213 -0
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts +76 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts +182 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js +835 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +62 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js +122 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.js +298 -0
- package/examples/gh/node_modules/typescript/dist/api/node/node.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts +29 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts +4 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js +241 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.js +30 -0
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts +6 -0
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js +61 -0
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/options.d.ts +32 -0
- package/examples/gh/node_modules/typescript/dist/api/options.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/options.js +11 -0
- package/examples/gh/node_modules/typescript/dist/api/options.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/path.d.ts +110 -0
- package/examples/gh/node_modules/typescript/dist/api/path.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/path.js +508 -0
- package/examples/gh/node_modules/typescript/dist/api/path.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/proto.d.ts +239 -0
- package/examples/gh/node_modules/typescript/dist/api/proto.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/proto.js +37 -0
- package/examples/gh/node_modules/typescript/dist/api/proto.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts +79 -0
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js +169 -0
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts +529 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/api.js +1665 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/api.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts +30 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/client.js +124 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/client.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts +310 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/types.js +2 -0
- package/examples/gh/node_modules/typescript/dist/api/sync/types.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts +114 -0
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.js +508 -0
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/timing.d.ts +175 -0
- package/examples/gh/node_modules/typescript/dist/api/timing.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/api/timing.js +149 -0
- package/examples/gh/node_modules/typescript/dist/api/timing.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts +100 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts +1161 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js +4 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.js +7 -0
- package/examples/gh/node_modules/typescript/dist/ast/ast.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts +19 -0
- package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/astnav.js +596 -0
- package/examples/gh/node_modules/typescript/dist/ast/astnav.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts +16 -0
- package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/clone.js +104 -0
- package/examples/gh/node_modules/typescript/dist/ast/clone.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts +520 -0
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js +3057 -0
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/index.d.ts +20 -0
- package/examples/gh/node_modules/typescript/dist/ast/index.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/index.js +20 -0
- package/examples/gh/node_modules/typescript/dist/ast/index.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.d.ts +35 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts +329 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.js +1103 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.js +233 -0
- package/examples/gh/node_modules/typescript/dist/ast/is.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts +11 -0
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js +202 -0
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts +97 -0
- package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/scanner.js +2230 -0
- package/examples/gh/node_modules/typescript/dist/ast/scanner.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts +17 -0
- package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/utils.js +67 -0
- package/examples/gh/node_modules/typescript/dist/ast/utils.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts +14 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts +50 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js +978 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.js +47 -0
- package/examples/gh/node_modules/typescript/dist/ast/visitor.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +129 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js +132 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js +130 -0
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +5 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +6 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js +6 -0
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +28 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js +30 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js +30 -0
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +7 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +12 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js +14 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js +14 -0
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +23 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js +25 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js +25 -0
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js +11 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js +11 -0
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +5 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js +6 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js +6 -0
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +42 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js +44 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js +44 -0
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +7 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +17 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js +19 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js +19 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +11 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js +11 -0
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +6 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js +8 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js +8 -0
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +38 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js +38 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +44 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js +46 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js +46 -0
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +50 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js +52 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js +52 -0
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +18 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js +18 -0
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +14 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js +14 -0
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +11 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js +12 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js +12 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +17 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js +18 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js +18 -0
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +15 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js +17 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js +17 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +5 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js +7 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js +7 -0
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +71 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js +73 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js +73 -0
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +389 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js +391 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js +391 -0
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +30 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js +32 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js +32 -0
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +76 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js +78 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js +78 -0
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts +2 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +7 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js +9 -0
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js.map +1 -0
- package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts +23 -0
- package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts.map +1 -0
- package/examples/gh/node_modules/typescript/dist/internal/utils.js +25 -0
- package/examples/gh/node_modules/typescript/dist/internal/utils.js.map +1 -0
- package/examples/gh/node_modules/typescript/lib/getExePath.d.ts +2 -0
- package/examples/gh/node_modules/typescript/lib/getExePath.js +70 -0
- package/examples/gh/node_modules/typescript/lib/tsc.js +28 -0
- package/examples/gh/node_modules/typescript/lib/version.cjs +3 -0
- package/examples/gh/node_modules/typescript/lib/version.d.cts +2 -0
- package/examples/gh/node_modules/typescript/package.json +87 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +11 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/README.md +54 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/package.json +54 -0
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
- package/examples/gh/package.json +11 -5
- package/examples/gh/src/main.ts +10 -4
- package/examples/pwsh-demo/package.json +1 -1
- package/examples/pwsh-demo/src/main.ts +1 -1
- package/package.json +16 -24
- package/dist/core/schema-dsl/runtime.d.mts +0 -144
- package/dist/core/schema-dsl/runtime.mjs +0 -271
- package/dist/core/schema-dsl/to-json-schema.d.mts +0 -29
- package/dist/core/schema-dsl/to-json-schema.mjs +0 -74
|
@@ -57,6 +57,17 @@ interface OutputOptions {
|
|
|
57
57
|
* `FORCE_COLOR`, `--no-color`, `--color`, `CI` are respected).
|
|
58
58
|
*/
|
|
59
59
|
readonly color?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Resolved OSC 8 hyperlink support for `out.isHyperlinkSupported`.
|
|
62
|
+
*
|
|
63
|
+
* When set, this wins over the `isTTY` fallback. Callers pass the
|
|
64
|
+
* `NO_HYPERLINKS`/`FORCE_HYPERLINKS` (and `--no-hyperlinks`/`--hyperlinks`)
|
|
65
|
+
* decision here via {@linkcode resolveHyperlinkOverride}, keeping `process`
|
|
66
|
+
* access out of the output layer.
|
|
67
|
+
*
|
|
68
|
+
* @defaultValue `isTTY`
|
|
69
|
+
*/
|
|
70
|
+
readonly hyperlinks?: boolean;
|
|
60
71
|
}
|
|
61
72
|
/** Fully resolved output options with no optional fields. */
|
|
62
73
|
interface ResolvedOutputOptions {
|
|
@@ -66,10 +77,24 @@ interface ResolvedOutputOptions {
|
|
|
66
77
|
readonly verbosity: Verbosity;
|
|
67
78
|
readonly jsonMode: boolean;
|
|
68
79
|
readonly color: boolean;
|
|
80
|
+
readonly isHyperlinkSupported: boolean;
|
|
69
81
|
}
|
|
82
|
+
/** Store the exit code requested through an output channel. @internal */
|
|
70
83
|
declare function setRequestedExitCode(out: Out, code: number): void;
|
|
84
|
+
/** Read the exit code requested through an output channel. @internal */
|
|
71
85
|
declare function getRequestedExitCode(out: Out): number | undefined;
|
|
86
|
+
/** Clear a previously requested exit code from an output channel. @internal */
|
|
72
87
|
declare function clearRequestedExitCode(out: Out): void;
|
|
88
|
+
/**
|
|
89
|
+
* Forced hyperlink decision from `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
90
|
+
* `--no-hyperlinks`/`--hyperlinks` argv flags; `undefined` when unset.
|
|
91
|
+
*
|
|
92
|
+
* Pure over its inputs — callers pass the adapter's `env`/`argv` so the
|
|
93
|
+
* output layer never touches `process` directly.
|
|
94
|
+
*
|
|
95
|
+
* @see https://no-hyperlinks.org/
|
|
96
|
+
*/
|
|
97
|
+
declare function resolveHyperlinkOverride(env: Readonly<Record<string, string | undefined>>, argv: readonly string[]): boolean | undefined;
|
|
73
98
|
/**
|
|
74
99
|
* Concrete implementation of the {@linkcode Out} interface.
|
|
75
100
|
*
|
|
@@ -104,6 +129,13 @@ declare class OutputChannel implements Out {
|
|
|
104
129
|
* colors are off, so handlers can style unconditionally.
|
|
105
130
|
*/
|
|
106
131
|
readonly color: Colors;
|
|
132
|
+
/**
|
|
133
|
+
* Whether OSC 8 hyperlinks should be emitted for this channel.
|
|
134
|
+
*
|
|
135
|
+
* Honors `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
136
|
+
* `--no-hyperlinks`/`--hyperlinks` argv flags, falling back to `isTTY`.
|
|
137
|
+
*/
|
|
138
|
+
readonly isHyperlinkSupported: boolean;
|
|
107
139
|
constructor(options: ResolvedOutputOptions);
|
|
108
140
|
/**
|
|
109
141
|
* Write to stdout (normal output). Always emitted.
|
|
@@ -302,4 +334,4 @@ interface CapturedOutput {
|
|
|
302
334
|
*/
|
|
303
335
|
declare function createCaptureOutput(options?: Omit<OutputOptions, 'stdout' | 'stderr'>): [out: Out, captured: CapturedOutput];
|
|
304
336
|
//#endregion
|
|
305
|
-
export { CaptureOutputChannel, CaptureProgressHandle, CaptureSpinnerHandle, type CapturedOutput, OutputChannel, type OutputOptions, StaticProgressHandle, StaticSpinnerHandle, TTYProgressHandle, TTYSpinnerHandle, type Verbosity, type WriteFn, clearRequestedExitCode, createCaptureOutput, createOutput, getRequestedExitCode, noopProgressHandle, noopSpinnerHandle, setRequestedExitCode, writeLine };
|
|
337
|
+
export { CaptureOutputChannel, CaptureProgressHandle, CaptureSpinnerHandle, type CapturedOutput, OutputChannel, type OutputOptions, StaticProgressHandle, StaticSpinnerHandle, TTYProgressHandle, TTYSpinnerHandle, type Verbosity, type WriteFn, clearRequestedExitCode, createCaptureOutput, createOutput, getRequestedExitCode, noopProgressHandle, noopSpinnerHandle, resolveHyperlinkOverride, setRequestedExitCode, writeLine };
|
|
@@ -28,15 +28,33 @@ function validateExitCode(code) {
|
|
|
28
28
|
if (!Number.isInteger(code) || code < 0 || code > 255) throw new RangeError("Exit code must be an integer from 0 to 255");
|
|
29
29
|
return code;
|
|
30
30
|
}
|
|
31
|
+
/** Store the exit code requested through an output channel. @internal */
|
|
31
32
|
function setRequestedExitCode(out, code) {
|
|
32
33
|
requestedExitCodes.set(out, validateExitCode(code));
|
|
33
34
|
}
|
|
35
|
+
/** Read the exit code requested through an output channel. @internal */
|
|
34
36
|
function getRequestedExitCode(out) {
|
|
35
37
|
return requestedExitCodes.get(out);
|
|
36
38
|
}
|
|
39
|
+
/** Clear a previously requested exit code from an output channel. @internal */
|
|
37
40
|
function clearRequestedExitCode(out) {
|
|
38
41
|
requestedExitCodes.delete(out);
|
|
39
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Forced hyperlink decision from `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
45
|
+
* `--no-hyperlinks`/`--hyperlinks` argv flags; `undefined` when unset.
|
|
46
|
+
*
|
|
47
|
+
* Pure over its inputs — callers pass the adapter's `env`/`argv` so the
|
|
48
|
+
* output layer never touches `process` directly.
|
|
49
|
+
*
|
|
50
|
+
* @see https://no-hyperlinks.org/
|
|
51
|
+
*/
|
|
52
|
+
function resolveHyperlinkOverride(env, argv) {
|
|
53
|
+
const separator = argv.indexOf("--");
|
|
54
|
+
const flags = separator === -1 ? argv : argv.slice(0, separator);
|
|
55
|
+
if (env.NO_HYPERLINKS || flags.includes("--no-hyperlinks")) return false;
|
|
56
|
+
if (env.FORCE_HYPERLINKS || flags.includes("--hyperlinks")) return true;
|
|
57
|
+
}
|
|
40
58
|
/** Merge user-supplied options with defaults. */
|
|
41
59
|
function resolveOptions(options) {
|
|
42
60
|
const isTTY = options?.isTTY ?? false;
|
|
@@ -47,7 +65,8 @@ function resolveOptions(options) {
|
|
|
47
65
|
isTTY,
|
|
48
66
|
verbosity: options?.verbosity ?? "normal",
|
|
49
67
|
jsonMode,
|
|
50
|
-
color: options?.color ?? (isTTY && !jsonMode && isColorSupported)
|
|
68
|
+
color: options?.color ?? (isTTY && !jsonMode && isColorSupported),
|
|
69
|
+
isHyperlinkSupported: options?.hyperlinks ?? isTTY
|
|
51
70
|
};
|
|
52
71
|
}
|
|
53
72
|
/**
|
|
@@ -84,12 +103,20 @@ var OutputChannel = class {
|
|
|
84
103
|
* colors are off, so handlers can style unconditionally.
|
|
85
104
|
*/
|
|
86
105
|
color;
|
|
106
|
+
/**
|
|
107
|
+
* Whether OSC 8 hyperlinks should be emitted for this channel.
|
|
108
|
+
*
|
|
109
|
+
* Honors `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
110
|
+
* `--no-hyperlinks`/`--hyperlinks` argv flags, falling back to `isTTY`.
|
|
111
|
+
*/
|
|
112
|
+
isHyperlinkSupported;
|
|
87
113
|
constructor(options) {
|
|
88
114
|
this.options = options;
|
|
89
115
|
this.policy = resolveOutputPolicy(options);
|
|
90
116
|
this.jsonMode = options.jsonMode;
|
|
91
117
|
this.isTTY = options.isTTY;
|
|
92
118
|
this.color = createColors(options.color);
|
|
119
|
+
this.isHyperlinkSupported = options.isHyperlinkSupported;
|
|
93
120
|
bindMethods(this);
|
|
94
121
|
}
|
|
95
122
|
/**
|
|
@@ -439,4 +466,4 @@ function createCaptureOutput(options) {
|
|
|
439
466
|
}), captured.activity), captured];
|
|
440
467
|
}
|
|
441
468
|
//#endregion
|
|
442
|
-
export { CaptureOutputChannel, CaptureProgressHandle, CaptureSpinnerHandle, OutputChannel, clearRequestedExitCode, createCaptureOutput, createOutput, getRequestedExitCode, setRequestedExitCode, writeLine };
|
|
469
|
+
export { CaptureOutputChannel, CaptureProgressHandle, CaptureSpinnerHandle, OutputChannel, clearRequestedExitCode, createCaptureOutput, createOutput, getRequestedExitCode, resolveHyperlinkOverride, setRequestedExitCode, writeLine };
|
|
@@ -2,6 +2,7 @@ import { isValidationError } from "../errors/index.mjs";
|
|
|
2
2
|
import { collectValidationErrors, isNonEmpty, throwAggregatedErrors } from "./errors.mjs";
|
|
3
3
|
import { resolveArgs } from "./args.mjs";
|
|
4
4
|
import { resolveFlags } from "./flags.mjs";
|
|
5
|
+
import { applyStandardValidators } from "./standard.mjs";
|
|
5
6
|
//#region src/core/resolve/index.ts
|
|
6
7
|
/**
|
|
7
8
|
* Resolution chain: CLI -> env -> config -> prompt -> default.
|
|
@@ -74,6 +75,10 @@ async function resolve(schema, parsed, options) {
|
|
|
74
75
|
if (!isValidationError(error)) throw error;
|
|
75
76
|
errors.push(...collectValidationErrors(error));
|
|
76
77
|
}
|
|
78
|
+
const validated = await applyStandardValidators(schema, flags, args);
|
|
79
|
+
flags = validated.flags;
|
|
80
|
+
args = validated.args;
|
|
81
|
+
errors.push(...validated.errors);
|
|
77
82
|
if (isNonEmpty(errors)) throwAggregatedErrors(errors);
|
|
78
83
|
return {
|
|
79
84
|
flags,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ValidationError } from "../errors/index.mjs";
|
|
2
|
+
import { CommandSchema } from "../schema/command.mjs";
|
|
3
|
+
import "../schema/index.mjs";
|
|
4
|
+
//#region src/core/resolve/standard.d.ts
|
|
5
|
+
/** Resolved values after the Standard Schema pass, plus any issues found. */
|
|
6
|
+
interface StandardValidationResult {
|
|
7
|
+
readonly flags: Readonly<Record<string, unknown>>;
|
|
8
|
+
readonly args: Readonly<Record<string, unknown>>;
|
|
9
|
+
readonly errors: readonly ValidationError[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Validate resolved flag and arg values against any attached Standard Schema
|
|
13
|
+
* validators. Values without a validator, or resolved to `undefined`, pass
|
|
14
|
+
* through untouched.
|
|
15
|
+
*
|
|
16
|
+
* @param schema - The command schema carrying per-flag/arg validators.
|
|
17
|
+
* @param flags - Resolved flag values, keyed by flag name.
|
|
18
|
+
* @param args - Resolved arg values, keyed by arg name.
|
|
19
|
+
* @returns The (possibly transformed) values and any constraint violations.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
declare function applyStandardValidators(schema: CommandSchema, flags: Readonly<Record<string, unknown>>, args: Readonly<Record<string, unknown>>): Promise<StandardValidationResult>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { applyStandardValidators };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ValidationError } from "../errors/index.mjs";
|
|
2
|
+
//#region src/core/resolve/standard.ts
|
|
3
|
+
/**
|
|
4
|
+
* Standard Schema v1 validation pass.
|
|
5
|
+
*
|
|
6
|
+
* Runs after CLI/env/config/prompt/default resolution so a validator attached
|
|
7
|
+
* via `flag.custom()` / `arg.custom()` sees the final value regardless of its
|
|
8
|
+
* source. `~standard.validate` may be sync or async; both are awaited here.
|
|
9
|
+
* Issues become `CONSTRAINT_VIOLATED` validation errors; a successful result
|
|
10
|
+
* replaces the value with the validator's (possibly transformed) output.
|
|
11
|
+
*
|
|
12
|
+
* @module dreamcli/core/resolve/standard
|
|
13
|
+
*/
|
|
14
|
+
/** Render an issue path (e.g. `['a', 0]` → `a.0`), or `undefined` when empty. */
|
|
15
|
+
function formatIssuePath(path) {
|
|
16
|
+
if (path === void 0 || path.length === 0) return;
|
|
17
|
+
return path.map((segment) => {
|
|
18
|
+
const key = typeof segment === "object" ? segment.key : segment;
|
|
19
|
+
return typeof key === "symbol" ? key.toString() : String(key);
|
|
20
|
+
}).join(".");
|
|
21
|
+
}
|
|
22
|
+
/** Build a `CONSTRAINT_VIOLATED` message from a validator's issues. */
|
|
23
|
+
function issuesMessage(label, issues) {
|
|
24
|
+
return `${label} failed validation: ${issues.map((issue) => {
|
|
25
|
+
const path = formatIssuePath(issue.path);
|
|
26
|
+
return path === void 0 ? issue.message : `${path}: ${issue.message}`;
|
|
27
|
+
}).join("; ")}`;
|
|
28
|
+
}
|
|
29
|
+
/** Await a validator against a single value, mapping failure to a typed error. */
|
|
30
|
+
async function validateValue(label, value, validator) {
|
|
31
|
+
const result = await validator["~standard"].validate(value);
|
|
32
|
+
if (result.issues !== void 0) return {
|
|
33
|
+
ok: false,
|
|
34
|
+
error: new ValidationError(issuesMessage(label, result.issues), {
|
|
35
|
+
code: "CONSTRAINT_VIOLATED",
|
|
36
|
+
details: {
|
|
37
|
+
value,
|
|
38
|
+
issues: result.issues.map((issue) => issue.message)
|
|
39
|
+
},
|
|
40
|
+
suggest: `Provide a value for ${label} that satisfies its validator`
|
|
41
|
+
})
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
ok: true,
|
|
45
|
+
value: result.value
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Validate resolved flag and arg values against any attached Standard Schema
|
|
50
|
+
* validators. Values without a validator, or resolved to `undefined`, pass
|
|
51
|
+
* through untouched.
|
|
52
|
+
*
|
|
53
|
+
* @param schema - The command schema carrying per-flag/arg validators.
|
|
54
|
+
* @param flags - Resolved flag values, keyed by flag name.
|
|
55
|
+
* @param args - Resolved arg values, keyed by arg name.
|
|
56
|
+
* @returns The (possibly transformed) values and any constraint violations.
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
async function applyStandardValidators(schema, flags, args) {
|
|
60
|
+
const errors = [];
|
|
61
|
+
const nextFlags = { ...flags };
|
|
62
|
+
for (const [name, flagSchema] of Object.entries(schema.flags)) {
|
|
63
|
+
const value = flags[name];
|
|
64
|
+
if (value === void 0) continue;
|
|
65
|
+
const elementValidator = flagSchema.kind === "array" ? flagSchema.elementSchema?.standard : void 0;
|
|
66
|
+
if (elementValidator !== void 0 && Array.isArray(value)) {
|
|
67
|
+
const nextValue = [];
|
|
68
|
+
for (const [index, element] of value.entries()) {
|
|
69
|
+
const result = await validateValue(`--${name}[${index}]`, element, elementValidator);
|
|
70
|
+
if (result.ok) nextValue.push(result.value);
|
|
71
|
+
else {
|
|
72
|
+
nextValue.push(element);
|
|
73
|
+
errors.push(result.error);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
nextFlags[name] = nextValue;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
const validator = flagSchema.standard;
|
|
80
|
+
if (validator === void 0) continue;
|
|
81
|
+
const result = await validateValue(`--${name}`, value, validator);
|
|
82
|
+
if (result.ok) nextFlags[name] = result.value;
|
|
83
|
+
else errors.push(result.error);
|
|
84
|
+
}
|
|
85
|
+
const nextArgs = { ...args };
|
|
86
|
+
for (const entry of schema.args) {
|
|
87
|
+
const validator = entry.schema.standard;
|
|
88
|
+
const value = args[entry.name];
|
|
89
|
+
if (validator === void 0 || value === void 0) continue;
|
|
90
|
+
if (entry.schema.variadic && Array.isArray(value)) {
|
|
91
|
+
const nextValue = [];
|
|
92
|
+
for (const [index, element] of value.entries()) {
|
|
93
|
+
const result = await validateValue(`<${entry.name}>[${index}]`, element, validator);
|
|
94
|
+
if (result.ok) nextValue.push(result.value);
|
|
95
|
+
else {
|
|
96
|
+
nextValue.push(element);
|
|
97
|
+
errors.push(result.error);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
nextArgs[entry.name] = nextValue;
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
const result = await validateValue(`<${entry.name}>`, value, validator);
|
|
104
|
+
if (result.ok) nextArgs[entry.name] = result.value;
|
|
105
|
+
else errors.push(result.error);
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
flags: nextFlags,
|
|
109
|
+
args: nextArgs,
|
|
110
|
+
errors
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
//#endregion
|
|
114
|
+
export { applyStandardValidators };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NumberConstraints } from "./number-constraints.mjs";
|
|
2
|
+
import { InferStandardOutput, StandardSchemaV1 } from "./standard.mjs";
|
|
2
3
|
//#region src/core/schema/arg.d.ts
|
|
3
4
|
/** All arg presence states as a runtime array. */
|
|
4
5
|
declare const ARG_PRESENCES: readonly ["required", "optional", "defaulted"];
|
|
@@ -107,6 +108,15 @@ interface ArgSchema {
|
|
|
107
108
|
readonly numberConstraints: NumberConstraints | undefined;
|
|
108
109
|
/** Custom parse function (only when `kind === 'custom'`). */
|
|
109
110
|
readonly parseFn: ArgParseFn<unknown> | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Standard Schema v1 validator applied to the resolved value.
|
|
113
|
+
*
|
|
114
|
+
* When set, the value from any source (CLI, env, stdin, default) is
|
|
115
|
+
* validated after resolution via `~standard.validate`. Sync and async
|
|
116
|
+
* validators are both awaited; issues surface as a `CONSTRAINT_VIOLATED`
|
|
117
|
+
* {@link ValidationError}. Only meaningful when `kind === 'custom'`.
|
|
118
|
+
*/
|
|
119
|
+
readonly standard: StandardSchemaV1 | undefined;
|
|
110
120
|
/**
|
|
111
121
|
* Deprecation marker.
|
|
112
122
|
*
|
|
@@ -573,6 +583,31 @@ interface ArgFactory {
|
|
|
573
583
|
readonly variadic: false;
|
|
574
584
|
readonly argKind: 'enum';
|
|
575
585
|
}>;
|
|
586
|
+
/**
|
|
587
|
+
* Custom positional argument validated by a Standard Schema v1 validator
|
|
588
|
+
* (zod, valibot, arktype, …). The resolved value from any source is
|
|
589
|
+
* validated after resolution; the arg's value type is the validator's
|
|
590
|
+
* output type.
|
|
591
|
+
*
|
|
592
|
+
* Sync and async validators are both supported. Validation issues surface
|
|
593
|
+
* as a `CONSTRAINT_VIOLATED` error naming the argument.
|
|
594
|
+
*
|
|
595
|
+
* @example
|
|
596
|
+
* ```ts
|
|
597
|
+
* import { z } from 'zod';
|
|
598
|
+
* arg.custom(z.string().uuid())
|
|
599
|
+
* // inferred type: string
|
|
600
|
+
* ```
|
|
601
|
+
*
|
|
602
|
+
* @param schema - A Standard Schema v1 validator.
|
|
603
|
+
* @returns A required custom {@link ArgBuilder} typed to the validator's output.
|
|
604
|
+
*/
|
|
605
|
+
custom<S extends StandardSchemaV1>(schema: S): ArgBuilder<{
|
|
606
|
+
readonly valueType: InferStandardOutput<S>;
|
|
607
|
+
readonly presence: 'required';
|
|
608
|
+
readonly variadic: false;
|
|
609
|
+
readonly argKind: 'custom';
|
|
610
|
+
}>;
|
|
576
611
|
/**
|
|
577
612
|
* Custom-parsed positional argument. Required by default.
|
|
578
613
|
*
|
package/dist/core/schema/arg.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { assertNumberConstraints } from "./number-constraints.mjs";
|
|
2
|
+
import { isStandardSchemaV1 } from "./standard.mjs";
|
|
2
3
|
//#region src/core/schema/arg.ts
|
|
3
4
|
/**
|
|
4
5
|
* Positional argument schema builder with full type inference.
|
|
@@ -45,6 +46,7 @@ function createArgSchema(kind, overrides) {
|
|
|
45
46
|
enumValues: void 0,
|
|
46
47
|
numberConstraints: void 0,
|
|
47
48
|
parseFn: void 0,
|
|
49
|
+
standard: void 0,
|
|
48
50
|
deprecated: void 0,
|
|
49
51
|
...overrides
|
|
50
52
|
};
|
|
@@ -455,8 +457,9 @@ const arg = {
|
|
|
455
457
|
enum(values) {
|
|
456
458
|
return new ArgBuilder(createArgSchema("enum", { enumValues: values }));
|
|
457
459
|
},
|
|
458
|
-
custom(
|
|
459
|
-
return new ArgBuilder(createArgSchema("custom", {
|
|
460
|
+
custom(parseFnOrSchema) {
|
|
461
|
+
if (isStandardSchemaV1(parseFnOrSchema)) return new ArgBuilder(createArgSchema("custom", { standard: parseFnOrSchema }));
|
|
462
|
+
return new ArgBuilder(createArgSchema("custom", { parseFn: parseFnOrSchema }));
|
|
460
463
|
}
|
|
461
464
|
};
|
|
462
465
|
//#endregion
|
|
@@ -169,6 +169,15 @@ interface Out {
|
|
|
169
169
|
* ```
|
|
170
170
|
*/
|
|
171
171
|
readonly color: Colors;
|
|
172
|
+
/**
|
|
173
|
+
* Whether OSC 8 terminal hyperlinks should be emitted.
|
|
174
|
+
*
|
|
175
|
+
* Honors `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
176
|
+
* `--no-hyperlinks`/`--hyperlinks` argv flags, falling back to `isTTY`.
|
|
177
|
+
* Handlers rendering their own `out.color.link(...)` output can gate on
|
|
178
|
+
* this to keep OSC 8 escapes out of piped or opted-out contexts.
|
|
179
|
+
*/
|
|
180
|
+
readonly isHyperlinkSupported: boolean;
|
|
172
181
|
/**
|
|
173
182
|
* Render tabular data.
|
|
174
183
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NumberConstraints } from "./number-constraints.mjs";
|
|
2
|
+
import { InferStandardOutput, StandardSchemaV1 } from "./standard.mjs";
|
|
2
3
|
import { ConfirmPromptConfig, InputPromptConfig, MultiselectPromptConfig, PROMPT_KINDS, PromptConfig, PromptConfigBase, PromptKind, PromptResult, SelectChoice, SelectPromptConfig } from "./prompt.mjs";
|
|
3
4
|
import { StringConstraintViolation, StringConstraints } from "./string-constraints.mjs";
|
|
4
5
|
import { DateFlagOptions, UrlFlagOptions } from "./value-parsers.mjs";
|
|
@@ -109,6 +110,7 @@ type PromptConfigByFlagKind = {
|
|
|
109
110
|
readonly count: never;
|
|
110
111
|
readonly keyValue: never;
|
|
111
112
|
};
|
|
113
|
+
/** Prompt configuration compatible with the kind carried by a {@link FlagConfig}. */
|
|
112
114
|
type AllowedPromptConfig<C extends FlagConfig> = PromptConfigByFlagKind[C['flagKind']];
|
|
113
115
|
/** All flag kind discriminators as a runtime array. */
|
|
114
116
|
declare const FLAG_KINDS: readonly ["string", "number", "boolean", "enum", "array", "custom", "count", "keyValue"];
|
|
@@ -260,6 +262,15 @@ interface FlagSchema {
|
|
|
260
262
|
readonly prompt: PromptConfig | undefined;
|
|
261
263
|
/** Custom parse function (only when `kind === 'custom'`). */
|
|
262
264
|
readonly parseFn: FlagParseFn<unknown> | undefined;
|
|
265
|
+
/**
|
|
266
|
+
* Standard Schema v1 validator applied to the resolved value.
|
|
267
|
+
*
|
|
268
|
+
* When set, the value from any source (CLI, env, config, prompt, default)
|
|
269
|
+
* is validated after resolution via `~standard.validate`. Sync and async
|
|
270
|
+
* validators are both awaited; issues surface as a `CONSTRAINT_VIOLATED`
|
|
271
|
+
* {@link ValidationError}. Only meaningful when `kind === 'custom'`.
|
|
272
|
+
*/
|
|
273
|
+
readonly standard: StandardSchemaV1 | undefined;
|
|
263
274
|
/**
|
|
264
275
|
* Deprecation marker.
|
|
265
276
|
*
|
|
@@ -877,6 +888,31 @@ interface FlagFactory {
|
|
|
877
888
|
readonly flagKind: 'array';
|
|
878
889
|
readonly elementEligible: false;
|
|
879
890
|
}>;
|
|
891
|
+
/**
|
|
892
|
+
* Custom flag validated by a Standard Schema v1 validator (zod, valibot,
|
|
893
|
+
* arktype, …). The resolved value from any source is validated after
|
|
894
|
+
* resolution; the flag's value type is the validator's output type.
|
|
895
|
+
*
|
|
896
|
+
* Sync and async validators are both supported. Validation issues surface
|
|
897
|
+
* as a `CONSTRAINT_VIOLATED` error naming the flag.
|
|
898
|
+
*
|
|
899
|
+
* @example
|
|
900
|
+
* ```ts
|
|
901
|
+
* import { z } from 'zod';
|
|
902
|
+
* flag.custom(z.string().url())
|
|
903
|
+
* // inferred type: string | undefined
|
|
904
|
+
* ```
|
|
905
|
+
*
|
|
906
|
+
* @param schema - A Standard Schema v1 validator.
|
|
907
|
+
* @returns A {@link FlagBuilder} whose value type is the validator's output.
|
|
908
|
+
*/
|
|
909
|
+
custom<S extends StandardSchemaV1>(schema: S): FlagBuilder<{
|
|
910
|
+
readonly valueType: InferStandardOutput<S>;
|
|
911
|
+
readonly presence: 'optional';
|
|
912
|
+
readonly optionalFallback: 'undefined';
|
|
913
|
+
readonly flagKind: 'custom';
|
|
914
|
+
readonly elementEligible: true;
|
|
915
|
+
}>;
|
|
880
916
|
/**
|
|
881
917
|
* Custom-parsed flag. The parse function receives the raw value and must
|
|
882
918
|
* return a value of type `T`. The return type is inferred from `parseFn`.
|
|
@@ -1074,4 +1110,4 @@ interface FlagFactory {
|
|
|
1074
1110
|
*/
|
|
1075
1111
|
declare const flag: FlagFactory;
|
|
1076
1112
|
//#endregion
|
|
1077
|
-
export { type AllowedPromptConfig, type ConfirmPromptConfig, type DateFlagOptions, type DuplicatePolicy, FLAG_KINDS, FLAG_PRESENCES, type FlagAlias, FlagBuilder, type FlagConfig, type FlagFactory, type FlagKind, type FlagNegation, type FlagParseFn, type FlagPresence, type FlagSchema, type FlagSchemaOverrides, type InferFlag, type InferFlags, type InputPromptConfig, type MultiselectPromptConfig, type OptionalFallback, PROMPT_KINDS, type PathChecks, type PathFlagOptions, type PromptConfig, type PromptConfigBase, type PromptKind, type PromptResult, type ResolvedValue, type SelectChoice, type SelectPromptConfig, type StringConstraintViolation, type StringConstraints, type UrlFlagOptions, type WithPresence, createSchema, flag, getFlagAliasNames, getFlagNegatedName, normalizeFlagAlias, normalizeFlagAliases };
|
|
1113
|
+
export { type AllowedPromptConfig, type ConfirmPromptConfig, type DateFlagOptions, type DuplicatePolicy, FLAG_KINDS, FLAG_PRESENCES, type FlagAlias, FlagBuilder, type FlagConfig, type FlagFactory, type FlagKind, type FlagNegation, type FlagParseFn, type FlagPresence, type FlagSchema, type FlagSchemaOverrides, type InferFlag, type InferFlags, type InputPromptConfig, type MultiselectPromptConfig, type OptionalFallback, PROMPT_KINDS, type PathChecks, type PathFlagOptions, type PromptConfig, type PromptConfigBase, type PromptConfigByFlagKind, type PromptKind, type PromptResult, type ResolvedValue, type SelectChoice, type SelectPromptConfig, type StringConstraintViolation, type StringConstraints, type UrlFlagOptions, type WithPresence, type WithoutElementEligibility, createSchema, flag, getFlagAliasNames, getFlagNegatedName, normalizeFlagAlias, normalizeFlagAliases };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { assertNumberConstraints } from "./number-constraints.mjs";
|
|
2
|
+
import { isStandardSchemaV1 } from "./standard.mjs";
|
|
2
3
|
import { assertStringConstraints } from "./string-constraints.mjs";
|
|
3
4
|
import { parseBytesValue, parseDateValue, parseDurationValue, parseUrlValue } from "./value-parsers.mjs";
|
|
4
5
|
//#region src/core/schema/flag.ts
|
|
@@ -112,6 +113,7 @@ function createSchema(kind, overrides) {
|
|
|
112
113
|
valueHint: void 0,
|
|
113
114
|
prompt: void 0,
|
|
114
115
|
parseFn: void 0,
|
|
116
|
+
standard: void 0,
|
|
115
117
|
deprecated: void 0,
|
|
116
118
|
propagate: false,
|
|
117
119
|
negation: void 0,
|
|
@@ -655,8 +657,9 @@ const flag = {
|
|
|
655
657
|
array(element) {
|
|
656
658
|
return new FlagBuilder(createSchema("array", { elementSchema: element.schema }));
|
|
657
659
|
},
|
|
658
|
-
custom(
|
|
659
|
-
return new FlagBuilder(createSchema("custom", {
|
|
660
|
+
custom(parseFnOrSchema) {
|
|
661
|
+
if (isStandardSchemaV1(parseFnOrSchema)) return new FlagBuilder(createSchema("custom", { standard: parseFnOrSchema }));
|
|
662
|
+
return new FlagBuilder(createSchema("custom", { parseFn: parseFnOrSchema }));
|
|
660
663
|
},
|
|
661
664
|
url(options) {
|
|
662
665
|
return new FlagBuilder(createSchema("custom", {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActivityEvent, Fallback, ProgressHandle, ProgressOptions, SpinnerHandle, SpinnerOptions, TableColumn, TableFormat, TableOptions, TableStream } from "./activity.mjs";
|
|
2
2
|
import { NumberConstraintViolation, NumberConstraints, describeNumberConstraintViolation, validateNumberConstraints } from "./number-constraints.mjs";
|
|
3
|
+
import { InferStandardInput, InferStandardOutput, StandardSchemaV1, StandardSchemaV1FailureResult, StandardSchemaV1Issue, StandardSchemaV1Options, StandardSchemaV1PathSegment, StandardSchemaV1Props, StandardSchemaV1Result, StandardSchemaV1SuccessResult, StandardSchemaV1Types } from "./standard.mjs";
|
|
3
4
|
import { ARG_KINDS, ARG_PRESENCES, ArgBuilder, ArgConfig, ArgFactory, ArgKind, ArgParseFn, ArgPresence, ArgSchema, InferArg, InferArgs, ResolvedArgValue, WithArgPresence, WithVariadic, arg, createArgSchema } from "./arg.mjs";
|
|
4
5
|
import { ConfirmPromptConfig, InputPromptConfig, MultiselectPromptConfig, PROMPT_KINDS, PromptConfig, PromptConfigBase, PromptKind, PromptResult, SelectChoice, SelectPromptConfig } from "./prompt.mjs";
|
|
5
6
|
import { StringConstraintViolation, StringConstraints, describeStringConstraintViolation, validateStringConstraints } from "./string-constraints.mjs";
|
|
@@ -8,4 +9,4 @@ import { DuplicatePolicy, FLAG_KINDS, FLAG_PRESENCES, FlagAlias, FlagBuilder, Fl
|
|
|
8
9
|
import { ErasedMiddlewareHandler, Middleware, MiddlewareHandler, MiddlewareParams, middleware } from "./middleware.mjs";
|
|
9
10
|
import { RunOptions, RunResult } from "./run.mjs";
|
|
10
11
|
import { ActionHandler, ActionParams, AnyCommandBuilder, CommandArgEntry, CommandBuilder, CommandConfig, CommandExample, CommandMeta, CommandSchema, DeriveHandler, DeriveParams, ErasedCommand, ErasedDeriveHandler, ErasedInteractiveResolver, InteractiveParams, InteractiveResolver, InteractiveResult, Out, command, group } from "./command.mjs";
|
|
11
|
-
export { ARG_KINDS, ARG_PRESENCES, type ActionHandler, type ActionParams, type ActivityEvent, type AnyCommandBuilder, ArgBuilder, type ArgConfig, type ArgFactory, type ArgKind, type ArgParseFn, type ArgPresence, type ArgSchema, type CommandArgEntry, CommandBuilder, type CommandConfig, type CommandExample, type CommandMeta, type CommandSchema, type ConfirmPromptConfig, type DateFlagOptions, type DeriveHandler, type DeriveParams, type DuplicatePolicy, type ErasedCommand, type ErasedDeriveHandler, type ErasedInteractiveResolver, type ErasedMiddlewareHandler, FLAG_KINDS, FLAG_PRESENCES, type Fallback, type FlagAlias, FlagBuilder, type FlagConfig, type FlagFactory, type FlagKind, type FlagNegation, type FlagParseFn, type FlagPresence, type FlagSchema, type FlagSchemaOverrides, type InferArg, type InferArgs, type InferFlag, type InferFlags, type InputPromptConfig, type InteractiveParams, type InteractiveResolver, type InteractiveResult, type Middleware, type MiddlewareHandler, type MiddlewareParams, type MultiselectPromptConfig, type NumberConstraintViolation, type NumberConstraints, type Out, PROMPT_KINDS, type PathChecks, type PathFlagOptions, type ProgressHandle, type ProgressOptions, type PromptConfig, type PromptConfigBase, type PromptKind, type PromptResult, type ResolvedArgValue, type ResolvedValue, type RunOptions, type RunResult, type SelectChoice, type SelectPromptConfig, type SpinnerHandle, type SpinnerOptions, type StringConstraintViolation, type StringConstraints, type TableColumn, type TableFormat, type TableOptions, type TableStream, type UrlFlagOptions, type WithArgPresence, type WithPresence, type WithVariadic, arg, command, createArgSchema, createSchema, describeNumberConstraintViolation, describeStringConstraintViolation, flag, getFlagNegatedName, group, middleware, validateNumberConstraints, validateStringConstraints };
|
|
12
|
+
export { ARG_KINDS, ARG_PRESENCES, type ActionHandler, type ActionParams, type ActivityEvent, type AnyCommandBuilder, ArgBuilder, type ArgConfig, type ArgFactory, type ArgKind, type ArgParseFn, type ArgPresence, type ArgSchema, type CommandArgEntry, CommandBuilder, type CommandConfig, type CommandExample, type CommandMeta, type CommandSchema, type ConfirmPromptConfig, type DateFlagOptions, type DeriveHandler, type DeriveParams, type DuplicatePolicy, type ErasedCommand, type ErasedDeriveHandler, type ErasedInteractiveResolver, type ErasedMiddlewareHandler, FLAG_KINDS, FLAG_PRESENCES, type Fallback, type FlagAlias, FlagBuilder, type FlagConfig, type FlagFactory, type FlagKind, type FlagNegation, type FlagParseFn, type FlagPresence, type FlagSchema, type FlagSchemaOverrides, type InferArg, type InferArgs, type InferFlag, type InferFlags, type InferStandardInput, type InferStandardOutput, type InputPromptConfig, type InteractiveParams, type InteractiveResolver, type InteractiveResult, type Middleware, type MiddlewareHandler, type MiddlewareParams, type MultiselectPromptConfig, type NumberConstraintViolation, type NumberConstraints, type Out, PROMPT_KINDS, type PathChecks, type PathFlagOptions, type ProgressHandle, type ProgressOptions, type PromptConfig, type PromptConfigBase, type PromptKind, type PromptResult, type ResolvedArgValue, type ResolvedValue, type RunOptions, type RunResult, type SelectChoice, type SelectPromptConfig, type SpinnerHandle, type SpinnerOptions, type StandardSchemaV1, type StandardSchemaV1FailureResult, type StandardSchemaV1Issue, type StandardSchemaV1Options, type StandardSchemaV1PathSegment, type StandardSchemaV1Props, type StandardSchemaV1Result, type StandardSchemaV1SuccessResult, type StandardSchemaV1Types, type StringConstraintViolation, type StringConstraints, type TableColumn, type TableFormat, type TableOptions, type TableStream, type UrlFlagOptions, type WithArgPresence, type WithPresence, type WithVariadic, arg, command, createArgSchema, createSchema, describeNumberConstraintViolation, describeStringConstraintViolation, flag, getFlagNegatedName, group, middleware, validateNumberConstraints, validateStringConstraints };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
//#region src/core/schema/standard.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The Standard Schema v1 interface, vendored as types only.
|
|
4
|
+
*
|
|
5
|
+
* Mirrors the specification at https://standardschema.dev so validators from
|
|
6
|
+
* zod, valibot, arktype, and any other conforming library can be passed to
|
|
7
|
+
* `flag.custom()` / `arg.custom()` without adding a runtime dependency.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
/** A schema that conforms to the Standard Schema v1 specification. */
|
|
12
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
13
|
+
/** The Standard Schema properties, namespaced under a well-known key. */
|
|
14
|
+
readonly '~standard': StandardSchemaV1.Props<Input, Output>;
|
|
15
|
+
}
|
|
16
|
+
/** Types copied from the Standard Schema v1 specification. */
|
|
17
|
+
declare namespace StandardSchemaV1 {
|
|
18
|
+
/** The properties exposed under a validator's `~standard` key. */
|
|
19
|
+
interface Props<Input = unknown, Output = Input> {
|
|
20
|
+
/** The version number of the specification. */
|
|
21
|
+
readonly version: 1;
|
|
22
|
+
/** The vendor name of the schema library. */
|
|
23
|
+
readonly vendor: string;
|
|
24
|
+
/** Validate an unknown value, returning its output or the issues found. */
|
|
25
|
+
readonly validate: (value: unknown, options?: Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
26
|
+
/** Inferred input and output types, present only at the type level. */
|
|
27
|
+
readonly types?: Types<Input, Output> | undefined;
|
|
28
|
+
}
|
|
29
|
+
/** Optional parameters passed to a validator. */
|
|
30
|
+
interface Options {
|
|
31
|
+
/** Explicit support for vendor-specific validation parameters. */
|
|
32
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
33
|
+
}
|
|
34
|
+
/** The result of validating a value: either its output or a list of issues. */
|
|
35
|
+
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
36
|
+
/** A successful validation carrying the parsed output value. */
|
|
37
|
+
interface SuccessResult<Output> {
|
|
38
|
+
/** The validated (and possibly transformed) value. */
|
|
39
|
+
readonly value: Output;
|
|
40
|
+
/** Absent on success. */
|
|
41
|
+
readonly issues?: undefined;
|
|
42
|
+
}
|
|
43
|
+
/** A failed validation carrying validation issues. */
|
|
44
|
+
interface FailureResult {
|
|
45
|
+
/** The issues that caused validation to fail. */
|
|
46
|
+
readonly issues: ReadonlyArray<Issue>;
|
|
47
|
+
}
|
|
48
|
+
/** A single validation issue. */
|
|
49
|
+
interface Issue {
|
|
50
|
+
/** The human-readable error message. */
|
|
51
|
+
readonly message: string;
|
|
52
|
+
/** The path to the offending value, when the validator reports one. */
|
|
53
|
+
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** One segment of an issue path. */
|
|
56
|
+
interface PathSegment {
|
|
57
|
+
/** The key of this path segment. */
|
|
58
|
+
readonly key: PropertyKey;
|
|
59
|
+
}
|
|
60
|
+
/** The type-level input and output carried by a validator. */
|
|
61
|
+
interface Types<Input = unknown, Output = Input> {
|
|
62
|
+
/** The input type accepted by the validator. */
|
|
63
|
+
readonly input: Input;
|
|
64
|
+
/** The output type produced by the validator. */
|
|
65
|
+
readonly output: Output;
|
|
66
|
+
}
|
|
67
|
+
/** Infer the input type of a Standard Schema validator. */
|
|
68
|
+
type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'];
|
|
69
|
+
/** Infer the output type of a Standard Schema validator. */
|
|
70
|
+
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
|
|
71
|
+
}
|
|
72
|
+
/** Backward-compatible flat alias for {@link StandardSchemaV1.Props}. */
|
|
73
|
+
type StandardSchemaV1Props<Input = unknown, Output = Input> = StandardSchemaV1.Props<Input, Output>;
|
|
74
|
+
/** Flat alias for {@link StandardSchemaV1.Options}. */
|
|
75
|
+
type StandardSchemaV1Options = StandardSchemaV1.Options;
|
|
76
|
+
/** Flat alias for {@link StandardSchemaV1.Result}. */
|
|
77
|
+
type StandardSchemaV1Result<Output> = StandardSchemaV1.Result<Output>;
|
|
78
|
+
/** Flat alias for {@link StandardSchemaV1.SuccessResult}. */
|
|
79
|
+
type StandardSchemaV1SuccessResult<Output> = StandardSchemaV1.SuccessResult<Output>;
|
|
80
|
+
/** Flat alias for {@link StandardSchemaV1.FailureResult}. */
|
|
81
|
+
type StandardSchemaV1FailureResult = StandardSchemaV1.FailureResult;
|
|
82
|
+
/** Flat alias for {@link StandardSchemaV1.Issue}. */
|
|
83
|
+
type StandardSchemaV1Issue = StandardSchemaV1.Issue;
|
|
84
|
+
/** Flat alias for {@link StandardSchemaV1.PathSegment}. */
|
|
85
|
+
type StandardSchemaV1PathSegment = StandardSchemaV1.PathSegment;
|
|
86
|
+
/** Backward-compatible flat alias for {@link StandardSchemaV1.Types}. */
|
|
87
|
+
type StandardSchemaV1Types<Input = unknown, Output = Input> = StandardSchemaV1.Types<Input, Output>;
|
|
88
|
+
/** Flat alias for {@link StandardSchemaV1.InferInput}. */
|
|
89
|
+
type InferStandardInput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferInput<Schema>;
|
|
90
|
+
/** Flat alias for {@link StandardSchemaV1.InferOutput}. */
|
|
91
|
+
type InferStandardOutput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferOutput<Schema>;
|
|
92
|
+
/**
|
|
93
|
+
* Detect a Standard Schema validator without assuming validators are plain
|
|
94
|
+
* objects. Some conforming libraries expose callable schema values.
|
|
95
|
+
*
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
declare function isStandardSchemaV1(value: unknown): value is StandardSchemaV1;
|
|
99
|
+
//#endregion
|
|
100
|
+
export { InferStandardInput, InferStandardOutput, StandardSchemaV1, StandardSchemaV1FailureResult, StandardSchemaV1Issue, StandardSchemaV1Options, StandardSchemaV1PathSegment, StandardSchemaV1Props, StandardSchemaV1Result, StandardSchemaV1SuccessResult, StandardSchemaV1Types, isStandardSchemaV1 };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/core/schema/standard.ts
|
|
2
|
+
/**
|
|
3
|
+
* Detect a Standard Schema validator without assuming validators are plain
|
|
4
|
+
* objects. Some conforming libraries expose callable schema values.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
function isStandardSchemaV1(value) {
|
|
9
|
+
if (value === null || typeof value !== "object" && typeof value !== "function") return false;
|
|
10
|
+
if (!("~standard" in value)) return false;
|
|
11
|
+
const properties = value["~standard"];
|
|
12
|
+
return properties !== null && typeof properties === "object" && "version" in properties && properties.version === 1 && "validate" in properties && typeof properties.validate === "function";
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { isStandardSchemaV1 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActivityEvent, Fallback, ProgressHandle, ProgressOptions, SpinnerHandle, SpinnerOptions, TableColumn, TableFormat, TableOptions, TableStream } from "./core/schema/activity.mjs";
|
|
2
2
|
import { NumberConstraintViolation, NumberConstraints } from "./core/schema/number-constraints.mjs";
|
|
3
|
+
import { InferStandardInput, InferStandardOutput, StandardSchemaV1, StandardSchemaV1FailureResult, StandardSchemaV1Issue, StandardSchemaV1Options, StandardSchemaV1PathSegment, StandardSchemaV1Props, StandardSchemaV1Result, StandardSchemaV1SuccessResult, StandardSchemaV1Types } from "./core/schema/standard.mjs";
|
|
3
4
|
import { ArgBuilder, ArgConfig, ArgFactory, ArgKind, ArgParseFn, ArgPresence, ArgSchema, InferArg, InferArgs, ResolvedArgValue, WithArgPresence, WithVariadic, arg, createArgSchema } from "./core/schema/arg.mjs";
|
|
4
5
|
import { ConfirmPromptConfig, InputPromptConfig, MultiselectPromptConfig, PromptConfig, PromptConfigBase, PromptKind, PromptResult, SelectChoice, SelectPromptConfig } from "./core/schema/prompt.mjs";
|
|
5
6
|
import { StringConstraintViolation, StringConstraints } from "./core/schema/string-constraints.mjs";
|
|
@@ -30,7 +31,7 @@ import { generatePowerShellCompletion } from "./core/completion/shells/powershel
|
|
|
30
31
|
import { generateZshCompletion } from "./core/completion/shells/zsh.mjs";
|
|
31
32
|
import { SHELLS, Shell, generateCompletion } from "./core/completion/index.mjs";
|
|
32
33
|
import { ConfigAdapter, ConfigDiscoveryOptions, ConfigDiscoveryResult, ConfigFound, ConfigNotFound, FormatLoader, buildConfigSearchPaths, configFormat, discoverConfig } from "./core/config/index.mjs";
|
|
33
|
-
import { CLIBuilder, CLIOptions, CLIRunOptions, CLISchema, ConfigSettings, DefaultCommandOptions, InferNameOption, ManifestPresetSettings, ManifestSettings, PackageJsonSettings, ResolvedManifestSettings, cli } from "./core/cli/index.mjs";
|
|
34
|
+
import { CLIBuilder, CLIOptions, CLIRunOptions, CLISchema, ConfigSettings, DefaultCommandOptions, InferNameOption, ManifestPresetSettings, ManifestSettings, PackageJsonSettings, ResolvedManifestSettings, cli, isMainModule } from "./core/cli/index.mjs";
|
|
34
35
|
import { JsonSchemaOptions, definitionMetaSchema, generateCommandSchema, generateInputSchema, generateSchema } from "./core/json-schema/index.mjs";
|
|
35
36
|
import { Colors } from "ansispeck";
|
|
36
|
-
export { type ActionHandler, type ActionParams, type ActivityEvent, type AnyCommandBuilder, ArgBuilder, type ArgConfig, type ArgFactory, type ArgKind, type ArgParseFn, type ArgPresence, type ArgSchema, type BeforeParseParams, CLIBuilder, CLIError, type CLIErrorJSON, type CLIErrorOptions, type CLIOptions, type CLIPlugin, type CLIPluginHooks, type CLIRunOptions, type CLISchema, type Colors, type CommandArgEntry, CommandBuilder, type CommandConfig, type CommandExample, type CommandMeta, type CommandSchema, type CompletionOptions, type ConfigAdapter, type ConfigDiscoveryOptions, type ConfigDiscoveryResult, type ConfigFound, type ConfigNotFound, type ConfigSettings, type ConfirmPromptConfig, type DateFlagOptions, type DefaultCommandOptions, type DeprecationWarning, type DeriveHandler, type DeriveParams, type DuplicatePolicy, type ErrorCode, type Fallback, FlagBuilder, type FlagConfig, type FlagFactory, type FlagKind, type FlagNegation, type FlagParseFn, type FlagPresence, type FlagSchema, type FormatLoader, type HelpLinks, type HelpOptions, type HelpTheme, type HelpThemeFactory, type InferArg, type InferArgs, type InferFlag, type InferFlags, type InferNameOption, type InputPromptConfig, type InteractiveParams, type InteractiveResolver, type InteractiveResult, type JsonSchemaOptions, type ManifestDiscoveryOptions, type ManifestPresetSettings, type ManifestSettings, type Middleware, type MiddlewareHandler, type MiddlewareParams, type MultiselectPromptConfig, type NumberConstraintViolation, type NumberConstraints, type Out, type OutputOptions, type PackageJsonAdapter, type PackageJsonData, type PackageJsonSettings, type PackageRepository, type PackageRepositoryUrlOptions, ParseError, type ParseErrorCode, type ParseErrorOptions, type ParseOptions, type ParseResult, type PathChecks, type PathFlagOptions, type PluginCommandContext, type ProgressHandle, type ProgressOptions, type PromptConfig, type PromptConfigBase, type PromptEngine, type PromptKind, type PromptResult, type ReadFn, type ResolveOptions, type ResolveResult, type ResolvedArgValue, type ResolvedCommandParams, type ResolvedManifestSettings, type ResolvedMultiselectPromptConfig, type ResolvedPromptConfig, type ResolvedSelectPromptConfig, type ResolvedValue, type RunResult, SHELLS, type SelectChoice, type SelectPromptConfig, type Shell, type SpinnerHandle, type SpinnerOptions, type StringConstraintViolation, type StringConstraints, type TableColumn, type TableFormat, type TableOptions, type TableStream, type Token, type UrlFlagOptions, ValidationError, type ValidationErrorCode, type ValidationErrorOptions, type Verbosity, type WithArgPresence, type WithPresence, type WithVariadic, type WriteFn, arg, buildConfigSearchPaths, cli, command, configFormat, createArgSchema, createOutput, createSchema, createTerminalPrompter, definitionMetaSchema, discoverConfig, discoverManifest, discoverPackageJson, flag, formatHelp, generateBashCompletion, generateCommandSchema, generateCompletion, generateFishCompletion, generateInputSchema, generatePowerShellCompletion, generateSchema, generateZshCompletion, getFlagNegatedName, group, inferCliName, isCLIError, isParseError, isValidationError, middleware, osc8, packageRepositoryUrl, parse, plugin, resolve, resolvePromptConfig, tokenize, visibleWidth };
|
|
37
|
+
export { type ActionHandler, type ActionParams, type ActivityEvent, type AnyCommandBuilder, ArgBuilder, type ArgConfig, type ArgFactory, type ArgKind, type ArgParseFn, type ArgPresence, type ArgSchema, type BeforeParseParams, CLIBuilder, CLIError, type CLIErrorJSON, type CLIErrorOptions, type CLIOptions, type CLIPlugin, type CLIPluginHooks, type CLIRunOptions, type CLISchema, type Colors, type CommandArgEntry, CommandBuilder, type CommandConfig, type CommandExample, type CommandMeta, type CommandSchema, type CompletionOptions, type ConfigAdapter, type ConfigDiscoveryOptions, type ConfigDiscoveryResult, type ConfigFound, type ConfigNotFound, type ConfigSettings, type ConfirmPromptConfig, type DateFlagOptions, type DefaultCommandOptions, type DeprecationWarning, type DeriveHandler, type DeriveParams, type DuplicatePolicy, type ErrorCode, type Fallback, FlagBuilder, type FlagConfig, type FlagFactory, type FlagKind, type FlagNegation, type FlagParseFn, type FlagPresence, type FlagSchema, type FormatLoader, type HelpLinks, type HelpOptions, type HelpTheme, type HelpThemeFactory, type InferArg, type InferArgs, type InferFlag, type InferFlags, type InferNameOption, type InferStandardInput, type InferStandardOutput, type InputPromptConfig, type InteractiveParams, type InteractiveResolver, type InteractiveResult, type JsonSchemaOptions, type ManifestDiscoveryOptions, type ManifestPresetSettings, type ManifestSettings, type Middleware, type MiddlewareHandler, type MiddlewareParams, type MultiselectPromptConfig, type NumberConstraintViolation, type NumberConstraints, type Out, type OutputOptions, type PackageJsonAdapter, type PackageJsonData, type PackageJsonSettings, type PackageRepository, type PackageRepositoryUrlOptions, ParseError, type ParseErrorCode, type ParseErrorOptions, type ParseOptions, type ParseResult, type PathChecks, type PathFlagOptions, type PluginCommandContext, type ProgressHandle, type ProgressOptions, type PromptConfig, type PromptConfigBase, type PromptEngine, type PromptKind, type PromptResult, type ReadFn, type ResolveOptions, type ResolveResult, type ResolvedArgValue, type ResolvedCommandParams, type ResolvedManifestSettings, type ResolvedMultiselectPromptConfig, type ResolvedPromptConfig, type ResolvedSelectPromptConfig, type ResolvedValue, type RunResult, SHELLS, type SelectChoice, type SelectPromptConfig, type Shell, type SpinnerHandle, type SpinnerOptions, type StandardSchemaV1, type StandardSchemaV1FailureResult, type StandardSchemaV1Issue, type StandardSchemaV1Options, type StandardSchemaV1PathSegment, type StandardSchemaV1Props, type StandardSchemaV1Result, type StandardSchemaV1SuccessResult, type StandardSchemaV1Types, type StringConstraintViolation, type StringConstraints, type TableColumn, type TableFormat, type TableOptions, type TableStream, type Token, type UrlFlagOptions, ValidationError, type ValidationErrorCode, type ValidationErrorOptions, type Verbosity, type WithArgPresence, type WithPresence, type WithVariadic, type WriteFn, arg, buildConfigSearchPaths, cli, command, configFormat, createArgSchema, createOutput, createSchema, createTerminalPrompter, definitionMetaSchema, discoverConfig, discoverManifest, discoverPackageJson, flag, formatHelp, generateBashCompletion, generateCommandSchema, generateCompletion, generateFishCompletion, generateInputSchema, generatePowerShellCompletion, generateSchema, generateZshCompletion, getFlagNegatedName, group, inferCliName, isCLIError, isMainModule, isParseError, isValidationError, middleware, osc8, packageRepositoryUrl, parse, plugin, resolve, resolvePromptConfig, tokenize, visibleWidth };
|