@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
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,50 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.0.0-rc.12] - 2026-07-20
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- **`out.isHyperlinkSupported`** — resolved OSC 8 hyperlink gate on the output
|
|
15
|
+
channel. Honors `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
16
|
+
`--no-hyperlinks`/`--hyperlinks` flags, falling back to `isTTY`. Consumers
|
|
17
|
+
rendering their own `out.color.link(...)` output can gate on it to keep OSC 8
|
|
18
|
+
escapes out of piped or opted-out contexts.
|
|
19
|
+
- **Standard Schema v1 validation** — `flag.custom(schema)` and
|
|
20
|
+
`arg.custom(schema)` accept any conforming validator (including callable,
|
|
21
|
+
sync, and async schemas) with inferred output types and no runtime
|
|
22
|
+
dependency. Validation runs after source resolution, so argv, env, config,
|
|
23
|
+
prompt, stdin, and default values behave consistently; array flags and
|
|
24
|
+
variadic args validate each element.
|
|
25
|
+
- **`isMainModule(import.meta)`**: Compatibility helper for consumers whose
|
|
26
|
+
ambient `ImportMeta` interface omits `main`. Projects with normal Node, Bun,
|
|
27
|
+
or Deno runtime typings can keep using the conventional
|
|
28
|
+
`if (import.meta.main)` guard directly.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- **`.manifest({ from: import.meta })` compatibility form**: Anchored manifest
|
|
33
|
+
discovery now also accepts the calling module's complete `import.meta`
|
|
34
|
+
object and extracts its URL internally. The conventional
|
|
35
|
+
`{ from: import.meta.url }` form remains supported and preferred when runtime
|
|
36
|
+
typings expose `url`. Together with `isMainModule(import.meta)`, the new forms
|
|
37
|
+
avoid global `ImportMeta` augmentation, allowing consumers with an empty
|
|
38
|
+
ambient `ImportMeta` interface to pass both TypeScript/Deno checks and JSR
|
|
39
|
+
publish validation.
|
|
40
|
+
|
|
41
|
+
### Removed
|
|
42
|
+
|
|
43
|
+
- **Internal schema DSL** — the private template-literal parser, validator, and
|
|
44
|
+
JSON Schema converter were replaced by direct definition-schema objects,
|
|
45
|
+
removing roughly 1,500 lines without changing the generated schema.
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- **`NO_HYPERLINKS` ignored in the help header** — root-help header hyperlinks
|
|
50
|
+
gated on raw TTY status, so `NO_HYPERLINKS=1` (and `--no-hyperlinks`) still
|
|
51
|
+
emitted OSC 8 links in the header. The gate now consults
|
|
52
|
+
`out.isHyperlinkSupported`, which respects the standard hyperlink overrides.
|
|
53
|
+
|
|
10
54
|
## [3.0.0-rc.11] - 2026-07-15
|
|
11
55
|
|
|
12
56
|
### Fixed
|
|
@@ -1220,7 +1264,8 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
1220
1264
|
- MIT License.
|
|
1221
1265
|
- Markdownlint configuration.
|
|
1222
1266
|
|
|
1223
|
-
[Unreleased]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.
|
|
1267
|
+
[Unreleased]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.12...HEAD
|
|
1268
|
+
[3.0.0-rc.12]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.11...v3.0.0-rc.12
|
|
1224
1269
|
[3.0.0-rc.11]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.10...v3.0.0-rc.11
|
|
1225
1270
|
[3.0.0-rc.10]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.9...v3.0.0-rc.10
|
|
1226
1271
|
[3.0.0-rc.9]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.8...v3.0.0-rc.9
|
|
@@ -514,7 +514,9 @@ declare class CLIBuilder {
|
|
|
514
514
|
* `{ scope: 'keep' }` to keep a leading `@scope/` (stripped by default).
|
|
515
515
|
* - `from`: anchor discovery to a file/URL/path instead of `cwd`. Pass
|
|
516
516
|
* `import.meta.url` for installable CLIs that must report THEIR OWN
|
|
517
|
-
* version.
|
|
517
|
+
* version. If the consumer's ambient `ImportMeta` omits `url`, pass
|
|
518
|
+
* `import.meta` instead. Also accepts string paths, `file:` URL strings,
|
|
519
|
+
* or `URL` instances.
|
|
518
520
|
*
|
|
519
521
|
* @example
|
|
520
522
|
* ```ts
|
|
@@ -729,8 +731,13 @@ type InferNameOption = boolean | {
|
|
|
729
731
|
interface ManifestSettings {
|
|
730
732
|
/** Infer the CLI name from `bin` keys or `name`. @defaultValue `false` */
|
|
731
733
|
readonly inferName?: InferNameOption;
|
|
732
|
-
/**
|
|
733
|
-
|
|
734
|
+
/**
|
|
735
|
+
* Anchor discovery to a file/URL/path instead of `cwd`. Normally, pass
|
|
736
|
+
* `import.meta.url`. Pass `import.meta` whole as a compatibility form when a
|
|
737
|
+
* project `tsconfig.json` `lib` override drops the runtime's ambient
|
|
738
|
+
* `ImportMeta` extras and direct `.url` access does not type-check.
|
|
739
|
+
*/
|
|
740
|
+
readonly from?: string | URL | ImportMeta;
|
|
734
741
|
/**
|
|
735
742
|
* Candidate manifest filenames in priority order — NOT npm's `files` publish
|
|
736
743
|
* globs. Discovery probes each name per directory and takes the first that
|
|
@@ -802,5 +809,23 @@ interface CLIOptions {
|
|
|
802
809
|
declare function cli(name: string, options?: Omit<CLIOptions, 'name'>): CLIBuilder;
|
|
803
810
|
/** Create a new CLI program builder from an options object. */
|
|
804
811
|
declare function cli(options: CLIOptions): CLIBuilder;
|
|
812
|
+
/**
|
|
813
|
+
* Report whether the calling module is the process entrypoint, cross-runtime.
|
|
814
|
+
*
|
|
815
|
+
* Node, Bun, and Deno set `import.meta.main` on the module invoked directly;
|
|
816
|
+
* projects with the runtime's ambient types can read that property directly.
|
|
817
|
+
* This helper is a compatibility form for projects whose `tsconfig.json` `lib`
|
|
818
|
+
* override drops those `ImportMeta` extras: passing `import.meta` whole avoids
|
|
819
|
+
* a direct `.main` access without requiring global augmentation.
|
|
820
|
+
*
|
|
821
|
+
* @param meta - The calling module's `import.meta`.
|
|
822
|
+
* @returns `true` when the module was run as the entrypoint.
|
|
823
|
+
*
|
|
824
|
+
* @example
|
|
825
|
+
* ```ts
|
|
826
|
+
* if (isMainModule(import.meta)) cli('mycli').command(deploy).run();
|
|
827
|
+
* ```
|
|
828
|
+
*/
|
|
829
|
+
declare function isMainModule(meta: ImportMeta): boolean;
|
|
805
830
|
//#endregion
|
|
806
|
-
export { type BeforeParseParams, CLIBuilder, type CLIOptions, type CLIPlugin, type CLIPluginHooks, type CLIRunOptions, type CLISchema, type CompletionsFlagConfig, type ConfigSettings, type DefaultCommandOptions, type HelpConfig, type HelpLinks, type InferNameOption, type ManifestPresetSettings, type ManifestSettings, type PackageJsonSettings, type PluginCommandContext, type ResolvedCommandParams, type ResolvedManifestSettings, cli, formatRootHelp, plugin };
|
|
831
|
+
export { type BeforeParseParams, CLIBuilder, type CLIOptions, type CLIPlugin, type CLIPluginHooks, type CLIRunOptions, type CLISchema, type CompletionsFlagConfig, type ConfigSettings, type DefaultCommandOptions, type HelpConfig, type HelpLinks, type InferNameOption, type ManifestPresetSettings, type ManifestSettings, type PackageJsonSettings, type PluginCommandContext, type ResolvedCommandParams, type ResolvedManifestSettings, cli, formatRootHelp, isMainModule, plugin };
|
package/dist/core/cli/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { includesBeforeSeparator } from "../parse/index.mjs";
|
|
|
6
6
|
import { SHELLS, detectShell, generateCompletion, normalizeShell } from "../completion/index.mjs";
|
|
7
7
|
import { formatHelp } from "../help/index.mjs";
|
|
8
8
|
import { generateCommandSchema, generateSchema } from "../json-schema/index.mjs";
|
|
9
|
-
import { clearRequestedExitCode, createCaptureOutput, createOutput } from "../output/index.mjs";
|
|
9
|
+
import { clearRequestedExitCode, createCaptureOutput, createOutput, resolveHyperlinkOverride } from "../output/index.mjs";
|
|
10
10
|
import { buildRunResult, executeCommand } from "../execution/index.mjs";
|
|
11
11
|
import { runCommand } from "../testkit/index.mjs";
|
|
12
12
|
import { stripTrailing } from "../../strings.mjs";
|
|
@@ -100,6 +100,16 @@ function eraseCommand(cmd) {
|
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
102
|
/**
|
|
103
|
+
* Conditional-spread wrapper for the output channel's `hyperlinks` option:
|
|
104
|
+
* omit the key entirely when there is no override so `exactOptionalPropertyTypes`
|
|
105
|
+
* stays happy and the channel falls back to `isTTY`.
|
|
106
|
+
*
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
function hyperlinksOption(override) {
|
|
110
|
+
return override !== void 0 ? { hyperlinks: override } : {};
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
103
113
|
* Build {@linkcode RunOptions} from {@linkcode CLIRunOptions}, conditionally spreading each
|
|
104
114
|
* field to satisfy `exactOptionalPropertyTypes`.
|
|
105
115
|
*
|
|
@@ -538,7 +548,8 @@ var CLIBuilder = class CLIBuilder {
|
|
|
538
548
|
const captureOptions = {
|
|
539
549
|
...options?.verbosity !== void 0 ? { verbosity: options.verbosity } : {},
|
|
540
550
|
...jsonMode ? { jsonMode } : {},
|
|
541
|
-
...options?.isTTY !== void 0 ? { isTTY: options.isTTY } : {}
|
|
551
|
+
...options?.isTTY !== void 0 ? { isTTY: options.isTTY } : {},
|
|
552
|
+
...hyperlinksOption(resolveHyperlinkOverride(options?.env ?? {}, argv))
|
|
542
553
|
};
|
|
543
554
|
let out;
|
|
544
555
|
let captured;
|
|
@@ -555,7 +566,7 @@ var CLIBuilder = class CLIBuilder {
|
|
|
555
566
|
...this.schema.helpConfig,
|
|
556
567
|
...options?.help,
|
|
557
568
|
binName: options?.help?.binName ?? this.schema.name,
|
|
558
|
-
hyperlinks: options?.help?.hyperlinks ?? this.schema.helpConfig?.hyperlinks ?? out.
|
|
569
|
+
hyperlinks: options?.help?.hyperlinks ?? this.schema.helpConfig?.hyperlinks ?? out.isHyperlinkSupported,
|
|
559
570
|
colors: options?.help?.colors ?? out.color
|
|
560
571
|
};
|
|
561
572
|
const flagSettings = options?.flags ?? this.schema.flagSettings;
|
|
@@ -713,7 +724,8 @@ var CLIBuilder = class CLIBuilder {
|
|
|
713
724
|
stderr: adapter.stderr,
|
|
714
725
|
jsonMode: preflight.inputs.jsonMode,
|
|
715
726
|
isTTY: preflight.inputs.isTTY,
|
|
716
|
-
...preflight.inputs.verbosity !== "normal" ? { verbosity: preflight.inputs.verbosity } : {}
|
|
727
|
+
...preflight.inputs.verbosity !== "normal" ? { verbosity: preflight.inputs.verbosity } : {},
|
|
728
|
+
...hyperlinksOption(resolveHyperlinkOverride(adapter.env, adapter.argv))
|
|
717
729
|
})
|
|
718
730
|
};
|
|
719
731
|
const result = await effectiveBuilder.execute(preflight.filteredArgv, executeOptions);
|
|
@@ -872,8 +884,8 @@ function buildManifestSchema(schema, input, defaultFiles, pinFiles) {
|
|
|
872
884
|
}
|
|
873
885
|
/**
|
|
874
886
|
* Coerce a {@link ResolvedManifestSettings.from | `manifest.from`} input
|
|
875
|
-
* (string path, `file:` URL string,
|
|
876
|
-
* filesystem path string. `undefined` passes through unchanged.
|
|
887
|
+
* (string path, `file:` URL string, {@link URL} instance, or `import.meta`) to
|
|
888
|
+
* a plain filesystem path string. `undefined` passes through unchanged.
|
|
877
889
|
*
|
|
878
890
|
* Runtime-agnostic by design — relies only on the `URL` global (available in
|
|
879
891
|
* every JS runtime) rather than `node:url`, keeping core free of Node
|
|
@@ -883,10 +895,11 @@ function buildManifestSchema(schema, input, defaultFiles, pinFiles) {
|
|
|
883
895
|
*/
|
|
884
896
|
function normalizeFromSetting(from) {
|
|
885
897
|
if (from === void 0) return void 0;
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
898
|
+
const source = typeof from === "object" && !(from instanceof URL) ? from.url : from;
|
|
899
|
+
if (source instanceof URL) {
|
|
900
|
+
if (source.protocol !== "file:") return source.href;
|
|
901
|
+
} else if (!source.startsWith("file:")) return source;
|
|
902
|
+
const decoded = decodeURIComponent(new URL(source).pathname);
|
|
890
903
|
if (/^\/[A-Za-z]:/.test(decoded)) return decoded.slice(1).replace(/\//g, "\\");
|
|
891
904
|
return decoded;
|
|
892
905
|
}
|
|
@@ -941,5 +954,25 @@ function cli(nameOrOptions, extraOptions) {
|
|
|
941
954
|
plugins: []
|
|
942
955
|
});
|
|
943
956
|
}
|
|
957
|
+
/**
|
|
958
|
+
* Report whether the calling module is the process entrypoint, cross-runtime.
|
|
959
|
+
*
|
|
960
|
+
* Node, Bun, and Deno set `import.meta.main` on the module invoked directly;
|
|
961
|
+
* projects with the runtime's ambient types can read that property directly.
|
|
962
|
+
* This helper is a compatibility form for projects whose `tsconfig.json` `lib`
|
|
963
|
+
* override drops those `ImportMeta` extras: passing `import.meta` whole avoids
|
|
964
|
+
* a direct `.main` access without requiring global augmentation.
|
|
965
|
+
*
|
|
966
|
+
* @param meta - The calling module's `import.meta`.
|
|
967
|
+
* @returns `true` when the module was run as the entrypoint.
|
|
968
|
+
*
|
|
969
|
+
* @example
|
|
970
|
+
* ```ts
|
|
971
|
+
* if (isMainModule(import.meta)) cli('mycli').command(deploy).run();
|
|
972
|
+
* ```
|
|
973
|
+
*/
|
|
974
|
+
function isMainModule(meta) {
|
|
975
|
+
return meta.main === true;
|
|
976
|
+
}
|
|
944
977
|
//#endregion
|
|
945
|
-
export { CLIBuilder, cli, formatRootHelp, plugin };
|
|
978
|
+
export { CLIBuilder, cli, formatRootHelp, isMainModule, plugin };
|
|
@@ -174,6 +174,7 @@ interface PackageRepositoryUrlOptions {
|
|
|
174
174
|
declare function packageRepositoryUrl(pkg: PackageJsonData, options: PackageRepositoryUrlOptions & {
|
|
175
175
|
readonly require: true;
|
|
176
176
|
}): string;
|
|
177
|
+
/** Resolve a package repository URL, returning `undefined` for absent or invalid locators. */
|
|
177
178
|
declare function packageRepositoryUrl(pkg: PackageJsonData, options?: PackageRepositoryUrlOptions): string | undefined;
|
|
178
179
|
/**
|
|
179
180
|
* Infer the CLI binary name from manifest data.
|
|
@@ -64,7 +64,9 @@ interface HelpOptions {
|
|
|
64
64
|
}
|
|
65
65
|
/** Formatted flag entry for the flags table. @internal */
|
|
66
66
|
interface FlagEntry {
|
|
67
|
+
/** Preformatted flag names and value hint for the left table column. */
|
|
67
68
|
readonly left: string;
|
|
69
|
+
/** Preformatted help text for the description table column. */
|
|
68
70
|
readonly description: string;
|
|
69
71
|
}
|
|
70
72
|
/**
|
|
@@ -98,11 +98,6 @@ declare function generateInputSchema(schema: CLISchema | CommandSchema, options?
|
|
|
98
98
|
/**
|
|
99
99
|
* JSON Schema (draft 2020-12) that validates the output of {@link generateSchema}.
|
|
100
100
|
*
|
|
101
|
-
* Each `$defs` entry is defined once as a schema DSL string — the DSL
|
|
102
|
-
* parser produces a runtime AST, and {@link nodeToJsonSchema} converts
|
|
103
|
-
* that AST to a JSON Schema fragment. No probe fixtures, no override
|
|
104
|
-
* maps, no manually maintained type definitions.
|
|
105
|
-
*
|
|
106
101
|
* Hosted at {@link DEFINITION_SCHEMA_URL} for `$schema` resolution. Also
|
|
107
102
|
* exported so tooling can validate definition documents without a network
|
|
108
103
|
* round-trip.
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { getFlagAliasNames } from "../schema/flag.mjs";
|
|
2
|
-
import { parseSchema } from "../schema-dsl/runtime.mjs";
|
|
3
|
-
import { nodeToJsonSchema } from "../schema-dsl/to-json-schema.mjs";
|
|
4
2
|
import { definitionMetaSchemaDescriptions } from "./meta-descriptions.generated.mjs";
|
|
5
3
|
//#region src/core/json-schema/index.ts
|
|
6
4
|
/**
|
|
@@ -113,7 +111,22 @@ function serializeFlag(schema, opts) {
|
|
|
113
111
|
if (schema.configPath !== void 0) result.configPath = schema.configPath;
|
|
114
112
|
if (schema.description !== void 0) result.description = schema.description;
|
|
115
113
|
if (schema.enumValues !== void 0) result.enumValues = [...schema.enumValues];
|
|
114
|
+
if (schema.numberConstraints !== void 0) result.numberConstraints = { ...schema.numberConstraints };
|
|
115
|
+
if (schema.stringConstraints !== void 0) result.stringConstraints = {
|
|
116
|
+
...schema.stringConstraints,
|
|
117
|
+
...schema.stringConstraints.pattern !== void 0 ? { pattern: {
|
|
118
|
+
source: schema.stringConstraints.pattern.source,
|
|
119
|
+
flags: schema.stringConstraints.pattern.flags
|
|
120
|
+
} } : {}
|
|
121
|
+
};
|
|
116
122
|
if (schema.elementSchema !== void 0) result.elementSchema = serializeFlag(schema.elementSchema, opts);
|
|
123
|
+
if (schema.separator !== void 0) result.separator = schema.separator;
|
|
124
|
+
if (schema.unique) result.unique = true;
|
|
125
|
+
if (schema.pathChecks !== void 0) result.pathChecks = {
|
|
126
|
+
mustExist: schema.pathChecks.mustExist,
|
|
127
|
+
...schema.pathChecks.type !== void 0 ? { type: schema.pathChecks.type } : {}
|
|
128
|
+
};
|
|
129
|
+
if (schema.valueHint !== void 0) result.valueHint = schema.valueHint;
|
|
117
130
|
if (opts.includePrompts && schema.prompt !== void 0) result.prompt = serializePrompt(schema.prompt);
|
|
118
131
|
if (schema.deprecated !== void 0) result.deprecated = schema.deprecated;
|
|
119
132
|
if (schema.propagate) result.propagate = true;
|
|
@@ -448,10 +461,6 @@ function isPlainJsonObject(value) {
|
|
|
448
461
|
const proto = Object.getPrototypeOf(value);
|
|
449
462
|
return proto === Object.prototype || proto === null;
|
|
450
463
|
}
|
|
451
|
-
/** Convert a DSL string to a JSON Schema object definition. */
|
|
452
|
-
function def(source) {
|
|
453
|
-
return nodeToJsonSchema(parseSchema(source));
|
|
454
|
-
}
|
|
455
464
|
function withDefinitionDescriptions(schema, descriptions) {
|
|
456
465
|
const propertiesValue = schema.properties;
|
|
457
466
|
const describedProperties = typeof propertiesValue === "object" && propertiesValue !== null && isPlainJsonObject(propertiesValue) && descriptions.properties !== void 0 ? Object.fromEntries(Object.entries(propertiesValue).map(([name, propertySchema]) => {
|
|
@@ -481,11 +490,6 @@ function withDefinitionMetaSchemaDescriptions(schema, descriptions) {
|
|
|
481
490
|
/**
|
|
482
491
|
* JSON Schema (draft 2020-12) that validates the output of {@link generateSchema}.
|
|
483
492
|
*
|
|
484
|
-
* Each `$defs` entry is defined once as a schema DSL string — the DSL
|
|
485
|
-
* parser produces a runtime AST, and {@link nodeToJsonSchema} converts
|
|
486
|
-
* that AST to a JSON Schema fragment. No probe fixtures, no override
|
|
487
|
-
* maps, no manually maintained type definitions.
|
|
488
|
-
*
|
|
489
493
|
* Hosted at {@link DEFINITION_SCHEMA_URL} for `$schema` resolution. Also
|
|
490
494
|
* exported so tooling can validate definition documents without a network
|
|
491
495
|
* round-trip.
|
|
@@ -505,74 +509,234 @@ const definitionMetaSchema = withDefinitionMetaSchemaDescriptions({
|
|
|
505
509
|
$id: DEFINITION_SCHEMA_URL,
|
|
506
510
|
title: "@kjanat/dreamcli definition schema",
|
|
507
511
|
description: "Describes the structure of a CLI built with dreamcli — commands, flags, args, types, constraints, env bindings, and prompts.",
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
type: "object",
|
|
513
|
+
additionalProperties: false,
|
|
514
|
+
properties: {
|
|
515
|
+
$schema: { const: DEFINITION_SCHEMA_URL },
|
|
516
|
+
name: { type: "string" },
|
|
517
|
+
version: { type: "string" },
|
|
518
|
+
description: { type: "string" },
|
|
519
|
+
defaultCommand: { $ref: "#/$defs/command" },
|
|
520
|
+
commands: {
|
|
521
|
+
type: "array",
|
|
522
|
+
items: { $ref: "#/$defs/command" }
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
required: [
|
|
526
|
+
"$schema",
|
|
527
|
+
"name",
|
|
528
|
+
"commands"
|
|
529
|
+
],
|
|
516
530
|
$defs: {
|
|
517
|
-
command:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
531
|
+
command: {
|
|
532
|
+
type: "object",
|
|
533
|
+
additionalProperties: false,
|
|
534
|
+
properties: {
|
|
535
|
+
name: { type: "string" },
|
|
536
|
+
description: { type: "string" },
|
|
537
|
+
aliases: {
|
|
538
|
+
type: "array",
|
|
539
|
+
items: { type: "string" }
|
|
540
|
+
},
|
|
541
|
+
hidden: { const: true },
|
|
542
|
+
examples: {
|
|
543
|
+
type: "array",
|
|
544
|
+
items: { $ref: "#/$defs/example" }
|
|
545
|
+
},
|
|
546
|
+
flags: {
|
|
547
|
+
type: "object",
|
|
548
|
+
additionalProperties: { $ref: "#/$defs/flag" }
|
|
549
|
+
},
|
|
550
|
+
args: {
|
|
551
|
+
type: "array",
|
|
552
|
+
items: { $ref: "#/$defs/arg" }
|
|
553
|
+
},
|
|
554
|
+
commands: {
|
|
555
|
+
type: "array",
|
|
556
|
+
items: { $ref: "#/$defs/command" }
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
required: [
|
|
560
|
+
"name",
|
|
561
|
+
"flags",
|
|
562
|
+
"args",
|
|
563
|
+
"commands"
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
flag: {
|
|
567
|
+
type: "object",
|
|
568
|
+
additionalProperties: false,
|
|
569
|
+
properties: {
|
|
570
|
+
kind: { enum: [
|
|
571
|
+
"string",
|
|
572
|
+
"number",
|
|
573
|
+
"boolean",
|
|
574
|
+
"enum",
|
|
575
|
+
"array",
|
|
576
|
+
"custom",
|
|
577
|
+
"count",
|
|
578
|
+
"keyValue"
|
|
579
|
+
] },
|
|
580
|
+
presence: { enum: [
|
|
581
|
+
"optional",
|
|
582
|
+
"required",
|
|
583
|
+
"defaulted"
|
|
584
|
+
] },
|
|
585
|
+
defaultValue: {},
|
|
586
|
+
aliases: {
|
|
587
|
+
type: "array",
|
|
588
|
+
items: { type: "string" }
|
|
589
|
+
},
|
|
590
|
+
envVar: { type: "string" },
|
|
591
|
+
configPath: { type: "string" },
|
|
592
|
+
description: { type: "string" },
|
|
593
|
+
enumValues: {
|
|
594
|
+
type: "array",
|
|
595
|
+
items: { type: "string" }
|
|
596
|
+
},
|
|
597
|
+
numberConstraints: {
|
|
598
|
+
type: "object",
|
|
599
|
+
additionalProperties: false,
|
|
600
|
+
properties: {
|
|
601
|
+
min: { type: "number" },
|
|
602
|
+
max: { type: "number" },
|
|
603
|
+
int: { type: "boolean" },
|
|
604
|
+
finite: { type: "boolean" }
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
stringConstraints: {
|
|
608
|
+
type: "object",
|
|
609
|
+
additionalProperties: false,
|
|
610
|
+
properties: {
|
|
611
|
+
nonEmpty: { type: "boolean" },
|
|
612
|
+
minLength: {
|
|
613
|
+
type: "integer",
|
|
614
|
+
minimum: 0
|
|
615
|
+
},
|
|
616
|
+
maxLength: {
|
|
617
|
+
type: "integer",
|
|
618
|
+
minimum: 0
|
|
619
|
+
},
|
|
620
|
+
pattern: {
|
|
621
|
+
type: "object",
|
|
622
|
+
additionalProperties: false,
|
|
623
|
+
properties: {
|
|
624
|
+
source: { type: "string" },
|
|
625
|
+
flags: { type: "string" }
|
|
626
|
+
},
|
|
627
|
+
required: ["source", "flags"]
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
elementSchema: { $ref: "#/$defs/flag" },
|
|
632
|
+
separator: {
|
|
633
|
+
type: "string",
|
|
634
|
+
minLength: 1
|
|
635
|
+
},
|
|
636
|
+
unique: { type: "boolean" },
|
|
637
|
+
pathChecks: {
|
|
638
|
+
type: "object",
|
|
639
|
+
additionalProperties: false,
|
|
640
|
+
properties: {
|
|
641
|
+
mustExist: { type: "boolean" },
|
|
642
|
+
type: { enum: ["file", "directory"] }
|
|
643
|
+
},
|
|
644
|
+
required: ["mustExist"]
|
|
645
|
+
},
|
|
646
|
+
valueHint: { type: "string" },
|
|
647
|
+
prompt: { $ref: "#/$defs/prompt" },
|
|
648
|
+
deprecated: { oneOf: [{ type: "string" }, { const: true }] },
|
|
649
|
+
propagate: { const: true },
|
|
650
|
+
negation: { $ref: "#/$defs/negation" },
|
|
651
|
+
duplicates: { enum: [
|
|
652
|
+
"last",
|
|
653
|
+
"first",
|
|
654
|
+
"error"
|
|
655
|
+
] }
|
|
656
|
+
},
|
|
657
|
+
required: ["kind", "presence"]
|
|
658
|
+
},
|
|
659
|
+
negation: {
|
|
660
|
+
type: "object",
|
|
661
|
+
additionalProperties: false,
|
|
662
|
+
properties: {
|
|
663
|
+
alias: { type: "string" },
|
|
664
|
+
hidden: { const: true }
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
arg: {
|
|
668
|
+
type: "object",
|
|
669
|
+
additionalProperties: false,
|
|
670
|
+
properties: {
|
|
671
|
+
name: { type: "string" },
|
|
672
|
+
kind: { enum: [
|
|
673
|
+
"string",
|
|
674
|
+
"number",
|
|
675
|
+
"enum",
|
|
676
|
+
"custom"
|
|
677
|
+
] },
|
|
678
|
+
presence: { enum: [
|
|
679
|
+
"required",
|
|
680
|
+
"optional",
|
|
681
|
+
"defaulted"
|
|
682
|
+
] },
|
|
683
|
+
variadic: { const: true },
|
|
684
|
+
stdinMode: { const: true },
|
|
685
|
+
defaultValue: {},
|
|
686
|
+
description: { type: "string" },
|
|
687
|
+
envVar: { type: "string" },
|
|
688
|
+
enumValues: {
|
|
689
|
+
type: "array",
|
|
690
|
+
items: { type: "string" }
|
|
691
|
+
},
|
|
692
|
+
deprecated: { oneOf: [{ type: "string" }, { const: true }] }
|
|
693
|
+
},
|
|
694
|
+
required: [
|
|
695
|
+
"name",
|
|
696
|
+
"kind",
|
|
697
|
+
"presence"
|
|
698
|
+
]
|
|
699
|
+
},
|
|
700
|
+
prompt: {
|
|
701
|
+
type: "object",
|
|
702
|
+
additionalProperties: false,
|
|
703
|
+
properties: {
|
|
704
|
+
kind: { enum: [
|
|
705
|
+
"confirm",
|
|
706
|
+
"input",
|
|
707
|
+
"select",
|
|
708
|
+
"multiselect"
|
|
709
|
+
] },
|
|
710
|
+
message: { type: "string" },
|
|
711
|
+
placeholder: { type: "string" },
|
|
712
|
+
choices: {
|
|
713
|
+
type: "array",
|
|
714
|
+
items: { $ref: "#/$defs/choice" }
|
|
715
|
+
},
|
|
716
|
+
min: { type: "integer" },
|
|
717
|
+
max: { type: "integer" }
|
|
718
|
+
},
|
|
719
|
+
required: ["kind", "message"]
|
|
720
|
+
},
|
|
721
|
+
choice: {
|
|
722
|
+
type: "object",
|
|
723
|
+
additionalProperties: false,
|
|
724
|
+
properties: {
|
|
725
|
+
value: { type: "string" },
|
|
726
|
+
label: { type: "string" },
|
|
727
|
+
description: { type: "string" }
|
|
728
|
+
},
|
|
729
|
+
required: ["value"]
|
|
730
|
+
},
|
|
731
|
+
example: {
|
|
732
|
+
type: "object",
|
|
733
|
+
additionalProperties: false,
|
|
734
|
+
properties: {
|
|
735
|
+
command: { type: "string" },
|
|
736
|
+
description: { type: "string" }
|
|
737
|
+
},
|
|
738
|
+
required: ["command"]
|
|
739
|
+
}
|
|
576
740
|
}
|
|
577
741
|
}, definitionMetaSchemaDescriptions);
|
|
578
742
|
//#endregion
|