@kjanat/dreamcli 4.0.0-rc.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -7
- package/dist/{runtime/adapter.d.mts → adapter-D0hbBNVB.d.mts} +5 -7
- package/dist/completion-D4mz6axB.mjs +6 -0
- package/dist/completion.d.mts +90 -0
- package/dist/completion.mjs +1 -0
- package/dist/config-B9ddC-Kb.mjs +1 -0
- package/dist/config.d.mts +2 -0
- package/dist/config.mjs +1 -0
- package/dist/core-Cp2w8vRq.mjs +17 -0
- package/dist/index-BziI2aKc.d.mts +5440 -0
- package/dist/index-DOfClfYR.d.mts +370 -0
- package/dist/index-DWsnGZlx.d.mts +831 -0
- package/dist/{core/cli/index.d.mts → index-DXROeDPC.d.mts} +149 -25
- package/dist/index-DndPmT8J.d.mts +275 -0
- package/dist/{core/json-schema/index.d.mts → index-DyoaS234.d.mts} +54 -45
- package/dist/index.d.mts +190 -41
- package/dist/index.mjs +1 -26
- package/dist/json-schema-C9SzZ7jY.mjs +52 -0
- package/dist/json-schema.d.mts +2 -0
- package/dist/json-schema.mjs +1 -0
- package/dist/package-json-BgE9YjjQ.mjs +3 -0
- package/dist/prompt.d.mts +48 -0
- package/dist/prompt.mjs +1 -0
- package/dist/rolldown-runtime-G4Kt5YOX.mjs +1 -0
- package/dist/runtime.d.mts +2 -6
- package/dist/runtime.mjs +1 -6
- package/dist/terminal-C8KTXjv5.mjs +6 -0
- package/dist/test-prompter-v__jT2yG.mjs +1 -0
- package/dist/testkit.d.mts +54 -6
- package/dist/testkit.mjs +1 -5
- package/dist/version.d.mts +16 -4
- package/dist/version.mjs +1 -7
- package/dreamcli.schema.json +697 -538
- package/package.json +37 -12
- package/skills/cli-creation/SKILL.md +16 -11
- package/CHANGELOG.md +0 -2453
- package/dist/core/cli/builtins.d.mts +0 -47
- package/dist/core/cli/builtins.mjs +0 -135
- package/dist/core/cli/compiled.d.mts +0 -29
- package/dist/core/cli/compiled.mjs +0 -76
- package/dist/core/cli/dispatch.d.mts +0 -38
- package/dist/core/cli/dispatch.mjs +0 -205
- package/dist/core/cli/help-links.d.mts +0 -15
- package/dist/core/cli/help-links.mjs +0 -41
- package/dist/core/cli/index.mjs +0 -1265
- package/dist/core/cli/planner.d.mts +0 -96
- package/dist/core/cli/planner.mjs +0 -323
- package/dist/core/cli/plugin.d.mts +0 -94
- package/dist/core/cli/plugin.mjs +0 -41
- package/dist/core/cli/propagate.d.mts +0 -39
- package/dist/core/cli/propagate.mjs +0 -57
- package/dist/core/cli/reserved-flags.d.mts +0 -1
- package/dist/core/cli/reserved-flags.mjs +0 -158
- package/dist/core/cli/root-help.d.mts +0 -1
- package/dist/core/cli/root-help.mjs +0 -221
- package/dist/core/cli/root-output-flags.d.mts +0 -1
- package/dist/core/cli/root-output-flags.mjs +0 -169
- package/dist/core/cli/root-surface.d.mts +0 -1
- package/dist/core/cli/root-surface.mjs +0 -28
- package/dist/core/cli/runtime-preflight.d.mts +0 -1
- package/dist/core/cli/runtime-preflight.mjs +0 -221
- package/dist/core/completion/index.d.mts +0 -76
- package/dist/core/completion/index.mjs +0 -90
- package/dist/core/completion/shells/bash.d.mts +0 -22
- package/dist/core/completion/shells/bash.mjs +0 -309
- package/dist/core/completion/shells/fish.d.mts +0 -18
- package/dist/core/completion/shells/fish.mjs +0 -163
- package/dist/core/completion/shells/powershell.d.mts +0 -12
- package/dist/core/completion/shells/powershell.mjs +0 -359
- package/dist/core/completion/shells/shared.d.mts +0 -49
- package/dist/core/completion/shells/shared.mjs +0 -147
- package/dist/core/completion/shells/zsh.d.mts +0 -22
- package/dist/core/completion/shells/zsh.mjs +0 -252
- package/dist/core/config/index.d.mts +0 -191
- package/dist/core/config/index.mjs +0 -285
- package/dist/core/config/package-json.d.mts +0 -179
- package/dist/core/config/package-json.mjs +0 -353
- package/dist/core/errors/index.d.mts +0 -126
- package/dist/core/errors/index.mjs +0 -87
- package/dist/core/execution/index.d.mts +0 -1
- package/dist/core/execution/index.mjs +0 -220
- package/dist/core/help/ansi.d.mts +0 -73
- package/dist/core/help/ansi.mjs +0 -121
- package/dist/core/help/index.d.mts +0 -110
- package/dist/core/help/index.mjs +0 -414
- package/dist/core/help/theme.d.mts +0 -48
- package/dist/core/help/theme.mjs +0 -46
- package/dist/core/json-schema/index.mjs +0 -1007
- package/dist/core/json-schema/meta-descriptions.generated.d.mts +0 -274
- package/dist/core/json-schema/meta-descriptions.generated.mjs +0 -136
- package/dist/core/output/activity.d.mts +0 -1
- package/dist/core/output/activity.mjs +0 -452
- package/dist/core/output/bind.d.mts +0 -1
- package/dist/core/output/bind.mjs +0 -56
- package/dist/core/output/contracts.d.mts +0 -81
- package/dist/core/output/contracts.mjs +0 -57
- package/dist/core/output/display-value.d.mts +0 -1
- package/dist/core/output/display-value.mjs +0 -32
- package/dist/core/output/index.d.mts +0 -160
- package/dist/core/output/index.mjs +0 -512
- package/dist/core/output/renderers.d.mts +0 -1
- package/dist/core/output/renderers.mjs +0 -46
- package/dist/core/output/writer.d.mts +0 -39
- package/dist/core/output/writer.mjs +0 -12
- package/dist/core/parse/index.d.mts +0 -178
- package/dist/core/parse/index.mjs +0 -850
- package/dist/core/parse/occurrences.d.mts +0 -89
- package/dist/core/parse/occurrences.mjs +0 -114
- package/dist/core/prompt/index.d.mts +0 -213
- package/dist/core/prompt/index.mjs +0 -348
- package/dist/core/read-flags/index.d.mts +0 -150
- package/dist/core/read-flags/index.mjs +0 -217
- package/dist/core/resolve/args.d.mts +0 -39
- package/dist/core/resolve/args.mjs +0 -182
- package/dist/core/resolve/coerce.d.mts +0 -79
- package/dist/core/resolve/coerce.mjs +0 -900
- package/dist/core/resolve/config.d.mts +0 -1
- package/dist/core/resolve/config.mjs +0 -19
- package/dist/core/resolve/contracts.d.mts +0 -145
- package/dist/core/resolve/errors.d.mts +0 -10
- package/dist/core/resolve/errors.mjs +0 -148
- package/dist/core/resolve/flags.d.mts +0 -47
- package/dist/core/resolve/flags.mjs +0 -246
- package/dist/core/resolve/index.d.mts +0 -44
- package/dist/core/resolve/index.mjs +0 -123
- package/dist/core/resolve/path-checks.d.mts +0 -47
- package/dist/core/resolve/path-checks.mjs +0 -102
- package/dist/core/resolve/redaction.d.mts +0 -12
- package/dist/core/resolve/redaction.mjs +0 -14
- package/dist/core/resolve/stages.d.mts +0 -85
- package/dist/core/resolve/stages.mjs +0 -170
- package/dist/core/resolve/standard.d.mts +0 -1
- package/dist/core/resolve/standard.mjs +0 -212
- package/dist/core/schema/activity.d.mts +0 -189
- package/dist/core/schema/arg.d.mts +0 -1451
- package/dist/core/schema/arg.mjs +0 -1139
- package/dist/core/schema/brand.d.mts +0 -17
- package/dist/core/schema/cardinality.d.mts +0 -301
- package/dist/core/schema/cardinality.mjs +0 -514
- package/dist/core/schema/command.d.mts +0 -1086
- package/dist/core/schema/command.mjs +0 -999
- package/dist/core/schema/flag.d.mts +0 -1487
- package/dist/core/schema/flag.mjs +0 -1207
- package/dist/core/schema/index.d.mts +0 -15
- package/dist/core/schema/index.mjs +0 -10
- package/dist/core/schema/middleware.d.mts +0 -126
- package/dist/core/schema/middleware.mjs +0 -41
- package/dist/core/schema/number-constraints.d.mts +0 -96
- package/dist/core/schema/number-constraints.mjs +0 -60
- package/dist/core/schema/prompt.d.mts +0 -135
- package/dist/core/schema/provenance.d.mts +0 -99
- package/dist/core/schema/provenance.mjs +0 -28
- package/dist/core/schema/run.d.mts +0 -161
- package/dist/core/schema/source.d.mts +0 -179
- package/dist/core/schema/source.mjs +0 -206
- package/dist/core/schema/standard.d.mts +0 -93
- package/dist/core/schema/standard.mjs +0 -15
- package/dist/core/schema/stdin.d.mts +0 -87
- package/dist/core/schema/stdin.mjs +0 -91
- package/dist/core/schema/string-constraints.d.mts +0 -108
- package/dist/core/schema/string-constraints.mjs +0 -86
- package/dist/core/schema/value-parsers.d.mts +0 -150
- package/dist/core/schema/value-parsers.mjs +0 -160
- package/dist/core/schema/value.d.mts +0 -242
- package/dist/core/schema/value.mjs +0 -573
- package/dist/core/testkit/index.d.mts +0 -56
- package/dist/core/testkit/index.mjs +0 -102
- package/dist/runtime/adapter.mjs +0 -92
- package/dist/runtime/auto.d.mts +0 -25
- package/dist/runtime/auto.mjs +0 -45
- package/dist/runtime/deno.d.mts +0 -99
- package/dist/runtime/deno.mjs +0 -265
- package/dist/runtime/detect.d.mts +0 -86
- package/dist/runtime/detect.mjs +0 -45
- package/dist/runtime/index.d.mts +0 -6
- package/dist/runtime/node.d.mts +0 -71
- package/dist/runtime/node.mjs +0 -228
- package/dist/runtime/paths.d.mts +0 -1
- package/dist/runtime/paths.mjs +0 -48
- package/dist/strings.d.mts +0 -12
- package/dist/strings.mjs +0 -22
- package/examples/basic.ts +0 -37
- package/examples/flag-types.ts +0 -79
- 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
- package/examples/gh/package.json +0 -45
- package/examples/gh/src/commands/auth.ts +0 -66
- package/examples/gh/src/commands/issue.ts +0 -120
- package/examples/gh/src/commands/pr.ts +0 -125
- package/examples/gh/src/data/issues.yaml +0 -5
- package/examples/gh/src/data/issues.yaml.d.ts +0 -17
- package/examples/gh/src/data/pull-requests.yaml +0 -7
- package/examples/gh/src/data/pull-requests.yaml.d.ts +0 -18
- package/examples/gh/src/docs.ts +0 -11
- package/examples/gh/src/lib/auth.ts +0 -37
- package/examples/gh/src/lib/utils.ts +0 -17
- package/examples/gh/src/main.test.ts +0 -307
- package/examples/gh/src/main.ts +0 -46
- package/examples/help-config.ts +0 -43
- package/examples/interactive.ts +0 -67
- package/examples/json-mode.ts +0 -95
- package/examples/middleware.ts +0 -71
- package/examples/multi-command.ts +0 -66
- package/examples/output-extras.ts +0 -46
- package/examples/parser-control.ts +0 -40
- package/examples/pwsh-demo/README.md +0 -40
- package/examples/pwsh-demo/package.json +0 -41
- package/examples/pwsh-demo/pwsh-demo.cmd +0 -3
- package/examples/pwsh-demo/smoke-powershell.ps1 +0 -218
- package/examples/pwsh-demo/src/main.test.ts +0 -45
- package/examples/pwsh-demo/src/main.ts +0 -140
- package/examples/spinner-progress.ts +0 -49
- package/examples/standard-schema.ts +0 -45
- package/examples/testing.ts +0 -147
- package/examples/transport-launcher.ts +0 -85
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { Verbosity } from "./contracts.mjs";
|
|
2
|
-
import { ActivityEvent } from "../schema/activity.mjs";
|
|
3
|
-
import { Out } from "../schema/command.mjs";
|
|
4
|
-
import { WriteFn, writeLine } from "./writer.mjs";
|
|
5
|
-
//#region src/core/output/index.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Configuration for creating an output channel.
|
|
8
|
-
*
|
|
9
|
-
* Every field is optional — sensible defaults are applied when omitted.
|
|
10
|
-
*/
|
|
11
|
-
interface OutputOptions {
|
|
12
|
-
/**
|
|
13
|
-
* Writer for stdout-bound messages (`log`, `info`, `json`).
|
|
14
|
-
* Defaults to `process.stdout.write` when running in Node/Bun.
|
|
15
|
-
*/
|
|
16
|
-
readonly stdout?: WriteFn;
|
|
17
|
-
/**
|
|
18
|
-
* Writer for stderr-bound messages (`warn`, `error`).
|
|
19
|
-
* In JSON mode, `log` and `info` are also redirected here so that
|
|
20
|
-
* stdout contains only structured JSON output.
|
|
21
|
-
* Defaults to `process.stderr.write` when running in Node/Bun.
|
|
22
|
-
*/
|
|
23
|
-
readonly stderr?: WriteFn;
|
|
24
|
-
/**
|
|
25
|
-
* Whether stdout is connected to a TTY.
|
|
26
|
-
* When `false`, output may omit ANSI codes and decorations.
|
|
27
|
-
* Defaults to `false` (safe default — non-TTY until proven otherwise).
|
|
28
|
-
*/
|
|
29
|
-
readonly isTTY?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Verbosity level.
|
|
32
|
-
* - `'normal'` (default) — emit all messages
|
|
33
|
-
* - `'quiet'` — suppress `info` messages
|
|
34
|
-
*/
|
|
35
|
-
readonly verbosity?: Verbosity;
|
|
36
|
-
/**
|
|
37
|
-
* Enable JSON output mode.
|
|
38
|
-
*
|
|
39
|
-
* When `true`, `log` and `info` messages are redirected to stderr
|
|
40
|
-
* so that stdout is reserved exclusively for structured `json()` output.
|
|
41
|
-
* `warn` and `error` continue to write to stderr as normal.
|
|
42
|
-
*
|
|
43
|
-
* @defaultValue `false`
|
|
44
|
-
*/
|
|
45
|
-
readonly jsonMode?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Explicitly enable or disable ANSI colors on `out.color`.
|
|
48
|
-
*
|
|
49
|
-
* When set, this wins over the auto-gate — use it to force colors in
|
|
50
|
-
* captured test output or when embedding into a host that manages its
|
|
51
|
-
* own color policy.
|
|
52
|
-
*
|
|
53
|
-
* @defaultValue auto — enabled when `isTTY` is `true`, `jsonMode` is
|
|
54
|
-
* `false`, and the environment supports color (`NO_COLOR`,
|
|
55
|
-
* `FORCE_COLOR`, `--no-color`, `--color`, `CI` are respected).
|
|
56
|
-
*/
|
|
57
|
-
readonly color?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Resolved OSC 8 hyperlink support for `out.isHyperlinkSupported`.
|
|
60
|
-
*
|
|
61
|
-
* When set, this wins over the `isTTY` fallback. Callers pass the
|
|
62
|
-
* `NO_HYPERLINKS`/`FORCE_HYPERLINKS` (and `--no-hyperlinks`/`--hyperlinks`)
|
|
63
|
-
* decision here via {@linkcode resolveHyperlinkOverride}, keeping `process`
|
|
64
|
-
* access out of the output layer.
|
|
65
|
-
*
|
|
66
|
-
* @defaultValue `isTTY`
|
|
67
|
-
*/
|
|
68
|
-
readonly hyperlinks?: boolean;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Forced hyperlink decision from `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
72
|
-
* `--no-hyperlinks`/`--hyperlinks` argv flags; `undefined` when unset.
|
|
73
|
-
*
|
|
74
|
-
* Pure over its inputs — callers pass the adapter's `env`/`argv` so the
|
|
75
|
-
* output layer never touches `process` directly.
|
|
76
|
-
*
|
|
77
|
-
* @see https://no-hyperlinks.org/
|
|
78
|
-
*/
|
|
79
|
-
declare function resolveHyperlinkOverride(env: Readonly<Record<string, string | undefined>>, argv: readonly string[]): boolean | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* Create an output channel.
|
|
82
|
-
*
|
|
83
|
-
* Low-level factory: action handlers already receive `out` automatically from
|
|
84
|
-
* `cli()`, `.execute()`, and `runCommand()`. Call `createOutput()` when you
|
|
85
|
-
* are embedding DreamCLI primitives into a custom runtime or need a standalone
|
|
86
|
-
* output implementation outside the normal command pipeline.
|
|
87
|
-
*
|
|
88
|
-
* @param options - Optional configuration. When omitted, output is
|
|
89
|
-
* discarded (useful for silent test runs). Pass `stdout`/`stderr`
|
|
90
|
-
* writers to direct output somewhere useful.
|
|
91
|
-
*
|
|
92
|
-
* @returns An {@link Out} instance backed by an {@link OutputChannel}.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```ts
|
|
96
|
-
* // Production (wired by the runtime adapter)
|
|
97
|
-
* const out = createOutput({
|
|
98
|
-
* stdout: (s) => process.stdout.write(s),
|
|
99
|
-
* stderr: (s) => process.stderr.write(s),
|
|
100
|
-
* isTTY: process.stdout.isTTY === true,
|
|
101
|
-
* });
|
|
102
|
-
*
|
|
103
|
-
* // Test (capture output)
|
|
104
|
-
* const lines: string[] = [];
|
|
105
|
-
* const out = createOutput({
|
|
106
|
-
* stdout: (s) => lines.push(s),
|
|
107
|
-
* stderr: (s) => lines.push(s),
|
|
108
|
-
* });
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
declare function createOutput(options?: OutputOptions): Out;
|
|
112
|
-
/** Captured output from a `createCaptureOutput` instance. */
|
|
113
|
-
interface CapturedOutput {
|
|
114
|
-
/**
|
|
115
|
-
* Lines written to stdout.
|
|
116
|
-
*
|
|
117
|
-
* In normal mode: `log`, `info`, and `json` output.
|
|
118
|
-
* In JSON mode: only `json` output (log/info redirected to stderr).
|
|
119
|
-
*/
|
|
120
|
-
readonly stdout: string[];
|
|
121
|
-
/**
|
|
122
|
-
* Lines written to stderr.
|
|
123
|
-
*
|
|
124
|
-
* In normal mode: `warn` and `error` output.
|
|
125
|
-
* In JSON mode: `warn`, `error`, `log`, and `info` output.
|
|
126
|
-
*/
|
|
127
|
-
readonly stderr: string[];
|
|
128
|
-
/**
|
|
129
|
-
* Activity events from spinner and progress handles.
|
|
130
|
-
*
|
|
131
|
-
* Captured separately from stdout/stderr to allow targeted assertions
|
|
132
|
-
* on activity lifecycle without parsing text output. Events are
|
|
133
|
-
* recorded in chronological order.
|
|
134
|
-
*/
|
|
135
|
-
readonly activity: ActivityEvent[];
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Create an output channel that captures all output into arrays.
|
|
139
|
-
*
|
|
140
|
-
* Useful in tests to assert on what a handler wrote without touching
|
|
141
|
-
* real I/O.
|
|
142
|
-
*
|
|
143
|
-
* @param options - Optional {@link OutputOptions} (minus `stdout`/`stderr`,
|
|
144
|
-
* which are wired to the capture buffers automatically).
|
|
145
|
-
*
|
|
146
|
-
* @returns A tuple of `[out, captured]` — the {@link Out} channel and the
|
|
147
|
-
* {@link CapturedOutput} buffers.
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
* ```ts
|
|
151
|
-
* const [out, captured] = createCaptureOutput();
|
|
152
|
-
* out.log('hello');
|
|
153
|
-
* out.warn('danger');
|
|
154
|
-
* expect(captured.stdout).toEqual(['hello\n']);
|
|
155
|
-
* expect(captured.stderr).toEqual(['danger\n']);
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
declare function createCaptureOutput(options?: Omit<OutputOptions, "stdout" | "stderr">): [out: Out, captured: CapturedOutput];
|
|
159
|
-
//#endregion
|
|
160
|
-
export { type CapturedOutput, type OutputOptions, type Verbosity, type WriteFn, createCaptureOutput, createOutput, resolveHyperlinkOverride, writeLine };
|
|
@@ -1,512 +0,0 @@
|
|
|
1
|
-
import "../schema/command.mjs";
|
|
2
|
-
import { formatDisplayValue } from "./display-value.mjs";
|
|
3
|
-
import { bindMethods } from "./bind.mjs";
|
|
4
|
-
import { writeLine } from "./writer.mjs";
|
|
5
|
-
import { CaptureProgressHandle, CaptureSpinnerHandle } from "./activity.mjs";
|
|
6
|
-
import { resolveOutputPolicy, resolveProgressPolicy, resolveSpinnerPolicy, resolveTableFormat, resolveTableTextStream, resolveTextStream, shouldEmitInfo } from "./contracts.mjs";
|
|
7
|
-
import { createProgressHandleFromPolicy, createSpinnerHandleFromPolicy, resolveWriterForStream } from "./renderers.mjs";
|
|
8
|
-
import { createColors, isColorSupported } from "ansispeck";
|
|
9
|
-
//#region src/core/output/index.ts
|
|
10
|
-
/**
|
|
11
|
-
* Output channel (out object) for command handlers.
|
|
12
|
-
*
|
|
13
|
-
* Provides a structured output abstraction that handlers use instead of
|
|
14
|
-
* raw `console.log`. The channel respects TTY vs piped contexts and
|
|
15
|
-
* supports verbosity levels (quiet mode suppresses `info`).
|
|
16
|
-
*
|
|
17
|
-
* The {@linkcode Out} interface (the contract handlers depend on) lives in
|
|
18
|
-
* `src/core/schema/command.ts`. This module provides the implementation.
|
|
19
|
-
*
|
|
20
|
-
* @module dreamcli/core/output
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* A noop writer used as fallback when no writer is provided and
|
|
24
|
-
* platform defaults aren't available. Silently discards output.
|
|
25
|
-
*/
|
|
26
|
-
const noopWrite = () => {};
|
|
27
|
-
const requestedExitCodes = /* @__PURE__ */ new WeakMap();
|
|
28
|
-
function validateExitCode(code) {
|
|
29
|
-
if (!Number.isInteger(code) || code < 0 || code > 255) throw new RangeError("Exit code must be an integer from 0 to 255");
|
|
30
|
-
return code;
|
|
31
|
-
}
|
|
32
|
-
/** Store the exit code requested through an output channel. @internal */
|
|
33
|
-
function setRequestedExitCode(out, code) {
|
|
34
|
-
requestedExitCodes.set(out, validateExitCode(code));
|
|
35
|
-
}
|
|
36
|
-
/** Read the exit code requested through an output channel. @internal */
|
|
37
|
-
function getRequestedExitCode(out) {
|
|
38
|
-
return requestedExitCodes.get(out);
|
|
39
|
-
}
|
|
40
|
-
/** Clear a previously requested exit code from an output channel. @internal */
|
|
41
|
-
function clearRequestedExitCode(out) {
|
|
42
|
-
requestedExitCodes.delete(out);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Forced hyperlink decision from `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
46
|
-
* `--no-hyperlinks`/`--hyperlinks` argv flags; `undefined` when unset.
|
|
47
|
-
*
|
|
48
|
-
* Pure over its inputs — callers pass the adapter's `env`/`argv` so the
|
|
49
|
-
* output layer never touches `process` directly.
|
|
50
|
-
*
|
|
51
|
-
* @see https://no-hyperlinks.org/
|
|
52
|
-
*/
|
|
53
|
-
function resolveHyperlinkOverride(env, argv) {
|
|
54
|
-
const separator = argv.indexOf("--");
|
|
55
|
-
const flags = separator === -1 ? argv : argv.slice(0, separator);
|
|
56
|
-
if (env.NO_HYPERLINKS || flags.includes("--no-hyperlinks")) return false;
|
|
57
|
-
if (env.FORCE_HYPERLINKS || flags.includes("--hyperlinks")) return true;
|
|
58
|
-
}
|
|
59
|
-
/** Merge user-supplied options with defaults. */
|
|
60
|
-
function resolveOptions(options) {
|
|
61
|
-
const isTTY = options?.isTTY ?? false;
|
|
62
|
-
const jsonMode = options?.jsonMode ?? false;
|
|
63
|
-
return {
|
|
64
|
-
stdout: options?.stdout ?? noopWrite,
|
|
65
|
-
stderr: options?.stderr ?? noopWrite,
|
|
66
|
-
isTTY,
|
|
67
|
-
verbosity: options?.verbosity ?? "normal",
|
|
68
|
-
jsonMode,
|
|
69
|
-
color: options?.color ?? (isTTY && !jsonMode && isColorSupported),
|
|
70
|
-
isHyperlinkSupported: options?.hyperlinks ?? isTTY
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Concrete implementation of the {@linkcode Out} interface.
|
|
75
|
-
*
|
|
76
|
-
* Routes messages to the appropriate writer (stdout vs stderr) and
|
|
77
|
-
* respects the configured verbosity level.
|
|
78
|
-
*
|
|
79
|
-
* Handlers interact with this via the {@linkcode Out} interface — they never see
|
|
80
|
-
* {@linkcode OutputChannel} directly, which keeps the coupling minimal.
|
|
81
|
-
* Prefer {@link createOutput} unless you are extending the output layer.
|
|
82
|
-
*
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
var OutputChannel = class {
|
|
86
|
-
/** @internal Resolved configuration. */
|
|
87
|
-
options;
|
|
88
|
-
/** Semantic output policy snapshot shared by routing helpers. */
|
|
89
|
-
policy;
|
|
90
|
-
/** Whether JSON output mode is active. */
|
|
91
|
-
jsonMode;
|
|
92
|
-
/** Active verbosity level for informational output and activity rendering. */
|
|
93
|
-
verbosity;
|
|
94
|
-
/**
|
|
95
|
-
* Whether stdout is connected to a TTY.
|
|
96
|
-
*
|
|
97
|
-
* When `jsonMode` is active, this reflects the underlying TTY status
|
|
98
|
-
* but decorative output should still be suppressed (jsonMode takes
|
|
99
|
-
* precedence).
|
|
100
|
-
*/
|
|
101
|
-
isTTY;
|
|
102
|
-
/**
|
|
103
|
-
* Context-aware ANSI color palette.
|
|
104
|
-
*
|
|
105
|
-
* Enabled per the resolved `color` option — identity functions when
|
|
106
|
-
* colors are off, so handlers can style unconditionally.
|
|
107
|
-
*/
|
|
108
|
-
color;
|
|
109
|
-
/**
|
|
110
|
-
* Whether OSC 8 hyperlinks should be emitted for this channel.
|
|
111
|
-
*
|
|
112
|
-
* Honors `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
|
|
113
|
-
* `--no-hyperlinks`/`--hyperlinks` argv flags, falling back to `isTTY`.
|
|
114
|
-
*/
|
|
115
|
-
isHyperlinkSupported;
|
|
116
|
-
constructor(options) {
|
|
117
|
-
this.options = options;
|
|
118
|
-
this.policy = resolveOutputPolicy(options);
|
|
119
|
-
this.jsonMode = options.jsonMode;
|
|
120
|
-
this.verbosity = this.policy.verbosity;
|
|
121
|
-
this.isTTY = options.isTTY;
|
|
122
|
-
this.color = createColors(options.color);
|
|
123
|
-
this.isHyperlinkSupported = options.isHyperlinkSupported;
|
|
124
|
-
bindMethods(this);
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Write to stdout (normal output). Always emitted.
|
|
128
|
-
*
|
|
129
|
-
* In JSON mode, redirected to stderr so stdout is reserved for
|
|
130
|
-
* structured `json()` output only.
|
|
131
|
-
*/
|
|
132
|
-
log(message) {
|
|
133
|
-
const writer = resolveWriterForStream(this.options, resolveTextStream(this.policy));
|
|
134
|
-
writeLine(writer, message);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Informational message to stdout.
|
|
138
|
-
* Suppressed when verbosity is `'quiet'`.
|
|
139
|
-
*
|
|
140
|
-
* In JSON mode, redirected to stderr.
|
|
141
|
-
*/
|
|
142
|
-
info(message) {
|
|
143
|
-
if (!shouldEmitInfo(this.policy)) return;
|
|
144
|
-
const writer = resolveWriterForStream(this.options, resolveTextStream(this.policy));
|
|
145
|
-
writeLine(writer, message);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Status line to stderr (stdout stays clean for piping).
|
|
149
|
-
* Suppressed when verbosity is `'quiet'`.
|
|
150
|
-
*/
|
|
151
|
-
status(message) {
|
|
152
|
-
if (!shouldEmitInfo(this.policy)) return;
|
|
153
|
-
writeLine(this.options.stderr, message);
|
|
154
|
-
}
|
|
155
|
-
/** Warning to stderr. Always emitted. */
|
|
156
|
-
warn(message) {
|
|
157
|
-
writeLine(this.options.stderr, message);
|
|
158
|
-
}
|
|
159
|
-
/** Error to stderr. Always emitted. */
|
|
160
|
-
error(message) {
|
|
161
|
-
writeLine(this.options.stderr, message);
|
|
162
|
-
}
|
|
163
|
-
/** Request a successful-process exit code without writing error output. */
|
|
164
|
-
setExitCode(code) {
|
|
165
|
-
setRequestedExitCode(this, code);
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Emit a structured JSON value to stdout.
|
|
169
|
-
*
|
|
170
|
-
* Serialises `value` with `JSON.stringify` and writes to stdout
|
|
171
|
-
* regardless of JSON mode — `json()` always targets stdout.
|
|
172
|
-
*/
|
|
173
|
-
json(value) {
|
|
174
|
-
writeLine(this.options.stdout, JSON.stringify(value));
|
|
175
|
-
}
|
|
176
|
-
table(rows, columnsOrOptions, options) {
|
|
177
|
-
const { columns, options: tableOptions } = resolveTableArgs(columnsOrOptions, options);
|
|
178
|
-
const format = resolveTableFormat(this.policy, tableOptions);
|
|
179
|
-
const resolved = columns ?? inferColumns(rows);
|
|
180
|
-
if (format === "json") {
|
|
181
|
-
this.json(projectTableRows(rows, resolved));
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
const text = formatTable(rows, resolved);
|
|
185
|
-
if (text.length === 0) return;
|
|
186
|
-
writeLine(resolveTextTableWriter(this.options, this.policy, format, tableOptions), text);
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Cleanup callback for the currently active spinner/progress handle.
|
|
190
|
-
*
|
|
191
|
-
* Set to `undefined` when no handle is active. The callback calls the
|
|
192
|
-
* appropriate terminal method (`.stop()` for spinners, `.done()` for
|
|
193
|
-
* progress) on the previous handle.
|
|
194
|
-
*
|
|
195
|
-
* @internal
|
|
196
|
-
*/
|
|
197
|
-
activeCleanup;
|
|
198
|
-
/**
|
|
199
|
-
* Stop the currently active spinner/progress handle (if any).
|
|
200
|
-
*
|
|
201
|
-
* Called internally before creating a new handle to prevent overlap,
|
|
202
|
-
* and externally after handler execution to clean up leaked timers.
|
|
203
|
-
* Idempotent (safe to call when no handle is active).
|
|
204
|
-
*/
|
|
205
|
-
stopActive() {
|
|
206
|
-
if (this.activeCleanup !== void 0) {
|
|
207
|
-
this.activeCleanup();
|
|
208
|
-
this.activeCleanup = void 0;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Create a spinner handle.
|
|
213
|
-
*
|
|
214
|
-
* Mode dispatch:
|
|
215
|
-
* - quiet or `jsonMode` → noop (informational activity suppressed)
|
|
216
|
-
* - `isTTY` → animated TTY spinner (braille frames, ANSI overwrite)
|
|
217
|
-
* - `!isTTY && fallback: 'static'` → plain text at lifecycle boundaries
|
|
218
|
-
* - `!isTTY && fallback: 'silent'` (default) → noop
|
|
219
|
-
*
|
|
220
|
-
* All activity output (transient frames, terminal messages) routes to
|
|
221
|
-
* stderr so stdout remains clean for structured data and piping.
|
|
222
|
-
*
|
|
223
|
-
* If another spinner or progress handle is active, it is implicitly
|
|
224
|
-
* stopped before the new one starts.
|
|
225
|
-
*
|
|
226
|
-
* @virtual
|
|
227
|
-
*/
|
|
228
|
-
spinner(text, options) {
|
|
229
|
-
const policy = resolveSpinnerPolicy(this.policy, options?.fallback ?? "silent");
|
|
230
|
-
const rendered = createSpinnerHandleFromPolicy(policy, text, this.options.stderr);
|
|
231
|
-
if (rendered.cleanup === void 0) return rendered.handle;
|
|
232
|
-
this.stopActive();
|
|
233
|
-
this.activeCleanup = rendered.cleanup;
|
|
234
|
-
return rendered.handle;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Create a progress handle.
|
|
238
|
-
*
|
|
239
|
-
* Mode dispatch:
|
|
240
|
-
* - quiet or `jsonMode` → noop (informational activity suppressed)
|
|
241
|
-
* - `isTTY` → animated TTY progress bar (determinate or indeterminate)
|
|
242
|
-
* - `!isTTY && fallback: 'static'` → plain text at lifecycle boundaries
|
|
243
|
-
* - `!isTTY && fallback: 'silent'` (default) → noop
|
|
244
|
-
*
|
|
245
|
-
* All activity output (transient frames, terminal messages) routes to
|
|
246
|
-
* stderr so stdout remains clean for structured data and piping.
|
|
247
|
-
*
|
|
248
|
-
* If another spinner or progress handle is active, it is implicitly
|
|
249
|
-
* stopped before the new one starts.
|
|
250
|
-
*
|
|
251
|
-
* @virtual
|
|
252
|
-
*/
|
|
253
|
-
progress(opts) {
|
|
254
|
-
const policy = resolveProgressPolicy(this.policy, opts.fallback ?? "silent");
|
|
255
|
-
const rendered = createProgressHandleFromPolicy(policy, opts, this.options.stderr);
|
|
256
|
-
if (rendered.cleanup === void 0) return rendered.handle;
|
|
257
|
-
this.stopActive();
|
|
258
|
-
this.activeCleanup = rendered.cleanup;
|
|
259
|
-
return rendered.handle;
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
/**
|
|
263
|
-
* Output channel variant that returns capture handles for spinner/progress.
|
|
264
|
-
*
|
|
265
|
-
* Extends {@linkcode OutputChannel} to override `spinner()` and `progress()`, routing
|
|
266
|
-
* activity events into a shared {@linkcode ActivityEvent | ActivityEvent[]} for testkit assertion.
|
|
267
|
-
* Text output (log/info/warn/error) is handled by the parent class.
|
|
268
|
-
*
|
|
269
|
-
* @internal
|
|
270
|
-
*/
|
|
271
|
-
var CaptureOutputChannel = class extends OutputChannel {
|
|
272
|
-
activity;
|
|
273
|
-
constructor(options, activity) {
|
|
274
|
-
super(options);
|
|
275
|
-
this.activity = activity;
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Return a {@link CaptureSpinnerHandle} that records events into the activity log.
|
|
279
|
-
* @override
|
|
280
|
-
*/
|
|
281
|
-
spinner(text, _options) {
|
|
282
|
-
return new CaptureSpinnerHandle(text, this.activity);
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* Return a {@link CaptureProgressHandle} that records events into the activity log.
|
|
286
|
-
* @override
|
|
287
|
-
*/
|
|
288
|
-
progress(opts) {
|
|
289
|
-
return new CaptureProgressHandle(opts, this.activity);
|
|
290
|
-
}
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* Infer column descriptors from the keys of the first row.
|
|
294
|
-
*
|
|
295
|
-
* When no explicit columns are provided, all keys from the first row
|
|
296
|
-
* become columns in insertion order. This is a convenience — callers
|
|
297
|
-
* who need stable ordering should provide explicit columns.
|
|
298
|
-
*
|
|
299
|
-
* @param rows - Data rows to derive columns from.
|
|
300
|
-
* @returns Column descriptors, one per key of the first row (empty if `rows` is empty).
|
|
301
|
-
*/
|
|
302
|
-
function inferColumns(rows) {
|
|
303
|
-
const first = rows[0];
|
|
304
|
-
if (first === void 0) return [];
|
|
305
|
-
return Object.keys(first).map((key) => ({ key }));
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Type guard: is `value` a {@link TableColumn} array (not {@link TableOptions})?
|
|
309
|
-
*
|
|
310
|
-
* @param value - The ambiguous argument to discriminate.
|
|
311
|
-
* @returns `true` when `value` is a column descriptor array.
|
|
312
|
-
*/
|
|
313
|
-
function isTableColumns(value) {
|
|
314
|
-
return Array.isArray(value);
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* Disambiguate the overloaded `table()` arguments.
|
|
318
|
-
*
|
|
319
|
-
* @param columnsOrOptions - Either column descriptors or table options (from the 2-arg overload).
|
|
320
|
-
* @param options - Explicit table options (from the 3-arg overload).
|
|
321
|
-
* @returns Separated `columns` and `options`, each possibly `undefined`.
|
|
322
|
-
*/
|
|
323
|
-
function resolveTableArgs(columnsOrOptions, options) {
|
|
324
|
-
if (options !== void 0) return {
|
|
325
|
-
columns: isTableColumns(columnsOrOptions) ? columnsOrOptions : void 0,
|
|
326
|
-
options
|
|
327
|
-
};
|
|
328
|
-
if (isTableColumns(columnsOrOptions)) return {
|
|
329
|
-
columns: columnsOrOptions,
|
|
330
|
-
options
|
|
331
|
-
};
|
|
332
|
-
return {
|
|
333
|
-
columns: void 0,
|
|
334
|
-
options: columnsOrOptions
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Find the object along a row's prototype chain that carries a key.
|
|
339
|
-
*
|
|
340
|
-
* @param row - Source data row.
|
|
341
|
-
* @param key - Column key to locate.
|
|
342
|
-
* @returns The owning object, or `null` when nothing in the chain carries it.
|
|
343
|
-
*/
|
|
344
|
-
function cellKeyHolder(row, key) {
|
|
345
|
-
for (let holder = row; holder !== null; holder = Object.getPrototypeOf(holder)) if (Object.hasOwn(holder, key)) return holder;
|
|
346
|
-
return null;
|
|
347
|
-
}
|
|
348
|
-
/**
|
|
349
|
-
* Read one cell out of a row.
|
|
350
|
-
*
|
|
351
|
-
* `Object.prototype` answers a lookup for a column key such as `toString` on
|
|
352
|
-
* every row, so a key it alone carries reads as absent. A key held anywhere
|
|
353
|
-
* earlier in the chain is the row's own data, which is where a class getter or
|
|
354
|
-
* an `Object.create(defaults)` fallback lives.
|
|
355
|
-
*
|
|
356
|
-
* @param row - Source data row.
|
|
357
|
-
* @param key - Column key to read.
|
|
358
|
-
* @returns The cell value, or `undefined` when only `Object.prototype` carries the key.
|
|
359
|
-
*/
|
|
360
|
-
function cellValue(row, key) {
|
|
361
|
-
const holder = cellKeyHolder(row, key);
|
|
362
|
-
return holder === null || holder === Object.prototype ? void 0 : row[key];
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
* Keep only the keys listed in `columns`, preserving column order.
|
|
366
|
-
*
|
|
367
|
-
* @param rows - Source data rows.
|
|
368
|
-
* @param columns - Column descriptors controlling which keys to retain.
|
|
369
|
-
* @returns Projected rows containing only the specified keys.
|
|
370
|
-
*/
|
|
371
|
-
function projectTableRows(rows, columns) {
|
|
372
|
-
return rows.map((row) => Object.fromEntries(columns.map((c) => [c.key, cellValue(row, c.key)])));
|
|
373
|
-
}
|
|
374
|
-
/**
|
|
375
|
-
* Determine the concrete table format (`'text'` or `'json'`).
|
|
376
|
-
*
|
|
377
|
-
* Resolves `'auto'` / `undefined` by falling back to the channel's `jsonMode`.
|
|
378
|
-
*
|
|
379
|
-
* @param jsonMode - Whether the channel is in JSON output mode.
|
|
380
|
-
* @param options - Per-call table options (may specify an explicit format).
|
|
381
|
-
* @returns `'text'` or `'json'`.
|
|
382
|
-
*/
|
|
383
|
-
/**
|
|
384
|
-
* Pick the {@link WriteFn} for a text-mode table.
|
|
385
|
-
*
|
|
386
|
-
* Respects `tableOptions.stream` when present; otherwise falls back to
|
|
387
|
-
* the channel's default policy-owned text stream.
|
|
388
|
-
*
|
|
389
|
-
* @param options - Resolved channel options.
|
|
390
|
-
* @param format - Resolved table format.
|
|
391
|
-
* @param tableOptions - Per-call table options (may specify a stream override).
|
|
392
|
-
* @returns The writer to use.
|
|
393
|
-
*/
|
|
394
|
-
function resolveTextTableWriter(options, policy, format, tableOptions) {
|
|
395
|
-
if (format === "json") return options.stdout;
|
|
396
|
-
return resolveWriterForStream(options, resolveTableTextStream(policy, tableOptions));
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* Convert a cell value to a display string.
|
|
400
|
-
*
|
|
401
|
-
* - `null` / `undefined` → `''`
|
|
402
|
-
* - Primitives → `String(value)`
|
|
403
|
-
* - Objects / arrays → JSON
|
|
404
|
-
*
|
|
405
|
-
* @param value - The raw cell value.
|
|
406
|
-
* @returns Display string for the cell.
|
|
407
|
-
*/
|
|
408
|
-
function cellToString(value) {
|
|
409
|
-
return formatDisplayValue(value);
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* Format rows as an aligned text table.
|
|
413
|
-
*
|
|
414
|
-
* Returns the full table string (without trailing newline — the caller
|
|
415
|
-
* adds that via `writeLine`). Returns `''` when rows is empty.
|
|
416
|
-
*
|
|
417
|
-
* Column widths are computed as the max of header and all cell values.
|
|
418
|
-
* Cells are left-aligned, padded with spaces. Columns are separated by
|
|
419
|
-
* two spaces.
|
|
420
|
-
*
|
|
421
|
-
* @param rows - Data rows to render.
|
|
422
|
-
* @param columns - Column descriptors controlling key, header, and order.
|
|
423
|
-
* @returns The formatted table string, or `''` when there is nothing to render.
|
|
424
|
-
*/
|
|
425
|
-
function formatTable(rows, columns) {
|
|
426
|
-
if (rows.length === 0 || columns.length === 0) return "";
|
|
427
|
-
const SEPARATOR = " ";
|
|
428
|
-
const headers = columns.map((c) => c.header ?? c.key);
|
|
429
|
-
const cellGrid = rows.map((row) => columns.map((c) => cellToString(cellValue(row, c.key))));
|
|
430
|
-
const widths = headers.map((h, i) => {
|
|
431
|
-
let max = h.length;
|
|
432
|
-
for (const row of cellGrid) {
|
|
433
|
-
const cell = row[i];
|
|
434
|
-
if (cell !== void 0 && cell.length > max) max = cell.length;
|
|
435
|
-
}
|
|
436
|
-
return max;
|
|
437
|
-
});
|
|
438
|
-
return [
|
|
439
|
-
headers.map((h, i) => h.padEnd(widths[i] ?? 0)).join(SEPARATOR),
|
|
440
|
-
widths.map((w) => "-".repeat(w)).join(SEPARATOR),
|
|
441
|
-
...cellGrid.map((row) => row.map((cell, i) => cell.padEnd(widths[i] ?? 0)).join(SEPARATOR))
|
|
442
|
-
].join("\n");
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Create an output channel.
|
|
446
|
-
*
|
|
447
|
-
* Low-level factory: action handlers already receive `out` automatically from
|
|
448
|
-
* `cli()`, `.execute()`, and `runCommand()`. Call `createOutput()` when you
|
|
449
|
-
* are embedding DreamCLI primitives into a custom runtime or need a standalone
|
|
450
|
-
* output implementation outside the normal command pipeline.
|
|
451
|
-
*
|
|
452
|
-
* @param options - Optional configuration. When omitted, output is
|
|
453
|
-
* discarded (useful for silent test runs). Pass `stdout`/`stderr`
|
|
454
|
-
* writers to direct output somewhere useful.
|
|
455
|
-
*
|
|
456
|
-
* @returns An {@link Out} instance backed by an {@link OutputChannel}.
|
|
457
|
-
*
|
|
458
|
-
* @example
|
|
459
|
-
* ```ts
|
|
460
|
-
* // Production (wired by the runtime adapter)
|
|
461
|
-
* const out = createOutput({
|
|
462
|
-
* stdout: (s) => process.stdout.write(s),
|
|
463
|
-
* stderr: (s) => process.stderr.write(s),
|
|
464
|
-
* isTTY: process.stdout.isTTY === true,
|
|
465
|
-
* });
|
|
466
|
-
*
|
|
467
|
-
* // Test (capture output)
|
|
468
|
-
* const lines: string[] = [];
|
|
469
|
-
* const out = createOutput({
|
|
470
|
-
* stdout: (s) => lines.push(s),
|
|
471
|
-
* stderr: (s) => lines.push(s),
|
|
472
|
-
* });
|
|
473
|
-
* ```
|
|
474
|
-
*/
|
|
475
|
-
function createOutput(options) {
|
|
476
|
-
return new OutputChannel(resolveOptions(options));
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* Create an output channel that captures all output into arrays.
|
|
480
|
-
*
|
|
481
|
-
* Useful in tests to assert on what a handler wrote without touching
|
|
482
|
-
* real I/O.
|
|
483
|
-
*
|
|
484
|
-
* @param options - Optional {@link OutputOptions} (minus `stdout`/`stderr`,
|
|
485
|
-
* which are wired to the capture buffers automatically).
|
|
486
|
-
*
|
|
487
|
-
* @returns A tuple of `[out, captured]` — the {@link Out} channel and the
|
|
488
|
-
* {@link CapturedOutput} buffers.
|
|
489
|
-
*
|
|
490
|
-
* @example
|
|
491
|
-
* ```ts
|
|
492
|
-
* const [out, captured] = createCaptureOutput();
|
|
493
|
-
* out.log('hello');
|
|
494
|
-
* out.warn('danger');
|
|
495
|
-
* expect(captured.stdout).toEqual(['hello\n']);
|
|
496
|
-
* expect(captured.stderr).toEqual(['danger\n']);
|
|
497
|
-
* ```
|
|
498
|
-
*/
|
|
499
|
-
function createCaptureOutput(options) {
|
|
500
|
-
const captured = {
|
|
501
|
-
stdout: [],
|
|
502
|
-
stderr: [],
|
|
503
|
-
activity: []
|
|
504
|
-
};
|
|
505
|
-
return [new CaptureOutputChannel(resolveOptions({
|
|
506
|
-
...options,
|
|
507
|
-
stdout: (s) => captured.stdout.push(s),
|
|
508
|
-
stderr: (s) => captured.stderr.push(s)
|
|
509
|
-
}), captured.activity), captured];
|
|
510
|
-
}
|
|
511
|
-
//#endregion
|
|
512
|
-
export { CaptureOutputChannel, OutputChannel, clearRequestedExitCode, createCaptureOutput, createOutput, getRequestedExitCode, resolveHyperlinkOverride, setRequestedExitCode, writeLine };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|