@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,22 +1,104 @@
|
|
|
1
|
-
import { schemaBrand } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ArgBuilder, ArgConfig } from "../schema/arg.mjs";
|
|
6
|
-
import { CommandBuilder, CommandDefinition, CommandSchema } from "../schema/command.mjs";
|
|
7
|
-
import { HelpThemeFactory } from "../help/theme.mjs";
|
|
8
|
-
import "../help/index.mjs";
|
|
9
|
-
import "../output/index.mjs";
|
|
10
|
-
import { RunOptions, RunResult } from "../schema/run.mjs";
|
|
11
|
-
import { ParseOptions } from "../parse/index.mjs";
|
|
12
|
-
import { BeforeParseParams, CLIPlugin, CLIPluginHooks, PluginCommandContext, ResolvedCommandParams, plugin } from "./plugin.mjs";
|
|
13
|
-
import { HelpLinks } from "./help-links.mjs";
|
|
14
|
-
import { CompletionOptions } from "../completion/shells/shared.mjs";
|
|
15
|
-
import { Shell } from "../completion/index.mjs";
|
|
16
|
-
import { RuntimeAdapter } from "../../runtime/adapter.mjs";
|
|
17
|
-
import { PackageJsonData } from "../config/package-json.mjs";
|
|
18
|
-
import { FormatLoader } from "../config/index.mjs";
|
|
1
|
+
import { C as ErasedActionHandler, E as ExecutionStep, G as ArgConfig, Jn as schemaBrand, Ln as HelpThemeFactory, Nt as FlagBuilder, Pt as FlagConfig, U as Verbosity, W as ArgBuilder, _ as CommandDefinition, b as CommandSchema, g as CommandBuilder } from "./index-BziI2aKc.mjs";
|
|
2
|
+
import { H as Builtins, U as BuiltinsConfig, b as ParseOptions, n as RunResult, t as RunOptions, u as CLIPlugin } from "./index-DWsnGZlx.mjs";
|
|
3
|
+
import { n as RuntimeAdapter } from "./adapter-D0hbBNVB.mjs";
|
|
4
|
+
import { h as PackageJsonData, s as FormatLoader } from "./index-DOfClfYR.mjs";
|
|
19
5
|
import { Colors } from "ansispeck";
|
|
6
|
+
//#region src/core/completion/shells/shared.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Options for completion script generation.
|
|
9
|
+
*
|
|
10
|
+
* Passed to individual shell generators alongside the CLI schema.
|
|
11
|
+
*
|
|
12
|
+
* These options affect the generated script text, not runtime completion
|
|
13
|
+
* behavior after installation.
|
|
14
|
+
*/
|
|
15
|
+
interface CompletionOptions {
|
|
16
|
+
/**
|
|
17
|
+
* Override the generated shell function name prefix.
|
|
18
|
+
*
|
|
19
|
+
* Defaults to the CLI name from the schema. This is mainly useful when
|
|
20
|
+
* embedding multiple generated scripts in the same environment and you want
|
|
21
|
+
* deterministic, collision-free helper names.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* generateCompletion(schema, 'bash', { functionPrefix: 'acme' });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
readonly functionPrefix?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Controls which root-level surface shell completion exposes when a
|
|
31
|
+
* default command exists.
|
|
32
|
+
*
|
|
33
|
+
* - `'subcommands'` keeps hybrid CLIs command-centric at the root while
|
|
34
|
+
* still exposing default-command flags for a single visible default
|
|
35
|
+
* command.
|
|
36
|
+
* - `'surface'` exposes the default command's root-usable flags at the
|
|
37
|
+
* root whenever a visible default command exists.
|
|
38
|
+
*
|
|
39
|
+
* @defaultValue `'subcommands'`
|
|
40
|
+
*/
|
|
41
|
+
readonly rootMode?: 'subcommands' | 'surface';
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/core/completion/shell.d.ts
|
|
45
|
+
/**
|
|
46
|
+
* Supported shell targets for completion script generation.
|
|
47
|
+
*
|
|
48
|
+
* `bash`, `zsh`, `fish`, and `powershell` are implemented today.
|
|
49
|
+
*/
|
|
50
|
+
type Shell = 'bash' | 'zsh' | 'fish' | 'powershell';
|
|
51
|
+
/**
|
|
52
|
+
* Implemented shell values as a frozen readonly non-empty tuple.
|
|
53
|
+
*
|
|
54
|
+
* Use this tuple for user-facing validation and shell selection UIs.
|
|
55
|
+
* It intentionally matches the shipped {@link Shell} union exactly so docs,
|
|
56
|
+
* help output, and completion generation advertise the same support surface.
|
|
57
|
+
*
|
|
58
|
+
* @see {@link Shell} for the union type matching these entries.
|
|
59
|
+
*/
|
|
60
|
+
declare const SHELLS: Readonly<readonly ['bash', 'zsh', 'fish', 'powershell']>;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/core/cli/compiled.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* Executable form of one registered command.
|
|
65
|
+
*/
|
|
66
|
+
interface CompiledCommand {
|
|
67
|
+
/** The very {@linkcode CommandSchema} object the public schema tree holds. */
|
|
68
|
+
readonly schema: CommandSchema;
|
|
69
|
+
/** Action handler, `undefined` for commands that only group subcommands. */
|
|
70
|
+
readonly handler: ErasedActionHandler | undefined;
|
|
71
|
+
/** Derive and middleware steps in registration order. */
|
|
72
|
+
readonly steps: readonly ExecutionStep[];
|
|
73
|
+
/** Nested subcommands, keyed by name and by every alias. */
|
|
74
|
+
readonly subcommands: ReadonlyMap<string, CompiledCommand>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Executable state of a CLI program.
|
|
78
|
+
*/
|
|
79
|
+
interface CompiledCLI {
|
|
80
|
+
/** Top-level commands in registration order. */
|
|
81
|
+
readonly commands: readonly CompiledCommand[];
|
|
82
|
+
/** The default command, `undefined` when none is registered. */
|
|
83
|
+
readonly defaultCommand: CompiledCommand | undefined;
|
|
84
|
+
/** Plugins in registration order. */
|
|
85
|
+
readonly plugins: readonly CLIPlugin[];
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/core/cli/help-links.d.ts
|
|
89
|
+
/**
|
|
90
|
+
* OSC 8 hyperlink targets for the root-help header.
|
|
91
|
+
*
|
|
92
|
+
* Set via `CLIBuilder.links()`; fields left `undefined` are derived from
|
|
93
|
+
* manifest metadata when `.manifest()` is active.
|
|
94
|
+
*/
|
|
95
|
+
interface HelpLinks {
|
|
96
|
+
/** URL the program name links to (e.g. the repository or homepage). */
|
|
97
|
+
readonly name: string | undefined;
|
|
98
|
+
/** URL the version links to (e.g. the release tag). */
|
|
99
|
+
readonly version: string | undefined;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
20
102
|
//#region src/core/cli/index.d.ts
|
|
21
103
|
/**
|
|
22
104
|
* Runtime descriptor for the CLI program.
|
|
@@ -26,7 +108,7 @@ import { Colors } from "ansispeck";
|
|
|
26
108
|
*/
|
|
27
109
|
interface CLISchema {
|
|
28
110
|
/** Type-only seal produced by {@link createCLISchema}. */
|
|
29
|
-
readonly [schemaBrand]:
|
|
111
|
+
readonly [schemaBrand]: 'cli';
|
|
30
112
|
/** Program name (used in help text, usage lines, and completion scripts). */
|
|
31
113
|
readonly name: string;
|
|
32
114
|
/**
|
|
@@ -120,6 +202,22 @@ interface CLISchema {
|
|
|
120
202
|
*/
|
|
121
203
|
readonly builtins: Builtins;
|
|
122
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Options for {@link CLIBuilder.completions}: the generator options plus where
|
|
207
|
+
* the built-in completion is exposed.
|
|
208
|
+
*/
|
|
209
|
+
interface CompletionRegistrationOptions extends CompletionOptions {
|
|
210
|
+
/**
|
|
211
|
+
* Where the built-in shell completion is exposed.
|
|
212
|
+
*
|
|
213
|
+
* - `'command'` registers a `completions` subcommand (the default).
|
|
214
|
+
* - `'flag'` exposes an eager `--completions <shell>` flag on the CLI root
|
|
215
|
+
* instead, keeping the root free of a `completions` subcommand.
|
|
216
|
+
*
|
|
217
|
+
* @defaultValue `'command'`
|
|
218
|
+
*/
|
|
219
|
+
readonly as?: 'command' | 'flag';
|
|
220
|
+
}
|
|
123
221
|
/**
|
|
124
222
|
* Configuration for the eager `--completions <shell>` flag.
|
|
125
223
|
*
|
|
@@ -174,7 +272,7 @@ interface HelpConfig {
|
|
|
174
272
|
*
|
|
175
273
|
* @defaultValue `'alphabetical'`
|
|
176
274
|
*/
|
|
177
|
-
readonly flagOrder?:
|
|
275
|
+
readonly flagOrder?: 'alphabetical' | 'declaration';
|
|
178
276
|
/**
|
|
179
277
|
* Custom comparator over flag long names for the `Flags:` table. When set,
|
|
180
278
|
* it wins over {@link HelpConfig.flagOrder}.
|
|
@@ -193,6 +291,13 @@ interface HelpConfig {
|
|
|
193
291
|
* @defaultValue `undefined` (built-in theme)
|
|
194
292
|
*/
|
|
195
293
|
readonly theme?: HelpThemeFactory;
|
|
294
|
+
/**
|
|
295
|
+
* Theme overrides used only by function-form flag and argument descriptions.
|
|
296
|
+
* Each supplied role merges over the resolved global theme.
|
|
297
|
+
*
|
|
298
|
+
* @defaultValue `undefined` (use the global theme)
|
|
299
|
+
*/
|
|
300
|
+
readonly descriptionTheme?: HelpThemeFactory;
|
|
196
301
|
}
|
|
197
302
|
/**
|
|
198
303
|
* Config discovery settings for automatic config file loading.
|
|
@@ -202,7 +307,7 @@ interface HelpConfig {
|
|
|
202
307
|
*/
|
|
203
308
|
interface ConfigSettings {
|
|
204
309
|
/** Type-only seal produced by {@link createCLISchema}. */
|
|
205
|
-
readonly [schemaBrand]:
|
|
310
|
+
readonly [schemaBrand]: 'config';
|
|
206
311
|
/**
|
|
207
312
|
* Application name used to build config search paths.
|
|
208
313
|
*
|
|
@@ -481,6 +586,13 @@ interface RenderContextOptions {
|
|
|
481
586
|
*/
|
|
482
587
|
readonly builtins?: BuiltinsConfig;
|
|
483
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* Seals {@linkcode RenderContext} against structural construction outside the
|
|
591
|
+
* framework.
|
|
592
|
+
*
|
|
593
|
+
* @internal
|
|
594
|
+
*/
|
|
595
|
+
declare const renderContextBrand: unique symbol;
|
|
484
596
|
/**
|
|
485
597
|
* The output decisions the framework will make for a given argv, resolved
|
|
486
598
|
* before `.run()`.
|
|
@@ -584,7 +696,19 @@ interface DefaultCommandOptions {
|
|
|
584
696
|
* ```
|
|
585
697
|
*/
|
|
586
698
|
declare class CLIBuilder {
|
|
699
|
+
/** @internal Runtime schema descriptor. */
|
|
700
|
+
readonly schema: CLISchema;
|
|
587
701
|
private constructor();
|
|
702
|
+
/**
|
|
703
|
+
* Build a CLI builder around a schema and its compiled execution graph.
|
|
704
|
+
*
|
|
705
|
+
* @param schema - Runtime schema descriptor.
|
|
706
|
+
* @param compiled - Compiled commands, default command, and plugins.
|
|
707
|
+
* @returns The builder, with its compiled state registered.
|
|
708
|
+
*
|
|
709
|
+
* @internal
|
|
710
|
+
*/
|
|
711
|
+
static _from(schema: CLISchema, compiled: CompiledCLI): CLIBuilder;
|
|
588
712
|
/**
|
|
589
713
|
* Set the program version (shown by `--version`).
|
|
590
714
|
*
|
|
@@ -969,7 +1093,7 @@ declare class CLIBuilder {
|
|
|
969
1093
|
* .run();
|
|
970
1094
|
* ```
|
|
971
1095
|
*/
|
|
972
|
-
completions(options?:
|
|
1096
|
+
completions(options?: CompletionRegistrationOptions): CLIBuilder;
|
|
973
1097
|
/**
|
|
974
1098
|
* Execute the CLI program against explicit argv.
|
|
975
1099
|
*
|
|
@@ -1012,7 +1136,7 @@ declare class CLIBuilder {
|
|
|
1012
1136
|
* options object can never silently enable inference (use `true` for that).
|
|
1013
1137
|
*/
|
|
1014
1138
|
type InferNameOption = boolean | {
|
|
1015
|
-
readonly scope:
|
|
1139
|
+
readonly scope: 'keep' | 'strip';
|
|
1016
1140
|
};
|
|
1017
1141
|
/** Discovery settings accepted by {@link CLIBuilder.manifest}. */
|
|
1018
1142
|
interface ManifestSettings {
|
|
@@ -1086,7 +1210,7 @@ interface CLIOptions {
|
|
|
1086
1210
|
* .run();
|
|
1087
1211
|
* ```
|
|
1088
1212
|
*/
|
|
1089
|
-
declare function cli(name: string, options?: Omit<CLIOptions,
|
|
1213
|
+
declare function cli(name: string, options?: Omit<CLIOptions, 'name'>): CLIBuilder;
|
|
1090
1214
|
/** Create a new CLI program builder from an options object. */
|
|
1091
1215
|
declare function cli(options: CLIOptions): CLIBuilder;
|
|
1092
1216
|
/**
|
|
@@ -1108,4 +1232,4 @@ declare function cli(options: CLIOptions): CLIBuilder;
|
|
|
1108
1232
|
*/
|
|
1109
1233
|
declare function isMainModule(meta: ImportMeta): boolean;
|
|
1110
1234
|
//#endregion
|
|
1111
|
-
export {
|
|
1235
|
+
export { SHELLS as C, HelpLinks as S, CompletionOptions as T, ResolvedManifestSettings as _, CLIRunOptions as a, isMainModule as b, CompletionsFlagConfig as c, DefaultCommandOptions as d, HelpConfig as f, RenderContextOptions as g, RenderContext as h, CLIOptions as i, ConfigSettings as l, ManifestSettings as m, CLIDefinition as n, CLISchema as o, InferNameOption as p, CLIExecuteOptions as r, CompletionRegistrationOptions as s, CLIBuilder as t, ConfigSettingsDefinition as u, cli as v, Shell as w, resolveRenderContext as x, createCLISchema as y };
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { n as RuntimeAdapter } from "./adapter-D0hbBNVB.mjs";
|
|
2
|
+
//#region src/runtime/detect.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Auto-detects the current JavaScript runtime environment.
|
|
5
|
+
*
|
|
6
|
+
* Uses `globalThis` feature detection (version globals) to identify
|
|
7
|
+
* the runtime without importing platform-specific modules. This is
|
|
8
|
+
* the recommended approach because each runtime defines a unique
|
|
9
|
+
* global marker:
|
|
10
|
+
*
|
|
11
|
+
* - **Bun:** `globalThis.Bun.version` (string)
|
|
12
|
+
* - **Deno:** `globalThis.Deno.version` (object with `deno` key)
|
|
13
|
+
* - **Node:** `globalThis.process.versions.node` (string)
|
|
14
|
+
*
|
|
15
|
+
* Detection order matters: Bun provides a Node-compatible `process`
|
|
16
|
+
* global, so it must be checked *before* Node to avoid misidentification.
|
|
17
|
+
*
|
|
18
|
+
* @module @kjanat/dreamcli/runtime/detect
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Known JavaScript runtime environments.
|
|
22
|
+
*
|
|
23
|
+
* - `'node'` — Node.js
|
|
24
|
+
* - `'bun'` — Bun
|
|
25
|
+
* - `'deno'` — Deno
|
|
26
|
+
* - `'unknown'` — Unrecognized environment
|
|
27
|
+
*/
|
|
28
|
+
type Runtime = 'node' | 'bun' | 'deno' | 'unknown';
|
|
29
|
+
/**
|
|
30
|
+
* All known runtime values as a readonly tuple.
|
|
31
|
+
*
|
|
32
|
+
* Useful for validation, iteration, and exhaustiveness checks.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* if (RUNTIMES.includes(value)) {
|
|
37
|
+
* // value is a valid Runtime
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
declare const RUNTIMES: readonly ['node', 'bun', 'deno', 'unknown'];
|
|
42
|
+
/**
|
|
43
|
+
* Minimal `globalThis` shape used for runtime detection.
|
|
44
|
+
*
|
|
45
|
+
* Each field is optional — only the present one identifies the runtime.
|
|
46
|
+
* Typed as `unknown` where we only need truthiness; version fields are
|
|
47
|
+
* typed just enough to distinguish runtimes safely.
|
|
48
|
+
*/
|
|
49
|
+
interface GlobalForDetect {
|
|
50
|
+
/** Present when running on Bun. */
|
|
51
|
+
readonly Bun?: {
|
|
52
|
+
readonly version?: string;
|
|
53
|
+
};
|
|
54
|
+
/** Present when running on Deno. */
|
|
55
|
+
readonly Deno?: {
|
|
56
|
+
readonly version?: {
|
|
57
|
+
readonly deno?: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
/** Present on Node.js (and Bun, which mimics it). */
|
|
61
|
+
readonly process?: {
|
|
62
|
+
readonly versions?: {
|
|
63
|
+
readonly node?: string;
|
|
64
|
+
readonly bun?: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Detect the current JavaScript runtime.
|
|
70
|
+
*
|
|
71
|
+
* Uses `globalThis` feature detection to identify the host runtime.
|
|
72
|
+
* Detection order is significant: Bun is checked before Node because
|
|
73
|
+
* Bun exposes a Node-compatible `process` global.
|
|
74
|
+
*
|
|
75
|
+
* @param globals - Override `globalThis` for testing. Production callers
|
|
76
|
+
* should omit this parameter.
|
|
77
|
+
* @returns The detected {@link Runtime} identifier.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const rt = detectRuntime();
|
|
82
|
+
* // rt === 'node' | 'bun' | 'deno' | 'unknown'
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
declare function detectRuntime(globals?: GlobalForDetect): Runtime;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/runtime/auto.d.ts
|
|
88
|
+
/**
|
|
89
|
+
* Create a runtime adapter for the current environment.
|
|
90
|
+
*
|
|
91
|
+
* Detection order follows {@link detectRuntime}: Bun → Deno → Node → unknown.
|
|
92
|
+
* Only Deno needs a distinct adapter; Bun, Node, and unknown runtimes all use
|
|
93
|
+
* the Node adapter because they expose a Node-compatible `process` global.
|
|
94
|
+
*
|
|
95
|
+
* @param globals - Override `globalThis` for testing. Production callers
|
|
96
|
+
* should omit this parameter.
|
|
97
|
+
* @returns A {@linkcode RuntimeAdapter} for the detected runtime.
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* import { cli } from '@kjanat/dreamcli';
|
|
102
|
+
*
|
|
103
|
+
* // Auto-detects Node/Bun/Deno and creates the right adapter
|
|
104
|
+
* cli('mycli').run(); // uses createAdapter() internally
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
declare function createAdapter(globals?: GlobalForDetect): RuntimeAdapter;
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/runtime/deno.d.ts
|
|
110
|
+
/**
|
|
111
|
+
* Minimal subset of the Deno namespace needed by the adapter.
|
|
112
|
+
*
|
|
113
|
+
* We avoid `@types/deno` to keep the core runtime-agnostic at the type level.
|
|
114
|
+
* This interface declares only what `createDenoAdapter` actually reads.
|
|
115
|
+
*
|
|
116
|
+
* The `env` property is optional because it requires `--allow-env` permission.
|
|
117
|
+
* When permission is denied, the adapter catches the error and falls back to
|
|
118
|
+
* an empty env object.
|
|
119
|
+
*/
|
|
120
|
+
interface DenoNamespace {
|
|
121
|
+
/** Build target metadata (OS detection). */
|
|
122
|
+
readonly build: {
|
|
123
|
+
readonly os: 'darwin' | 'linux' | 'android' | 'windows' | 'freebsd' | 'netbsd' | 'aix' | 'solaris' | 'illumos';
|
|
124
|
+
};
|
|
125
|
+
/** Deno version info — used for minimum-version guard. */
|
|
126
|
+
readonly version?: {
|
|
127
|
+
readonly deno?: string;
|
|
128
|
+
};
|
|
129
|
+
/** Raw command-line args (excludes the binary/script — Deno pre-strips them). */
|
|
130
|
+
readonly args: readonly string[];
|
|
131
|
+
/** Environment variable access (requires `--allow-env`). */
|
|
132
|
+
readonly env: {
|
|
133
|
+
/** Get a single env var. Returns `undefined` if unset or permission denied. */
|
|
134
|
+
get(key: string): string | undefined;
|
|
135
|
+
/** Get all env vars as a plain object. Throws on permission denied. */
|
|
136
|
+
toObject(): Record<string, string>;
|
|
137
|
+
};
|
|
138
|
+
/** Current working directory (may throw if `--allow-read` is denied for cwd). */
|
|
139
|
+
cwd(): string;
|
|
140
|
+
/** Standard output — synchronous byte writer with TTY detection. */
|
|
141
|
+
readonly stdout: {
|
|
142
|
+
/** Write raw bytes to stdout synchronously. */
|
|
143
|
+
writeSync(p: Uint8Array): number;
|
|
144
|
+
/** Whether stdout is connected to a TTY. */
|
|
145
|
+
isTerminal(): boolean;
|
|
146
|
+
};
|
|
147
|
+
/** Current console dimensions. */
|
|
148
|
+
consoleSize?(): {
|
|
149
|
+
readonly columns: number;
|
|
150
|
+
readonly rows: number;
|
|
151
|
+
};
|
|
152
|
+
/** Register a native signal listener. */
|
|
153
|
+
addSignalListener?(signal: 'SIGWINCH', listener: () => void): void;
|
|
154
|
+
/** Remove a native signal listener. */
|
|
155
|
+
removeSignalListener?(signal: 'SIGWINCH', listener: () => void): void;
|
|
156
|
+
/** Standard error — synchronous byte writer. */
|
|
157
|
+
readonly stderr: {
|
|
158
|
+
/** Write raw bytes to stderr synchronously. */
|
|
159
|
+
writeSync(p: Uint8Array): number;
|
|
160
|
+
};
|
|
161
|
+
/** Standard input — TTY detection and readable byte stream. */
|
|
162
|
+
readonly stdin: {
|
|
163
|
+
/** Whether stdin is connected to a TTY. */
|
|
164
|
+
isTerminal(): boolean;
|
|
165
|
+
/** Readable stream for stdin bytes. */
|
|
166
|
+
readonly readable: ReadableStream<Uint8Array>;
|
|
167
|
+
};
|
|
168
|
+
/** Exit the process with the given code. */
|
|
169
|
+
exit(code: number): never;
|
|
170
|
+
/** Read a file as UTF-8 text (requires `--allow-read`). */
|
|
171
|
+
readTextFile(path: string): Promise<string>;
|
|
172
|
+
/** Probe a filesystem path (requires `--allow-read`). */
|
|
173
|
+
stat(path: string): Promise<{
|
|
174
|
+
readonly isDirectory: boolean;
|
|
175
|
+
}>;
|
|
176
|
+
/** Create a directory (requires `--allow-write`). */
|
|
177
|
+
mkdir(path: string, options?: {
|
|
178
|
+
readonly recursive?: boolean;
|
|
179
|
+
}): Promise<void>;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Create a runtime adapter backed by the Deno namespace.
|
|
183
|
+
*
|
|
184
|
+
* Reads `Deno.args`, `Deno.env`, `Deno.cwd()`, and wraps Deno's stream-based
|
|
185
|
+
* I/O into the {@linkcode WriteFn}/{@linkcode ReadFn} functions expected by the framework.
|
|
186
|
+
*
|
|
187
|
+
* Unlike Node/Bun, Deno strips the binary and script path from `Deno.args`.
|
|
188
|
+
* The adapter prepends synthetic entries (`['deno', 'run']`) so the argv
|
|
189
|
+
* shape matches the {@linkcode RuntimeAdapter} contract (binary + script + user args).
|
|
190
|
+
*
|
|
191
|
+
* @param ns - Override the Deno namespace (useful for testing the adapter itself).
|
|
192
|
+
* @returns A {@linkcode RuntimeAdapter} backed by Deno's namespace APIs.
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```ts
|
|
196
|
+
* import { cli } from '@kjanat/dreamcli';
|
|
197
|
+
* import { createDenoAdapter } from '@kjanat/dreamcli/runtime';
|
|
198
|
+
*
|
|
199
|
+
* cli('mycli')
|
|
200
|
+
* .command(deploy)
|
|
201
|
+
* .run({ adapter: createDenoAdapter() });
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
declare function createDenoAdapter(ns?: DenoNamespace): RuntimeAdapter;
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/runtime/node.d.ts
|
|
207
|
+
/**
|
|
208
|
+
* Minimal subset of the Node.js `process` object needed by the adapter.
|
|
209
|
+
*
|
|
210
|
+
* We avoid importing `@types/node` to keep the core runtime-agnostic
|
|
211
|
+
* at the type level. This interface declares only what `createNodeAdapter`
|
|
212
|
+
* actually reads from the global.
|
|
213
|
+
*/
|
|
214
|
+
interface NodeProcess {
|
|
215
|
+
/** Raw process arguments (`[binary, script, ...userArgs]`). */
|
|
216
|
+
readonly argv: readonly string[];
|
|
217
|
+
/** Environment variables (values are `undefined` for unset keys). */
|
|
218
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
219
|
+
/** Runtime version strings — used for version-guard checks. */
|
|
220
|
+
readonly versions?: {
|
|
221
|
+
readonly node?: string;
|
|
222
|
+
readonly bun?: string;
|
|
223
|
+
};
|
|
224
|
+
/** Return the current working directory. */
|
|
225
|
+
cwd(): string;
|
|
226
|
+
/** Platform identifier (e.g. `'linux'`, `'darwin'`, `'win32'`). */
|
|
227
|
+
readonly platform: string;
|
|
228
|
+
/** Standard input stream with TTY detection and async iteration. */
|
|
229
|
+
readonly stdin: {
|
|
230
|
+
readonly isTTY?: boolean;
|
|
231
|
+
/** Async iterable for reading all of stdin (used by readStdin). */
|
|
232
|
+
[Symbol.asyncIterator](): AsyncIterator<Uint8Array>;
|
|
233
|
+
};
|
|
234
|
+
/** Standard output stream with TTY detection and write. */
|
|
235
|
+
readonly stdout: {
|
|
236
|
+
readonly isTTY?: boolean;
|
|
237
|
+
readonly columns?: number;
|
|
238
|
+
readonly rows?: number;
|
|
239
|
+
getWindowSize?(): readonly [number, number];
|
|
240
|
+
on?(event: 'resize', listener: () => void): unknown;
|
|
241
|
+
off?(event: 'resize', listener: () => void): unknown;
|
|
242
|
+
removeListener?(event: 'resize', listener: () => void): unknown;
|
|
243
|
+
write(data: string): unknown;
|
|
244
|
+
};
|
|
245
|
+
/** Standard error stream with write. */
|
|
246
|
+
readonly stderr: {
|
|
247
|
+
write(data: string): unknown;
|
|
248
|
+
};
|
|
249
|
+
/** Terminate the process with the given exit code. */
|
|
250
|
+
exit(code: number): never;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Create a runtime adapter backed by Node.js `process` globals.
|
|
254
|
+
*
|
|
255
|
+
* Reads `process.argv`, `process.env`, `process.cwd()`, and wraps
|
|
256
|
+
* `process.stdout.write`/`process.stderr.write` as {@linkcode WriteFn} functions.
|
|
257
|
+
*
|
|
258
|
+
* Also works on Bun, which provides a Node-compatible `process` global.
|
|
259
|
+
*
|
|
260
|
+
* @param proc - Override the process object (useful for testing the adapter itself).
|
|
261
|
+
* @returns A {@linkcode RuntimeAdapter} backed by Node.js process state.
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```ts
|
|
265
|
+
* import { cli } from '@kjanat/dreamcli';
|
|
266
|
+
* import { createNodeAdapter } from '@kjanat/dreamcli/runtime/node';
|
|
267
|
+
*
|
|
268
|
+
* cli('mycli')
|
|
269
|
+
* .command(deploy)
|
|
270
|
+
* .run({ adapter: createNodeAdapter() });
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
273
|
+
declare function createNodeAdapter(proc?: NodeProcess): RuntimeAdapter;
|
|
274
|
+
//#endregion
|
|
275
|
+
export { createAdapter as a, Runtime as c, createDenoAdapter as i, detectRuntime as l, createNodeAdapter as n, GlobalForDetect as o, DenoNamespace as r, RUNTIMES as s, NodeProcess as t };
|