@kjanat/dreamcli 4.0.0-rc.2 → 4.0.0-rc.3
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 +510 -1847
- package/dist/core/cli/builtins.d.mts +74 -4
- package/dist/core/cli/compiled.d.mts +39 -2
- package/dist/core/cli/dispatch.d.mts +81 -4
- package/dist/core/cli/help-links.d.mts +13 -1
- package/dist/core/cli/index.d.mts +77 -12
- package/dist/core/cli/index.mjs +9 -3
- package/dist/core/cli/planner.d.mts +86 -8
- package/dist/core/cli/reserved-flags.d.mts +19 -1
- package/dist/core/cli/root-help.d.mts +53 -1
- package/dist/core/cli/root-help.mjs +1 -1
- package/dist/core/cli/root-output-flags.d.mts +74 -1
- package/dist/core/cli/root-surface.d.mts +64 -1
- package/dist/core/cli/runtime-preflight.d.mts +213 -1
- package/dist/core/completion/index.d.mts +2 -2
- package/dist/core/completion/shells/bash.d.mts +1 -0
- package/dist/core/completion/shells/bash.mjs +4 -1
- package/dist/core/completion/shells/fish.d.mts +1 -0
- package/dist/core/completion/shells/fish.mjs +2 -1
- package/dist/core/completion/shells/powershell.d.mts +1 -0
- package/dist/core/completion/shells/powershell.mjs +2 -1
- package/dist/core/completion/shells/shared.d.mts +118 -3
- package/dist/core/completion/shells/shared.mjs +1 -1
- package/dist/core/completion/shells/zsh.d.mts +1 -0
- package/dist/core/completion/shells/zsh.mjs +6 -2
- package/dist/core/config/index.d.mts +1 -1
- package/dist/core/config/package-json.d.mts +1 -1
- package/dist/core/errors/index.d.mts +17 -18
- package/dist/core/execution/index.d.mts +61 -1
- package/dist/core/help/ansi.d.mts +11 -0
- package/dist/core/help/index.d.mts +42 -3
- package/dist/core/help/index.mjs +14 -10
- package/dist/core/help/theme.d.mts +39 -1
- package/dist/core/help/theme.mjs +24 -1
- package/dist/core/json-schema/index.d.mts +11 -11
- package/dist/core/json-schema/index.mjs +7 -6
- package/dist/core/output/activity.d.mts +193 -1
- package/dist/core/output/bind.d.mts +37 -1
- package/dist/core/output/contracts.d.mts +5 -4
- package/dist/core/output/display-value.d.mts +19 -1
- package/dist/core/output/index.d.mts +191 -7
- package/dist/core/output/index.mjs +6 -4
- package/dist/core/output/renderers.d.mts +45 -1
- package/dist/core/parse/index.d.mts +4 -4
- package/dist/core/parse/occurrences.d.mts +9 -8
- package/dist/core/prompt/index.d.mts +3 -3
- package/dist/core/read-flags/index.d.mts +1 -1
- package/dist/core/resolve/coerce.d.mts +4 -4
- package/dist/core/resolve/config.d.mts +10 -1
- package/dist/core/resolve/contracts.d.mts +9 -8
- package/dist/core/resolve/flags.d.mts +28 -1
- package/dist/core/resolve/path-checks.d.mts +4 -3
- package/dist/core/resolve/redaction.d.mts +1 -0
- package/dist/core/resolve/stages.d.mts +7 -6
- package/dist/core/resolve/standard.d.mts +26 -1
- package/dist/core/schema/activity.d.mts +16 -16
- package/dist/core/schema/arg.d.mts +76 -66
- package/dist/core/schema/brand.d.mts +1 -1
- package/dist/core/schema/cardinality.d.mts +18 -17
- package/dist/core/schema/command.d.mts +55 -9
- package/dist/core/schema/flag.d.mts +98 -90
- package/dist/core/schema/index.d.mts +1 -1
- package/dist/core/schema/middleware.d.mts +4 -1
- package/dist/core/schema/number-constraints.d.mts +5 -5
- package/dist/core/schema/prompt.d.mts +4 -4
- package/dist/core/schema/provenance.d.mts +11 -11
- package/dist/core/schema/run.d.mts +58 -8
- package/dist/core/schema/source.d.mts +13 -12
- package/dist/core/schema/standard.d.mts +31 -24
- package/dist/core/schema/stdin.d.mts +12 -2
- package/dist/core/schema/string-constraints.d.mts +4 -4
- package/dist/core/schema/value-parsers.d.mts +3 -3
- package/dist/core/schema/value.d.mts +15 -14
- package/dist/core/testkit/index.d.mts +10 -3
- package/dist/index.d.mts +6 -6
- package/dist/runtime/adapter.d.mts +3 -3
- package/dist/runtime/deno.d.mts +3 -3
- package/dist/runtime/detect.d.mts +2 -2
- package/dist/runtime/node.d.mts +3 -3
- package/dist/runtime/paths.d.mts +31 -1
- package/dist/strings.d.mts +16 -1
- package/dist/version.d.mts +16 -4
- package/dist/version.mjs +2 -2
- package/package.json +11 -8
- package/skills/cli-creation/SKILL.md +1 -1
- package/examples/gh/node_modules/typescript/LICENSE +0 -55
- package/examples/gh/node_modules/typescript/NOTICE.txt +0 -436
- package/examples/gh/node_modules/typescript/README.md +0 -49
- package/examples/gh/node_modules/typescript/bin/tsc +0 -2
- package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts +0 -529
- package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/async/api.js +0 -1657
- package/examples/gh/node_modules/typescript/dist/api/async/api.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts +0 -39
- package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/async/client.js +0 -211
- package/examples/gh/node_modules/typescript/dist/api/async/client.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts +0 -310
- package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/async/types.js +0 -2
- package/examples/gh/node_modules/typescript/dist/api/async/types.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts +0 -109
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js +0 -2
- package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/fs.d.ts +0 -23
- package/examples/gh/node_modules/typescript/dist/api/fs.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/fs.js +0 -109
- package/examples/gh/node_modules/typescript/dist/api/fs.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts +0 -15
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts +0 -5
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js +0 -74
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.js +0 -287
- package/examples/gh/node_modules/typescript/dist/api/node/encoder.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts +0 -32
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js +0 -213
- package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts +0 -76
- package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts +0 -182
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js +0 -835
- package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +0 -62
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js +0 -122
- package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/node.js +0 -298
- package/examples/gh/node_modules/typescript/dist/api/node/node.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts +0 -29
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts +0 -4
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js +0 -241
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.js +0 -30
- package/examples/gh/node_modules/typescript/dist/api/node/protocol.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts +0 -6
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js +0 -61
- package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/options.d.ts +0 -32
- package/examples/gh/node_modules/typescript/dist/api/options.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/options.js +0 -11
- package/examples/gh/node_modules/typescript/dist/api/options.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/path.d.ts +0 -110
- package/examples/gh/node_modules/typescript/dist/api/path.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/path.js +0 -508
- package/examples/gh/node_modules/typescript/dist/api/path.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/proto.d.ts +0 -239
- package/examples/gh/node_modules/typescript/dist/api/proto.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/proto.js +0 -37
- package/examples/gh/node_modules/typescript/dist/api/proto.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts +0 -79
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js +0 -169
- package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts +0 -529
- package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sync/api.js +0 -1665
- package/examples/gh/node_modules/typescript/dist/api/sync/api.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts +0 -30
- package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sync/client.js +0 -124
- package/examples/gh/node_modules/typescript/dist/api/sync/client.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts +0 -310
- package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/sync/types.js +0 -2
- package/examples/gh/node_modules/typescript/dist/api/sync/types.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts +0 -114
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.js +0 -508
- package/examples/gh/node_modules/typescript/dist/api/syncChannel.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/timing.d.ts +0 -175
- package/examples/gh/node_modules/typescript/dist/api/timing.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/api/timing.js +0 -149
- package/examples/gh/node_modules/typescript/dist/api/timing.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts +0 -100
- package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts +0 -1161
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js +0 -4
- package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/ast.js +0 -7
- package/examples/gh/node_modules/typescript/dist/ast/ast.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts +0 -19
- package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/astnav.js +0 -596
- package/examples/gh/node_modules/typescript/dist/ast/astnav.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts +0 -16
- package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/clone.js +0 -104
- package/examples/gh/node_modules/typescript/dist/ast/clone.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts +0 -520
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js +0 -3057
- package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/index.d.ts +0 -20
- package/examples/gh/node_modules/typescript/dist/ast/index.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/index.js +0 -20
- package/examples/gh/node_modules/typescript/dist/ast/index.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/is.d.ts +0 -35
- package/examples/gh/node_modules/typescript/dist/ast/is.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts +0 -329
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.js +0 -1103
- package/examples/gh/node_modules/typescript/dist/ast/is.generated.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/is.js +0 -233
- package/examples/gh/node_modules/typescript/dist/ast/is.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts +0 -11
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js +0 -202
- package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts +0 -97
- package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/scanner.js +0 -2230
- package/examples/gh/node_modules/typescript/dist/ast/scanner.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts +0 -17
- package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/utils.js +0 -67
- package/examples/gh/node_modules/typescript/dist/ast/utils.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts +0 -14
- package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts +0 -50
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js +0 -978
- package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/ast/visitor.js +0 -47
- package/examples/gh/node_modules/typescript/dist/ast/visitor.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +0 -129
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js +0 -132
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js +0 -130
- package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +0 -5
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +0 -6
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js +0 -6
- package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +0 -28
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js +0 -30
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js +0 -30
- package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +0 -7
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +0 -12
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js +0 -14
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js +0 -14
- package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +0 -23
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js +0 -25
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js +0 -25
- package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js +0 -11
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js +0 -11
- package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +0 -5
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js +0 -6
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js +0 -6
- package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +0 -42
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js +0 -44
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js +0 -44
- package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +0 -7
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +0 -17
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js +0 -19
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js +0 -19
- package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +0 -11
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js +0 -11
- package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +0 -6
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js +0 -8
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js +0 -8
- package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +0 -36
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +0 -38
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js +0 -38
- package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +0 -44
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js +0 -46
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js +0 -46
- package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +0 -50
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js +0 -52
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js +0 -52
- package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +0 -16
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +0 -18
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js +0 -18
- package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +0 -13
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +0 -14
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js +0 -14
- package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +0 -11
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js +0 -12
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js +0 -12
- package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +0 -17
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js +0 -18
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js +0 -18
- package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +0 -15
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js +0 -17
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js +0 -17
- package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +0 -5
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js +0 -7
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js +0 -7
- package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +0 -71
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js +0 -73
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js +0 -73
- package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +0 -389
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js +0 -391
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js +0 -391
- package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +0 -30
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js +0 -32
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js +0 -32
- package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +0 -76
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js +0 -78
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js +0 -78
- package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts +0 -2
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +0 -7
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js +0 -9
- package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js.map +0 -1
- package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts +0 -23
- package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts.map +0 -1
- package/examples/gh/node_modules/typescript/dist/internal/utils.js +0 -25
- package/examples/gh/node_modules/typescript/dist/internal/utils.js.map +0 -1
- package/examples/gh/node_modules/typescript/lib/getExePath.d.ts +0 -2
- package/examples/gh/node_modules/typescript/lib/getExePath.js +0 -70
- package/examples/gh/node_modules/typescript/lib/tsc.js +0 -28
- package/examples/gh/node_modules/typescript/lib/version.cjs +0 -3
- package/examples/gh/node_modules/typescript/lib/version.d.cts +0 -2
- package/examples/gh/node_modules/typescript/package.json +0 -87
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +0 -11
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/README.md +0 -54
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +0 -83
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +0 -22
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +0 -210
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +0 -14
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +0 -87
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +0 -132
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +0 -367
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +0 -1271
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +0 -16
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +0 -70
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +0 -39
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +0 -135
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +0 -7
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +0 -34
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -55
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +0 -412
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +0 -155
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +0 -246
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +0 -157
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +0 -436
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +0 -23
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +0 -74
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -77
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +0 -58
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +0 -289
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +0 -12
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +0 -163
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/package.json +0 -54
- package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +0 -5
|
@@ -1 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
import { ProgressHandle, ProgressOptions, SpinnerHandle } from "../schema/activity.mjs";
|
|
2
|
+
import { ActivityPolicy, OutputStream } from "./contracts.mjs";
|
|
3
|
+
import { WriteFn } from "./writer.mjs";
|
|
4
|
+
//#region src/core/output/renderers.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Paired write functions for the two standard output streams.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
interface OutputWriters {
|
|
11
|
+
/** Write function targeting standard output. */
|
|
12
|
+
readonly stdout: WriteFn;
|
|
13
|
+
/** Write function targeting standard error. */
|
|
14
|
+
readonly stderr: WriteFn;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Spinner handle paired with its optional teardown function.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
interface SpinnerRenderResult {
|
|
22
|
+
/** The spinner handle exposed to command handlers. */
|
|
23
|
+
readonly handle: SpinnerHandle;
|
|
24
|
+
/** Defined only when the mode requires cleanup (TTY or static); `undefined` for noop. */
|
|
25
|
+
readonly cleanup: (() => void) | undefined;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Progress handle paired with its optional teardown function.
|
|
29
|
+
*
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
interface ProgressRenderResult {
|
|
33
|
+
/** The progress handle exposed to command handlers. */
|
|
34
|
+
readonly handle: ProgressHandle;
|
|
35
|
+
/** Defined only when the mode requires cleanup (TTY or static); `undefined` for noop. */
|
|
36
|
+
readonly cleanup: (() => void) | undefined;
|
|
37
|
+
}
|
|
38
|
+
/** Select the concrete {@linkcode WriteFn} for a given stream label. @internal */
|
|
39
|
+
declare function resolveWriterForStream(writers: OutputWriters, stream: OutputStream): WriteFn;
|
|
40
|
+
/** Create a spinner handle matching the resolved {@linkcode ActivityPolicy} mode. @internal */
|
|
41
|
+
declare function createSpinnerHandleFromPolicy(policy: ActivityPolicy, text: string, stderr: WriteFn): SpinnerRenderResult;
|
|
42
|
+
/** Create a progress handle matching the resolved {@linkcode ActivityPolicy} mode. @internal */
|
|
43
|
+
declare function createProgressHandleFromPolicy(policy: ActivityPolicy, options: ProgressOptions, stderr: WriteFn): ProgressRenderResult;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { type OutputWriters, type ProgressRenderResult, type SpinnerRenderResult, createProgressHandleFromPolicy, createSpinnerHandleFromPolicy, resolveWriterForStream };
|
|
@@ -9,17 +9,17 @@ import "../schema/index.mjs";
|
|
|
9
9
|
* interprets them against a command schema.
|
|
10
10
|
*/
|
|
11
11
|
type Token = {
|
|
12
|
-
readonly kind:
|
|
12
|
+
readonly kind: 'long-flag';
|
|
13
13
|
readonly name: string;
|
|
14
14
|
readonly value: string | undefined;
|
|
15
15
|
} | {
|
|
16
|
-
readonly kind:
|
|
16
|
+
readonly kind: 'short-flags';
|
|
17
17
|
readonly chars: string;
|
|
18
18
|
} | {
|
|
19
|
-
readonly kind:
|
|
19
|
+
readonly kind: 'positional';
|
|
20
20
|
readonly value: string;
|
|
21
21
|
} | {
|
|
22
|
-
readonly kind:
|
|
22
|
+
readonly kind: 'separator';
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
25
|
* Tokenize raw argv into structured tokens.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Cardinality } from "../schema/cardinality.mjs";
|
|
1
2
|
import { STDIN_SENTINEL } from "../schema/source.mjs";
|
|
2
3
|
//#region src/core/parse/occurrences.d.ts
|
|
3
4
|
/**
|
|
@@ -11,20 +12,20 @@ import { STDIN_SENTINEL } from "../schema/source.mjs";
|
|
|
11
12
|
* - `'aggregated'`: a value a caller aggregated before the resolver saw it
|
|
12
13
|
*/
|
|
13
14
|
type Occurrence = {
|
|
14
|
-
readonly kind:
|
|
15
|
+
readonly kind: 'value';
|
|
15
16
|
readonly value: unknown;
|
|
16
17
|
} | {
|
|
17
|
-
readonly kind:
|
|
18
|
+
readonly kind: 'entry';
|
|
18
19
|
readonly key: string;
|
|
19
20
|
readonly value: unknown;
|
|
20
21
|
} | {
|
|
21
|
-
readonly kind:
|
|
22
|
+
readonly kind: 'stdin';
|
|
22
23
|
} | {
|
|
23
|
-
readonly kind:
|
|
24
|
+
readonly kind: 'negated';
|
|
24
25
|
} | {
|
|
25
|
-
readonly kind:
|
|
26
|
+
readonly kind: 'increment';
|
|
26
27
|
} | {
|
|
27
|
-
readonly kind:
|
|
28
|
+
readonly kind: 'aggregated';
|
|
28
29
|
readonly value: unknown;
|
|
29
30
|
};
|
|
30
31
|
/** The sentinel occurrence, shared by every `-` position. */
|
|
@@ -65,9 +66,9 @@ declare function projectOccurrences(cardinality: Cardinality, occurrences: reado
|
|
|
65
66
|
* @returns The occurrences behind that value.
|
|
66
67
|
*/
|
|
67
68
|
declare function liftOccurrences(cardinality: Extract<Cardinality, {
|
|
68
|
-
kind:
|
|
69
|
+
kind: 'many';
|
|
69
70
|
} | {
|
|
70
|
-
kind:
|
|
71
|
+
kind: 'entries';
|
|
71
72
|
}>, value: unknown, readsOnDash: boolean): readonly Occurrence[];
|
|
72
73
|
/**
|
|
73
74
|
* The aggregate a caller supplied ready-made.
|
|
@@ -10,7 +10,7 @@ import "../output/index.mjs";
|
|
|
10
10
|
*/
|
|
11
11
|
interface ResolvedSelectPromptConfig {
|
|
12
12
|
/** Discriminant — single-choice selection prompt. */
|
|
13
|
-
readonly kind:
|
|
13
|
+
readonly kind: 'select';
|
|
14
14
|
/** User-facing question text. */
|
|
15
15
|
readonly message: string;
|
|
16
16
|
/** Non-empty list of selectable options (populated from flag enum values when omitted). */
|
|
@@ -24,7 +24,7 @@ interface ResolvedSelectPromptConfig {
|
|
|
24
24
|
*/
|
|
25
25
|
interface ResolvedMultiselectPromptConfig {
|
|
26
26
|
/** Discriminant — multiple-choice selection prompt. */
|
|
27
|
-
readonly kind:
|
|
27
|
+
readonly kind: 'multiselect';
|
|
28
28
|
/** User-facing question text. */
|
|
29
29
|
readonly message: string;
|
|
30
30
|
/** Non-empty list of selectable options (populated from flag enum values when omitted). */
|
|
@@ -132,7 +132,7 @@ interface TestPrompterOptions {
|
|
|
132
132
|
* - `'cancel'` — returns `{ answered: false }`, simulating the
|
|
133
133
|
* user cancelling all subsequent prompts.
|
|
134
134
|
*/
|
|
135
|
-
readonly onExhausted?:
|
|
135
|
+
readonly onExhausted?: 'throw' | 'cancel';
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* Create a prompt engine that returns pre-configured answers.
|
|
@@ -59,7 +59,7 @@ interface ReadFlagsOptions<F extends FlagMap = FlagMap> extends ResolveOptions {
|
|
|
59
59
|
* token.
|
|
60
60
|
* @defaultValue `'on'`
|
|
61
61
|
*/
|
|
62
|
-
readonly help?:
|
|
62
|
+
readonly help?: 'on' | 'off';
|
|
63
63
|
/**
|
|
64
64
|
* Receiver for notices produced by `.deprecated()` flags.
|
|
65
65
|
* @defaultValue `undefined`, which drops the notices
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ValidationError } from "../errors/index.mjs";
|
|
1
2
|
import { FlagSchema } from "../schema/flag.mjs";
|
|
2
3
|
import { ArgSchema } from "../schema/arg.mjs";
|
|
3
|
-
import { ValidationError } from "../errors/index.mjs";
|
|
4
4
|
import "../schema/index.mjs";
|
|
5
5
|
import { DecodedSourceBinding, StdinSourceBinding } from "../schema/source.mjs";
|
|
6
6
|
//#region src/core/resolve/coerce.d.ts
|
|
@@ -36,14 +36,14 @@ declare function coerceValue(flagName: string, binding: DecodedSourceBinding, ra
|
|
|
36
36
|
declare function coerceArgValue(argName: string, binding: DecodedSourceBinding, raw: unknown, schema: ArgSchema): CoerceResult;
|
|
37
37
|
/** What finishing a CLI-sourced value produced. */
|
|
38
38
|
type CliFinish = {
|
|
39
|
-
readonly kind:
|
|
39
|
+
readonly kind: 'value';
|
|
40
40
|
readonly value: unknown;
|
|
41
41
|
readonly viaStdin: boolean;
|
|
42
42
|
} | {
|
|
43
|
-
readonly kind:
|
|
43
|
+
readonly kind: 'error';
|
|
44
44
|
readonly error: ValidationError;
|
|
45
45
|
} | {
|
|
46
|
-
readonly kind:
|
|
46
|
+
readonly kind: 'absent';
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
49
|
* Finish the CLI value of a flag, splicing stdin into occurrence order.
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/core/resolve/config.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Internal resolver config helpers.
|
|
4
|
+
*
|
|
5
|
+
* @module dreamcli/core/resolve/config
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
declare function resolveConfigPath(config: Readonly<Record<string, unknown>>, path: string): unknown;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { resolveConfigPath };
|
|
@@ -2,6 +2,7 @@ import { ResolutionProvenance } from "../schema/provenance.mjs";
|
|
|
2
2
|
import { CommandSchema } from "../schema/command.mjs";
|
|
3
3
|
import { PromptEngine } from "../prompt/index.mjs";
|
|
4
4
|
import "../schema/index.mjs";
|
|
5
|
+
import { ParseResult } from "../parse/index.mjs";
|
|
5
6
|
import { RESOLUTION_ORDER, ResolutionStage } from "../schema/source.mjs";
|
|
6
7
|
//#region src/core/resolve/contracts.d.ts
|
|
7
8
|
/**
|
|
@@ -12,17 +13,17 @@ import { RESOLUTION_ORDER, ResolutionStage } from "../schema/source.mjs";
|
|
|
12
13
|
* they produced. Both surfaces read the same set.
|
|
13
14
|
*/
|
|
14
15
|
type ResolutionDiagnosticSource = {
|
|
15
|
-
readonly kind:
|
|
16
|
+
readonly kind: 'cli';
|
|
16
17
|
} | {
|
|
17
|
-
readonly kind:
|
|
18
|
+
readonly kind: 'stdin';
|
|
18
19
|
} | {
|
|
19
|
-
readonly kind:
|
|
20
|
+
readonly kind: 'env';
|
|
20
21
|
readonly envVar: string;
|
|
21
22
|
} | {
|
|
22
|
-
readonly kind:
|
|
23
|
+
readonly kind: 'config';
|
|
23
24
|
readonly configPath: string;
|
|
24
25
|
} | {
|
|
25
|
-
readonly kind:
|
|
26
|
+
readonly kind: 'prompt';
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
29
|
* The sources whose raw values a resolution stage decodes.
|
|
@@ -31,7 +32,7 @@ type ResolutionDiagnosticSource = {
|
|
|
31
32
|
* coercion diagnostics these name.
|
|
32
33
|
*/
|
|
33
34
|
type DecodedDiagnosticSource = Exclude<ResolutionDiagnosticSource, {
|
|
34
|
-
readonly kind:
|
|
35
|
+
readonly kind: 'cli';
|
|
35
36
|
}>;
|
|
36
37
|
/** Source-aware diagnostic context for flag resolution failures. */
|
|
37
38
|
type FlagDiagnosticSource = DecodedDiagnosticSource;
|
|
@@ -57,7 +58,7 @@ interface ResolveOptions {
|
|
|
57
58
|
* at the path, or `null` when nothing does. When absent, path checks are
|
|
58
59
|
* skipped.
|
|
59
60
|
*/
|
|
60
|
-
readonly stat?: (path: string) => Promise<
|
|
61
|
+
readonly stat?: (path: string) => Promise<'file' | 'directory' | null>;
|
|
61
62
|
/**
|
|
62
63
|
* Recursive directory creation for `flag.path()` and `arg.path()` `create`
|
|
63
64
|
* checks. When absent, missing paths are not created and existence rules
|
|
@@ -68,7 +69,7 @@ interface ResolveOptions {
|
|
|
68
69
|
/** Structured deprecation notice emitted for explicitly sourced values. */
|
|
69
70
|
interface DeprecationWarning {
|
|
70
71
|
/** Whether this deprecation targets a flag or a positional arg. */
|
|
71
|
-
readonly kind:
|
|
72
|
+
readonly kind: 'flag' | 'arg';
|
|
72
73
|
/** Name of the deprecated flag or arg. */
|
|
73
74
|
readonly name: string;
|
|
74
75
|
/** Custom deprecation message, or `true` for the generic warning. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationError } from "../errors/index.mjs";
|
|
1
2
|
import { PromptKind } from "../schema/prompt.mjs";
|
|
2
3
|
import { FlagKind, FlagSchema } from "../schema/flag.mjs";
|
|
3
4
|
import { ResolutionProvenance } from "../schema/provenance.mjs";
|
|
@@ -43,5 +44,31 @@ interface FlagResolutionOptions {
|
|
|
43
44
|
declare function resolveFlags(flagSchemas: Readonly<Record<string, FlagSchema>>, parsedFlags: Readonly<Record<string, unknown>>, options: FlagResolutionOptions): Promise<Readonly<Record<string, unknown>>>;
|
|
44
45
|
/** Maps each flag kind to the prompt kinds that produce compatible values. */
|
|
45
46
|
declare const COMPATIBLE_PROMPT_KINDS: Record<FlagKind, readonly PromptKind[]>;
|
|
47
|
+
/** How one surface spells the input a prompt-compatibility failure names. */
|
|
48
|
+
interface PromptSubject {
|
|
49
|
+
/** How the input is written on the command line: `--out` or `<out>`. */
|
|
50
|
+
readonly reference: string;
|
|
51
|
+
/** What a diagnostic calls one of them: `flag` or `argument`. */
|
|
52
|
+
readonly singular: string;
|
|
53
|
+
/** What a diagnostic calls several: `flags` or `arguments`. */
|
|
54
|
+
readonly plural: string;
|
|
55
|
+
/** Identification fields the surface contributes to `details`. */
|
|
56
|
+
readonly details: Readonly<Record<string, unknown>>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Word an incompatible prompt config for the surface that declared it.
|
|
60
|
+
*
|
|
61
|
+
* A kind with no compatible prompt at all is a different diagnostic from one
|
|
62
|
+
* whose prompt is merely the wrong sort, so the empty list gets its own message
|
|
63
|
+
* on both surfaces.
|
|
64
|
+
*
|
|
65
|
+
* @param subject - How the surface spells the input.
|
|
66
|
+
* @param kind - The input's declared kind.
|
|
67
|
+
* @param promptKind - The prompt kind the config asked for.
|
|
68
|
+
* @param allowed - The prompt kinds that kind accepts.
|
|
69
|
+
* @returns The error to report.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
declare function promptCompatibilityError(subject: PromptSubject, kind: string, promptKind: PromptKind, allowed: readonly PromptKind[]): ValidationError;
|
|
46
73
|
//#endregion
|
|
47
|
-
export { COMPATIBLE_PROMPT_KINDS, type FlagResolutionOptions, resolveFlags };
|
|
74
|
+
export { COMPATIBLE_PROMPT_KINDS, type FlagResolutionOptions, promptCompatibilityError, resolveFlags };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationError } from "../errors/index.mjs";
|
|
1
2
|
import { PathChecks } from "../schema/value-parsers.mjs";
|
|
2
3
|
import "../schema/index.mjs";
|
|
3
4
|
//#region src/core/resolve/path-checks.d.ts
|
|
@@ -6,15 +7,15 @@ import "../schema/index.mjs";
|
|
|
6
7
|
*
|
|
7
8
|
* Returns what exists at the path, or `null` when nothing does.
|
|
8
9
|
*/
|
|
9
|
-
type StatFn = (path: string) => Promise<
|
|
10
|
+
type StatFn = (path: string) => Promise<'file' | 'directory' | null>;
|
|
10
11
|
/** Recursive directory creation injected by the caller for `create` checks. */
|
|
11
12
|
type MkdirFn = (path: string) => Promise<void>;
|
|
12
13
|
/** Which surface declared the path, and under what name. */
|
|
13
14
|
type PathCheckSubject = {
|
|
14
|
-
readonly kind:
|
|
15
|
+
readonly kind: 'flag';
|
|
15
16
|
readonly name: string;
|
|
16
17
|
} | {
|
|
17
|
-
readonly kind:
|
|
18
|
+
readonly kind: 'arg';
|
|
18
19
|
readonly name: string;
|
|
19
20
|
};
|
|
20
21
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationError } from "../errors/index.mjs";
|
|
1
2
|
import { ResolutionProvenance } from "../schema/provenance.mjs";
|
|
2
3
|
import { DecodedSourceBinding, PromptSourceBinding, SourceBinding, StdinSourceBinding } from "../schema/source.mjs";
|
|
3
4
|
import "./contracts.mjs";
|
|
@@ -5,23 +6,23 @@ import { CliFinish, CoerceResult } from "./coerce.mjs";
|
|
|
5
6
|
//#region src/core/resolve/stages.d.ts
|
|
6
7
|
/** What the parser produced for one input in this invocation. */
|
|
7
8
|
type CliValue = {
|
|
8
|
-
readonly kind:
|
|
9
|
+
readonly kind: 'value';
|
|
9
10
|
readonly value: unknown;
|
|
10
11
|
} | {
|
|
11
|
-
readonly kind:
|
|
12
|
+
readonly kind: 'dash';
|
|
12
13
|
} | {
|
|
13
|
-
readonly kind:
|
|
14
|
+
readonly kind: 'absent';
|
|
14
15
|
};
|
|
15
16
|
/** The outcome of one stage, or of a whole walk. */
|
|
16
17
|
type StageOutcome = {
|
|
17
|
-
readonly kind:
|
|
18
|
+
readonly kind: 'value';
|
|
18
19
|
readonly value: unknown;
|
|
19
20
|
readonly provenance: ResolutionProvenance;
|
|
20
21
|
} | {
|
|
21
|
-
readonly kind:
|
|
22
|
+
readonly kind: 'error';
|
|
22
23
|
readonly error: ValidationError;
|
|
23
24
|
} | {
|
|
24
|
-
readonly kind:
|
|
25
|
+
readonly kind: 'absent';
|
|
25
26
|
};
|
|
26
27
|
/** A prompt run that either answered, failed, or declined to produce a value. */
|
|
27
28
|
type PromptOutcome = {
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import { ValidationError } from "../errors/index.mjs";
|
|
2
|
+
import { CommandSchema } from "../schema/command.mjs";
|
|
3
|
+
import "../schema/index.mjs";
|
|
4
|
+
import { ResolutionProvenanceRecord } from "./contracts.mjs";
|
|
5
|
+
//#region src/core/resolve/standard.d.ts
|
|
6
|
+
/** Resolved values after the Standard Schema pass, plus any issues found. */
|
|
7
|
+
interface StandardValidationResult {
|
|
8
|
+
readonly flags: Readonly<Record<string, unknown>>;
|
|
9
|
+
readonly args: Readonly<Record<string, unknown>>;
|
|
10
|
+
readonly errors: readonly ValidationError[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Validate resolved flag and arg values against any attached Standard Schema
|
|
14
|
+
* validators. Values without a validator, or resolved to `undefined`, pass
|
|
15
|
+
* through untouched.
|
|
16
|
+
*
|
|
17
|
+
* @param schema - The command schema carrying per-flag/arg validators.
|
|
18
|
+
* @param flags - Resolved flag values, keyed by flag name.
|
|
19
|
+
* @param args - Resolved arg values, keyed by arg name.
|
|
20
|
+
* @param provenance - Which stage produced each value, read for redaction.
|
|
21
|
+
* @returns The (possibly transformed) values and any constraint violations.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
declare function applyStandardValidators(schema: CommandSchema, flags: Readonly<Record<string, unknown>>, args: Readonly<Record<string, unknown>>, provenance: ResolutionProvenanceRecord): Promise<StandardValidationResult>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { applyStandardValidators };
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* - `'static'` — emit plain text via `out.log()` / `out.error()` at
|
|
16
16
|
* lifecycle boundaries (start, succeed, fail). No animation.
|
|
17
17
|
*/
|
|
18
|
-
type Fallback =
|
|
18
|
+
type Fallback = 'silent' | 'static';
|
|
19
19
|
/** Options for {@link Out.spinner}. */
|
|
20
20
|
interface SpinnerOptions {
|
|
21
21
|
/**
|
|
@@ -88,52 +88,52 @@ interface ProgressHandle {
|
|
|
88
88
|
*/
|
|
89
89
|
type ActivityEvent = {
|
|
90
90
|
/** Spinner created and started. */
|
|
91
|
-
readonly type:
|
|
91
|
+
readonly type: 'spinner:start';
|
|
92
92
|
/** Initial spinner text. */
|
|
93
93
|
readonly text: string;
|
|
94
94
|
} | {
|
|
95
95
|
/** Spinner text changed. */
|
|
96
|
-
readonly type:
|
|
96
|
+
readonly type: 'spinner:update';
|
|
97
97
|
/** Updated spinner text. */
|
|
98
98
|
readonly text: string;
|
|
99
99
|
} | {
|
|
100
100
|
/** Spinner completed successfully. */
|
|
101
|
-
readonly type:
|
|
101
|
+
readonly type: 'spinner:succeed';
|
|
102
102
|
/** Success message. */
|
|
103
103
|
readonly text: string;
|
|
104
104
|
} | {
|
|
105
105
|
/** Spinner stopped with an error. */
|
|
106
|
-
readonly type:
|
|
106
|
+
readonly type: 'spinner:fail';
|
|
107
107
|
/** Failure message. */
|
|
108
108
|
readonly text: string;
|
|
109
109
|
} | {
|
|
110
110
|
/** Spinner stopped without a final status. */
|
|
111
|
-
readonly type:
|
|
111
|
+
readonly type: 'spinner:stop';
|
|
112
112
|
} | {
|
|
113
113
|
/** Progress bar created and started. */
|
|
114
|
-
readonly type:
|
|
114
|
+
readonly type: 'progress:start';
|
|
115
115
|
/** Bar label. */
|
|
116
116
|
readonly label: string;
|
|
117
117
|
/** Known total, or `undefined` for indeterminate. */
|
|
118
118
|
readonly total: number | undefined;
|
|
119
119
|
} | {
|
|
120
120
|
/** Progress bar advanced. */
|
|
121
|
-
readonly type:
|
|
121
|
+
readonly type: 'progress:increment';
|
|
122
122
|
/** Amount advanced. */
|
|
123
123
|
readonly delta: number;
|
|
124
124
|
} | {
|
|
125
125
|
/** Progress bar set to an absolute value. */
|
|
126
|
-
readonly type:
|
|
126
|
+
readonly type: 'progress:update';
|
|
127
127
|
/** New absolute value. */
|
|
128
128
|
readonly value: number;
|
|
129
129
|
} | {
|
|
130
130
|
/** Progress bar completed. */
|
|
131
|
-
readonly type:
|
|
131
|
+
readonly type: 'progress:done';
|
|
132
132
|
/** Completion message, if any. */
|
|
133
133
|
readonly text: string | undefined;
|
|
134
134
|
} | {
|
|
135
135
|
/** Progress bar stopped with an error. */
|
|
136
|
-
readonly type:
|
|
136
|
+
readonly type: 'progress:fail';
|
|
137
137
|
/** Failure message, if any. */
|
|
138
138
|
readonly text: string | undefined;
|
|
139
139
|
};
|
|
@@ -152,9 +152,9 @@ interface TableColumn<T extends Record<string, unknown>> {
|
|
|
152
152
|
readonly header?: string;
|
|
153
153
|
}
|
|
154
154
|
/** Render format override for {@link Out.table}. */
|
|
155
|
-
type TableFormat =
|
|
155
|
+
type TableFormat = 'auto' | 'text' | 'json';
|
|
156
156
|
/** Output stream override for text table rendering. */
|
|
157
|
-
type TableStream =
|
|
157
|
+
type TableStream = 'stdout' | 'stderr';
|
|
158
158
|
/**
|
|
159
159
|
* Per-call table output options.
|
|
160
160
|
*
|
|
@@ -169,17 +169,17 @@ interface TableOptionsAuto {
|
|
|
169
169
|
* Follow the current output mode (text in normal, JSON in jsonMode).
|
|
170
170
|
* @defaultValue `'auto'`
|
|
171
171
|
*/
|
|
172
|
-
readonly format?:
|
|
172
|
+
readonly format?: 'auto';
|
|
173
173
|
}
|
|
174
174
|
/** Force JSON array output to stdout regardless of output mode. */
|
|
175
175
|
interface TableOptionsJson {
|
|
176
176
|
/** Always emit a JSON array to stdout. */
|
|
177
|
-
readonly format:
|
|
177
|
+
readonly format: 'json';
|
|
178
178
|
}
|
|
179
179
|
/** Force human-readable text table output, optionally routed to a specific {@link TableStream}. */
|
|
180
180
|
interface TableOptionsText {
|
|
181
181
|
/** Always render a human-readable text table. */
|
|
182
|
-
readonly format:
|
|
182
|
+
readonly format: 'text';
|
|
183
183
|
/** Target stream for text output. Falls back to stdout (stderr in jsonMode). */
|
|
184
184
|
readonly stream?: TableStream;
|
|
185
185
|
}
|