@kjanat/dreamcli 4.0.0-rc.1 → 4.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (501) hide show
  1. package/CHANGELOG.md +516 -1842
  2. package/dist/core/cli/builtins.d.mts +74 -4
  3. package/dist/core/cli/compiled.d.mts +39 -2
  4. package/dist/core/cli/dispatch.d.mts +81 -4
  5. package/dist/core/cli/help-links.d.mts +13 -1
  6. package/dist/core/cli/index.d.mts +77 -12
  7. package/dist/core/cli/index.mjs +9 -3
  8. package/dist/core/cli/planner.d.mts +86 -8
  9. package/dist/core/cli/reserved-flags.d.mts +19 -1
  10. package/dist/core/cli/root-help.d.mts +53 -1
  11. package/dist/core/cli/root-help.mjs +1 -1
  12. package/dist/core/cli/root-output-flags.d.mts +74 -1
  13. package/dist/core/cli/root-surface.d.mts +64 -1
  14. package/dist/core/cli/runtime-preflight.d.mts +213 -1
  15. package/dist/core/completion/index.d.mts +2 -2
  16. package/dist/core/completion/shells/bash.d.mts +1 -0
  17. package/dist/core/completion/shells/bash.mjs +4 -1
  18. package/dist/core/completion/shells/fish.d.mts +1 -0
  19. package/dist/core/completion/shells/fish.mjs +2 -1
  20. package/dist/core/completion/shells/powershell.d.mts +1 -0
  21. package/dist/core/completion/shells/powershell.mjs +2 -1
  22. package/dist/core/completion/shells/shared.d.mts +118 -3
  23. package/dist/core/completion/shells/shared.mjs +1 -1
  24. package/dist/core/completion/shells/zsh.d.mts +1 -0
  25. package/dist/core/completion/shells/zsh.mjs +6 -2
  26. package/dist/core/config/index.d.mts +1 -1
  27. package/dist/core/config/package-json.d.mts +1 -1
  28. package/dist/core/errors/index.d.mts +17 -18
  29. package/dist/core/execution/index.d.mts +61 -1
  30. package/dist/core/help/ansi.d.mts +11 -0
  31. package/dist/core/help/index.d.mts +42 -3
  32. package/dist/core/help/index.mjs +14 -10
  33. package/dist/core/help/theme.d.mts +39 -1
  34. package/dist/core/help/theme.mjs +24 -1
  35. package/dist/core/json-schema/index.d.mts +11 -11
  36. package/dist/core/json-schema/index.mjs +7 -6
  37. package/dist/core/output/activity.d.mts +193 -1
  38. package/dist/core/output/bind.d.mts +37 -1
  39. package/dist/core/output/contracts.d.mts +5 -4
  40. package/dist/core/output/display-value.d.mts +19 -1
  41. package/dist/core/output/index.d.mts +191 -7
  42. package/dist/core/output/index.mjs +6 -4
  43. package/dist/core/output/renderers.d.mts +45 -1
  44. package/dist/core/parse/index.d.mts +4 -4
  45. package/dist/core/parse/occurrences.d.mts +9 -8
  46. package/dist/core/prompt/index.d.mts +3 -3
  47. package/dist/core/read-flags/index.d.mts +1 -1
  48. package/dist/core/resolve/coerce.d.mts +4 -4
  49. package/dist/core/resolve/config.d.mts +10 -1
  50. package/dist/core/resolve/contracts.d.mts +9 -8
  51. package/dist/core/resolve/flags.d.mts +28 -1
  52. package/dist/core/resolve/path-checks.d.mts +4 -3
  53. package/dist/core/resolve/redaction.d.mts +1 -0
  54. package/dist/core/resolve/stages.d.mts +7 -6
  55. package/dist/core/resolve/standard.d.mts +26 -1
  56. package/dist/core/schema/activity.d.mts +16 -16
  57. package/dist/core/schema/arg.d.mts +76 -66
  58. package/dist/core/schema/brand.d.mts +1 -1
  59. package/dist/core/schema/cardinality.d.mts +18 -17
  60. package/dist/core/schema/command.d.mts +40 -9
  61. package/dist/core/schema/flag.d.mts +98 -90
  62. package/dist/core/schema/index.d.mts +1 -1
  63. package/dist/core/schema/middleware.d.mts +4 -1
  64. package/dist/core/schema/number-constraints.d.mts +5 -5
  65. package/dist/core/schema/prompt.d.mts +4 -4
  66. package/dist/core/schema/provenance.d.mts +11 -11
  67. package/dist/core/schema/run.d.mts +58 -8
  68. package/dist/core/schema/source.d.mts +13 -12
  69. package/dist/core/schema/standard.d.mts +31 -24
  70. package/dist/core/schema/stdin.d.mts +12 -2
  71. package/dist/core/schema/string-constraints.d.mts +4 -4
  72. package/dist/core/schema/value-parsers.d.mts +3 -3
  73. package/dist/core/schema/value.d.mts +15 -14
  74. package/dist/core/testkit/index.d.mts +13 -4
  75. package/dist/index.d.mts +6 -6
  76. package/dist/runtime/adapter.d.mts +3 -3
  77. package/dist/runtime/deno.d.mts +3 -3
  78. package/dist/runtime/detect.d.mts +2 -2
  79. package/dist/runtime/node.d.mts +3 -3
  80. package/dist/runtime/paths.d.mts +31 -1
  81. package/dist/strings.d.mts +16 -1
  82. package/dist/version.d.mts +16 -4
  83. package/dist/version.mjs +2 -2
  84. package/package.json +15 -11
  85. package/skills/cli-creation/SKILL.md +1 -1
  86. package/examples/gh/node_modules/typescript/LICENSE +0 -55
  87. package/examples/gh/node_modules/typescript/NOTICE.txt +0 -436
  88. package/examples/gh/node_modules/typescript/README.md +0 -49
  89. package/examples/gh/node_modules/typescript/bin/tsc +0 -2
  90. package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts +0 -529
  91. package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts.map +0 -1
  92. package/examples/gh/node_modules/typescript/dist/api/async/api.js +0 -1657
  93. package/examples/gh/node_modules/typescript/dist/api/async/api.js.map +0 -1
  94. package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts +0 -39
  95. package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts.map +0 -1
  96. package/examples/gh/node_modules/typescript/dist/api/async/client.js +0 -211
  97. package/examples/gh/node_modules/typescript/dist/api/async/client.js.map +0 -1
  98. package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts +0 -310
  99. package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts.map +0 -1
  100. package/examples/gh/node_modules/typescript/dist/api/async/types.js +0 -2
  101. package/examples/gh/node_modules/typescript/dist/api/async/types.js.map +0 -1
  102. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts +0 -109
  103. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts.map +0 -1
  104. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js +0 -2
  105. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js.map +0 -1
  106. package/examples/gh/node_modules/typescript/dist/api/fs.d.ts +0 -23
  107. package/examples/gh/node_modules/typescript/dist/api/fs.d.ts.map +0 -1
  108. package/examples/gh/node_modules/typescript/dist/api/fs.js +0 -109
  109. package/examples/gh/node_modules/typescript/dist/api/fs.js.map +0 -1
  110. package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts +0 -15
  111. package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts.map +0 -1
  112. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts +0 -5
  113. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +0 -1
  114. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js +0 -74
  115. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js.map +0 -1
  116. package/examples/gh/node_modules/typescript/dist/api/node/encoder.js +0 -287
  117. package/examples/gh/node_modules/typescript/dist/api/node/encoder.js.map +0 -1
  118. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts +0 -32
  119. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts.map +0 -1
  120. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js +0 -213
  121. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js.map +0 -1
  122. package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts +0 -76
  123. package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts.map +0 -1
  124. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts +0 -182
  125. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts.map +0 -1
  126. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js +0 -835
  127. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js.map +0 -1
  128. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +0 -62
  129. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +0 -1
  130. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js +0 -122
  131. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js.map +0 -1
  132. package/examples/gh/node_modules/typescript/dist/api/node/node.js +0 -298
  133. package/examples/gh/node_modules/typescript/dist/api/node/node.js.map +0 -1
  134. package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts +0 -29
  135. package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts.map +0 -1
  136. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts +0 -4
  137. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +0 -1
  138. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js +0 -241
  139. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js.map +0 -1
  140. package/examples/gh/node_modules/typescript/dist/api/node/protocol.js +0 -30
  141. package/examples/gh/node_modules/typescript/dist/api/node/protocol.js.map +0 -1
  142. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts +0 -6
  143. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts.map +0 -1
  144. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js +0 -61
  145. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js.map +0 -1
  146. package/examples/gh/node_modules/typescript/dist/api/options.d.ts +0 -32
  147. package/examples/gh/node_modules/typescript/dist/api/options.d.ts.map +0 -1
  148. package/examples/gh/node_modules/typescript/dist/api/options.js +0 -11
  149. package/examples/gh/node_modules/typescript/dist/api/options.js.map +0 -1
  150. package/examples/gh/node_modules/typescript/dist/api/path.d.ts +0 -110
  151. package/examples/gh/node_modules/typescript/dist/api/path.d.ts.map +0 -1
  152. package/examples/gh/node_modules/typescript/dist/api/path.js +0 -508
  153. package/examples/gh/node_modules/typescript/dist/api/path.js.map +0 -1
  154. package/examples/gh/node_modules/typescript/dist/api/proto.d.ts +0 -239
  155. package/examples/gh/node_modules/typescript/dist/api/proto.d.ts.map +0 -1
  156. package/examples/gh/node_modules/typescript/dist/api/proto.js +0 -37
  157. package/examples/gh/node_modules/typescript/dist/api/proto.js.map +0 -1
  158. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts +0 -79
  159. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +0 -1
  160. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js +0 -169
  161. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js.map +0 -1
  162. package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts +0 -529
  163. package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts.map +0 -1
  164. package/examples/gh/node_modules/typescript/dist/api/sync/api.js +0 -1665
  165. package/examples/gh/node_modules/typescript/dist/api/sync/api.js.map +0 -1
  166. package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts +0 -30
  167. package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts.map +0 -1
  168. package/examples/gh/node_modules/typescript/dist/api/sync/client.js +0 -124
  169. package/examples/gh/node_modules/typescript/dist/api/sync/client.js.map +0 -1
  170. package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts +0 -310
  171. package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts.map +0 -1
  172. package/examples/gh/node_modules/typescript/dist/api/sync/types.js +0 -2
  173. package/examples/gh/node_modules/typescript/dist/api/sync/types.js.map +0 -1
  174. package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts +0 -114
  175. package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts.map +0 -1
  176. package/examples/gh/node_modules/typescript/dist/api/syncChannel.js +0 -508
  177. package/examples/gh/node_modules/typescript/dist/api/syncChannel.js.map +0 -1
  178. package/examples/gh/node_modules/typescript/dist/api/timing.d.ts +0 -175
  179. package/examples/gh/node_modules/typescript/dist/api/timing.d.ts.map +0 -1
  180. package/examples/gh/node_modules/typescript/dist/api/timing.js +0 -149
  181. package/examples/gh/node_modules/typescript/dist/api/timing.js.map +0 -1
  182. package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts +0 -100
  183. package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts.map +0 -1
  184. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts +0 -1161
  185. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts.map +0 -1
  186. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js +0 -4
  187. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js.map +0 -1
  188. package/examples/gh/node_modules/typescript/dist/ast/ast.js +0 -7
  189. package/examples/gh/node_modules/typescript/dist/ast/ast.js.map +0 -1
  190. package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts +0 -19
  191. package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts.map +0 -1
  192. package/examples/gh/node_modules/typescript/dist/ast/astnav.js +0 -596
  193. package/examples/gh/node_modules/typescript/dist/ast/astnav.js.map +0 -1
  194. package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts +0 -16
  195. package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts.map +0 -1
  196. package/examples/gh/node_modules/typescript/dist/ast/clone.js +0 -104
  197. package/examples/gh/node_modules/typescript/dist/ast/clone.js.map +0 -1
  198. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts +0 -520
  199. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts.map +0 -1
  200. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js +0 -3057
  201. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js.map +0 -1
  202. package/examples/gh/node_modules/typescript/dist/ast/index.d.ts +0 -20
  203. package/examples/gh/node_modules/typescript/dist/ast/index.d.ts.map +0 -1
  204. package/examples/gh/node_modules/typescript/dist/ast/index.js +0 -20
  205. package/examples/gh/node_modules/typescript/dist/ast/index.js.map +0 -1
  206. package/examples/gh/node_modules/typescript/dist/ast/is.d.ts +0 -35
  207. package/examples/gh/node_modules/typescript/dist/ast/is.d.ts.map +0 -1
  208. package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts +0 -329
  209. package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts.map +0 -1
  210. package/examples/gh/node_modules/typescript/dist/ast/is.generated.js +0 -1103
  211. package/examples/gh/node_modules/typescript/dist/ast/is.generated.js.map +0 -1
  212. package/examples/gh/node_modules/typescript/dist/ast/is.js +0 -233
  213. package/examples/gh/node_modules/typescript/dist/ast/is.js.map +0 -1
  214. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts +0 -11
  215. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts.map +0 -1
  216. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js +0 -202
  217. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js.map +0 -1
  218. package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts +0 -97
  219. package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts.map +0 -1
  220. package/examples/gh/node_modules/typescript/dist/ast/scanner.js +0 -2230
  221. package/examples/gh/node_modules/typescript/dist/ast/scanner.js.map +0 -1
  222. package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts +0 -17
  223. package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts.map +0 -1
  224. package/examples/gh/node_modules/typescript/dist/ast/utils.js +0 -67
  225. package/examples/gh/node_modules/typescript/dist/ast/utils.js.map +0 -1
  226. package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts +0 -14
  227. package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts.map +0 -1
  228. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts +0 -50
  229. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +0 -1
  230. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js +0 -978
  231. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js.map +0 -1
  232. package/examples/gh/node_modules/typescript/dist/ast/visitor.js +0 -47
  233. package/examples/gh/node_modules/typescript/dist/ast/visitor.js.map +0 -1
  234. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts +0 -2
  235. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts.map +0 -1
  236. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +0 -129
  237. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +0 -1
  238. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js +0 -132
  239. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js.map +0 -1
  240. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js +0 -130
  241. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js.map +0 -1
  242. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +0 -2
  243. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +0 -1
  244. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +0 -5
  245. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +0 -1
  246. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +0 -6
  247. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +0 -1
  248. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js +0 -6
  249. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js.map +0 -1
  250. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts +0 -2
  251. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +0 -1
  252. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +0 -28
  253. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +0 -1
  254. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js +0 -30
  255. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +0 -1
  256. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js +0 -30
  257. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js.map +0 -1
  258. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +0 -2
  259. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +0 -1
  260. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +0 -7
  261. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +0 -1
  262. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +0 -9
  263. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +0 -1
  264. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js +0 -9
  265. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js.map +0 -1
  266. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts +0 -2
  267. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts.map +0 -1
  268. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +0 -12
  269. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +0 -1
  270. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js +0 -14
  271. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js.map +0 -1
  272. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js +0 -14
  273. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js.map +0 -1
  274. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts +0 -2
  275. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +0 -1
  276. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +0 -23
  277. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +0 -1
  278. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js +0 -25
  279. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +0 -1
  280. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js +0 -25
  281. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js.map +0 -1
  282. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts +0 -2
  283. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +0 -1
  284. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +0 -9
  285. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +0 -1
  286. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js +0 -11
  287. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +0 -1
  288. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js +0 -11
  289. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js.map +0 -1
  290. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts +0 -2
  291. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts.map +0 -1
  292. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +0 -5
  293. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +0 -1
  294. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js +0 -6
  295. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js.map +0 -1
  296. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js +0 -6
  297. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js.map +0 -1
  298. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts +0 -2
  299. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +0 -1
  300. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +0 -42
  301. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +0 -1
  302. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js +0 -44
  303. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +0 -1
  304. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js +0 -44
  305. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js.map +0 -1
  306. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +0 -2
  307. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +0 -1
  308. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +0 -7
  309. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +0 -1
  310. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +0 -9
  311. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +0 -1
  312. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js +0 -9
  313. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +0 -1
  314. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts +0 -2
  315. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts.map +0 -1
  316. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +0 -17
  317. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +0 -1
  318. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js +0 -19
  319. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js.map +0 -1
  320. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js +0 -19
  321. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js.map +0 -1
  322. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +0 -2
  323. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +0 -1
  324. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +0 -9
  325. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +0 -1
  326. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +0 -11
  327. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +0 -1
  328. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js +0 -11
  329. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +0 -1
  330. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts +0 -2
  331. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts.map +0 -1
  332. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +0 -6
  333. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +0 -1
  334. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js +0 -8
  335. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js.map +0 -1
  336. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js +0 -8
  337. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js.map +0 -1
  338. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +0 -2
  339. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +0 -1
  340. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +0 -36
  341. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +0 -1
  342. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +0 -38
  343. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +0 -1
  344. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js +0 -38
  345. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +0 -1
  346. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts +0 -2
  347. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +0 -1
  348. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +0 -44
  349. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +0 -1
  350. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js +0 -46
  351. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +0 -1
  352. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js +0 -46
  353. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js.map +0 -1
  354. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts +0 -2
  355. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts.map +0 -1
  356. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +0 -50
  357. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +0 -1
  358. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js +0 -52
  359. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js.map +0 -1
  360. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js +0 -52
  361. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js.map +0 -1
  362. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +0 -2
  363. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +0 -1
  364. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +0 -16
  365. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +0 -1
  366. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +0 -18
  367. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +0 -1
  368. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js +0 -18
  369. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +0 -1
  370. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +0 -2
  371. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +0 -1
  372. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +0 -13
  373. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +0 -1
  374. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +0 -14
  375. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +0 -1
  376. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js +0 -14
  377. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +0 -1
  378. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts +0 -2
  379. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts.map +0 -1
  380. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +0 -11
  381. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +0 -1
  382. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js +0 -12
  383. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js.map +0 -1
  384. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js +0 -12
  385. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js.map +0 -1
  386. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts +0 -2
  387. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +0 -1
  388. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +0 -17
  389. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +0 -1
  390. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js +0 -18
  391. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +0 -1
  392. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js +0 -18
  393. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js.map +0 -1
  394. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts +0 -2
  395. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +0 -1
  396. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +0 -15
  397. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +0 -1
  398. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js +0 -17
  399. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +0 -1
  400. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js +0 -17
  401. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js.map +0 -1
  402. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts +0 -2
  403. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts.map +0 -1
  404. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +0 -5
  405. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +0 -1
  406. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js +0 -7
  407. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js.map +0 -1
  408. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js +0 -7
  409. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js.map +0 -1
  410. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts +0 -2
  411. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +0 -1
  412. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +0 -71
  413. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +0 -1
  414. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js +0 -73
  415. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +0 -1
  416. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js +0 -73
  417. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js.map +0 -1
  418. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts +0 -2
  419. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +0 -1
  420. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +0 -389
  421. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +0 -1
  422. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js +0 -391
  423. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +0 -1
  424. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js +0 -391
  425. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js.map +0 -1
  426. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts +0 -2
  427. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +0 -1
  428. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +0 -30
  429. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +0 -1
  430. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js +0 -32
  431. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +0 -1
  432. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js +0 -32
  433. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js.map +0 -1
  434. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts +0 -2
  435. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts.map +0 -1
  436. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +0 -76
  437. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +0 -1
  438. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js +0 -78
  439. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js.map +0 -1
  440. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js +0 -78
  441. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js.map +0 -1
  442. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts +0 -2
  443. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +0 -1
  444. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +0 -7
  445. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +0 -1
  446. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js +0 -9
  447. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +0 -1
  448. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js +0 -9
  449. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js.map +0 -1
  450. package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts +0 -23
  451. package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts.map +0 -1
  452. package/examples/gh/node_modules/typescript/dist/internal/utils.js +0 -25
  453. package/examples/gh/node_modules/typescript/dist/internal/utils.js.map +0 -1
  454. package/examples/gh/node_modules/typescript/lib/getExePath.d.ts +0 -2
  455. package/examples/gh/node_modules/typescript/lib/getExePath.js +0 -70
  456. package/examples/gh/node_modules/typescript/lib/tsc.js +0 -28
  457. package/examples/gh/node_modules/typescript/lib/version.cjs +0 -3
  458. package/examples/gh/node_modules/typescript/lib/version.d.cts +0 -2
  459. package/examples/gh/node_modules/typescript/package.json +0 -87
  460. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +0 -11
  461. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/README.md +0 -54
  462. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  463. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +0 -83
  464. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +0 -22
  465. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +0 -210
  466. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  467. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +0 -87
  468. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  469. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +0 -132
  470. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +0 -367
  471. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +0 -1271
  472. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  473. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +0 -16
  474. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  475. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +0 -70
  476. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  477. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +0 -135
  478. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  479. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +0 -34
  480. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -55
  481. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +0 -412
  482. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  483. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +0 -155
  484. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  485. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +0 -246
  486. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  487. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +0 -157
  488. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  489. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +0 -436
  490. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  491. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +0 -23
  492. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  493. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +0 -74
  494. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  495. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -77
  496. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +0 -58
  497. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +0 -289
  498. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +0 -12
  499. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +0 -163
  500. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/package.json +0 -54
  501. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +0 -5
@@ -1,4 +1,3 @@
1
- import { ActivityEvent, Fallback, ProgressHandle, ProgressOptions, SpinnerHandle, SpinnerOptions, TableColumn, TableFormat, TableOptions, TableStream } from "./activity.mjs";
2
1
  import { NumberConstraintViolation, NumberConstraints, describeNumberConstraintViolation, validateNumberConstraints } from "./number-constraints.mjs";
3
2
  import { ConfirmPromptConfig, InputPromptConfig, MultiselectPromptConfig, PROMPT_KINDS, PromptConfig, PromptConfigBase, PromptKind, PromptResult, SelectChoice, SelectPromptConfig } from "./prompt.mjs";
4
3
  import { InferStandardInput, InferStandardOutput, StandardSchemaV1, StandardSchemaV1FailureResult, StandardSchemaV1Issue, StandardSchemaV1Options, StandardSchemaV1PathSegment, StandardSchemaV1Props, StandardSchemaV1Result, StandardSchemaV1SuccessResult, StandardSchemaV1Types } from "./standard.mjs";
@@ -8,6 +7,7 @@ import { DateFlagOptions, PathChecks, PathFlagOptions, UrlFlagOptions } from "./
8
7
  import { ArrayFlagDefinition, BooleanFlagDefinition, CountFlagDefinition, CustomFlagDefinition, DuplicatePolicy, EnumFlagDefinition, FLAG_KINDS, FLAG_PRESENCES, FlagAlias, FlagBuilder, FlagConfig, FlagDefinition, FlagDefinitionBase, FlagDefinitionByKind, FlagDefinitionOverrides, FlagFactory, FlagKind, FlagNegation, FlagParseFn, FlagPresence, FlagSchema, InferFlag, InferFlags, KeyValueFlagDefinition, NumberFlagDefinition, ResolvedValue, StringElementConfig, StringFlagDefinition, WithPresence, WithoutElementEligibility, createFlagSchema, flag, getFlagNegatedName } from "./flag.mjs";
9
8
  import { DUPLICATE_KEYS, DuplicateKeys, SPLIT_FORMATS, SourceSplitBinding, SplitBinding, SplitFormat, SplitOptions, SplitPolicy, SplitSetting } from "./cardinality.mjs";
10
9
  import { ARG_KINDS, ARG_PRESENCES, AllowedArgPromptConfig, ArgBuilder, ArgConfig, ArgDefaultValue, ArgDefinition, ArgDefinitionBase, ArgDefinitionByKind, ArgDefinitionOverrides, ArgFactory, ArgKind, ArgParseFn, ArgPresence, ArgSchema, BooleanArgDefinition, CustomArgDefinition, EnumArgDefinition, InferArg, InferArgs, KeyValueArgDefinition, NumberArgDefinition, PromptConfigByArgKind, ResolvedArgValue, StringArgDefinition, StringArgElementConfig, WithArgPresence, WithVariadic, WithoutArgElementEligibility, arg, createArgSchema } from "./arg.mjs";
10
+ import { ActivityEvent, Fallback, ProgressHandle, ProgressOptions, SpinnerHandle, SpinnerOptions, TableColumn, TableFormat, TableOptions, TableStream } from "./activity.mjs";
11
11
  import { Middleware, MiddlewareHandler, MiddlewareParams, middleware } from "./middleware.mjs";
12
12
  import { InputSources, ResolutionProvenance, SourcesOf, wasExplicit } from "./provenance.mjs";
13
13
  import { ActionHandler, ActionParams, AnyCommandBuilder, CommandArgEntry, CommandArgEntryDefinition, CommandBuilder, CommandDefinition, CommandExample, CommandMeta, CommandSchema, DeriveHandler, DeriveParams, ExampleCommand, ExampleMeta, InteractiveParams, InteractiveResolver, InteractiveResult, Out, command, createCommandSchema, group, resolveExampleCommand } from "./command.mjs";
@@ -85,7 +85,10 @@ interface MiddlewareImpl {
85
85
  * });
86
86
  * ```
87
87
  */
88
- type Middleware<Output extends Record<string, unknown>> = MiddlewareImpl & {};
88
+ type Middleware<Output extends Record<string, unknown>> = MiddlewareImpl & {
89
+ /** @internal Phantom type brand — compile-time only. */
90
+ readonly _output: Output;
91
+ };
89
92
  /**
90
93
  * Create a middleware definition.
91
94
  *
@@ -45,18 +45,18 @@ interface NumberConstraints {
45
45
  * `min` / `max` carry the offending bound so callers can render it.
46
46
  */
47
47
  type NumberConstraintViolation = {
48
- readonly kind: "finite";
48
+ readonly kind: 'finite';
49
49
  } | {
50
- readonly kind: "int";
50
+ readonly kind: 'int';
51
51
  } | {
52
- readonly kind: "min";
52
+ readonly kind: 'min';
53
53
  readonly bound: number;
54
54
  } | {
55
- readonly kind: "max";
55
+ readonly kind: 'max';
56
56
  readonly bound: number;
57
57
  };
58
58
  /** Default for {@link NumberConstraints.finite} — reject `Infinity` unless opted out. */
59
- declare const DEFAULT_FINITE: boolean;
59
+ declare const DEFAULT_FINITE = true;
60
60
  /**
61
61
  * Validate a numeric value against constraints.
62
62
  *
@@ -28,7 +28,7 @@ interface PromptConfigBase {
28
28
  /** Yes/no confirmation prompt — maps to `boolean` flags. Part of {@link PromptConfig}. */
29
29
  interface ConfirmPromptConfig extends PromptConfigBase {
30
30
  /** Discriminator identifying this as a yes/no confirmation prompt. */
31
- readonly kind: "confirm";
31
+ readonly kind: 'confirm';
32
32
  /**
33
33
  * Value used when the user submits an empty line (presses Enter). Also
34
34
  * drives the displayed hint: `true` → `(Y/n)`, `false` → `(y/N)`.
@@ -39,7 +39,7 @@ interface ConfirmPromptConfig extends PromptConfigBase {
39
39
  /** Free-text input prompt — maps to `string` and `number` flags. Part of {@link PromptConfig}. */
40
40
  interface InputPromptConfig extends PromptConfigBase {
41
41
  /** Discriminator identifying this as a free-text input prompt. */
42
- readonly kind: "input";
42
+ readonly kind: 'input';
43
43
  /** Placeholder text shown before user types (informational only). */
44
44
  readonly placeholder?: string;
45
45
  /**
@@ -60,7 +60,7 @@ interface InputPromptConfig extends PromptConfigBase {
60
60
  /** Single-selection prompt — maps to `enum` flags or any flag with {@link SelectChoice choices}. Part of {@link PromptConfig}. */
61
61
  interface SelectPromptConfig extends PromptConfigBase {
62
62
  /** Discriminator identifying this as a single-selection prompt. */
63
- readonly kind: "select";
63
+ readonly kind: 'select';
64
64
  /**
65
65
  * Available choices. When omitted for `enum` flags, the enum values
66
66
  * from the flag schema are used automatically.
@@ -73,7 +73,7 @@ interface SelectPromptConfig extends PromptConfigBase {
73
73
  */
74
74
  interface MultiselectPromptConfig extends PromptConfigBase {
75
75
  /** Discriminator identifying this as a multi-selection prompt. */
76
- readonly kind: "multiselect";
76
+ readonly kind: 'multiselect';
77
77
  /**
78
78
  * Available choices. When omitted for `array` flags with enum elements,
79
79
  * the enum values from the element schema are used automatically.
@@ -28,25 +28,25 @@
28
28
  * ```
29
29
  */
30
30
  type ResolutionProvenance = {
31
- readonly stage: "cli";
31
+ readonly stage: 'cli';
32
32
  } | {
33
- readonly stage: "cli";
34
- readonly via: "stdin";
35
- readonly trigger: "dash";
33
+ readonly stage: 'cli';
34
+ readonly via: 'stdin';
35
+ readonly trigger: 'dash';
36
36
  } | {
37
- readonly stage: "stdin";
38
- readonly via: "stdin";
39
- readonly trigger: "fallback";
37
+ readonly stage: 'stdin';
38
+ readonly via: 'stdin';
39
+ readonly trigger: 'fallback';
40
40
  } | {
41
- readonly stage: "env";
41
+ readonly stage: 'env';
42
42
  readonly envVar: string;
43
43
  } | {
44
- readonly stage: "config";
44
+ readonly stage: 'config';
45
45
  readonly configPath: string;
46
46
  } | {
47
- readonly stage: "prompt";
47
+ readonly stage: 'prompt';
48
48
  } | {
49
- readonly stage: "default";
49
+ readonly stage: 'default';
50
50
  };
51
51
  /**
52
52
  * Provenance of every input of one surface, keyed by input name.
@@ -1,10 +1,13 @@
1
- import { Verbosity } from "../output/contracts.mjs";
2
- import { ActivityEvent } from "./activity.mjs";
1
+ import { BuiltinsConfig } from "../cli/builtins.mjs";
3
2
  import { CLIError } from "../errors/index.mjs";
3
+ import { ActivityEvent } from "./activity.mjs";
4
+ import { Verbosity } from "../output/contracts.mjs";
5
+ import { CommandMeta, CommandSchema, Out } from "./command.mjs";
4
6
  import { HelpOptions } from "../help/index.mjs";
5
- import "../output/index.mjs";
7
+ import { CapturedOutput } from "../output/index.mjs";
6
8
  import { PromptEngine, TestAnswer } from "../prompt/index.mjs";
7
9
  import { ParseOptions } from "../parse/index.mjs";
10
+ import { CLIPlugin } from "../cli/plugin.mjs";
8
11
  //#region src/core/schema/run.d.ts
9
12
  /**
10
13
  * Options accepted by `runCommand()` and internal command execution paths.
@@ -13,7 +16,7 @@ import { ParseOptions } from "../parse/index.mjs";
13
16
  * primary process-free execution seam: inject env, config, prompt I/O, and
14
17
  * dispatch-layer metadata without touching process state.
15
18
  */
16
- interface RunOptions {
19
+ export interface RunOptions {
17
20
  /**
18
21
  * Environment variables for flag and arg resolution.
19
22
  *
@@ -67,7 +70,7 @@ interface RunOptions {
67
70
  * When absent (process-free `.execute()` / `runCommand()` without an
68
71
  * override), path checks are skipped.
69
72
  */
70
- readonly stat?: (path: string) => Promise<"file" | "directory" | null>;
73
+ readonly stat?: (path: string) => Promise<'file' | 'directory' | null>;
71
74
  /**
72
75
  * Recursive directory creation for `flag.path()` and `arg.path()` `create`
73
76
  * checks.
@@ -117,6 +120,54 @@ interface RunOptions {
117
120
  */
118
121
  readonly flags?: ParseOptions;
119
122
  }
123
+ /**
124
+ * Execution options threaded between the CLI dispatch layer, the shared
125
+ * executor, and the testkit. Extends the public {@linkcode RunOptions} with
126
+ * fields the framework populates itself.
127
+ *
128
+ * @internal
129
+ */
130
+ export interface InternalRunOptions extends RunOptions {
131
+ /**
132
+ * Output channel override used by live CLI execution.
133
+ *
134
+ * `CLIBuilder.run()` passes a real output channel so activity renders to
135
+ * the terminal instead of being captured.
136
+ */
137
+ readonly out?: Out;
138
+ /**
139
+ * Capture buffers override paired with `out`.
140
+ *
141
+ * When omitted, `runCommand()` creates empty buffers for the returned
142
+ * {@linkcode RunResult} while writing directly to the provided `out`.
143
+ */
144
+ readonly captured?: CapturedOutput;
145
+ /**
146
+ * Command schema with propagated flags merged in.
147
+ *
148
+ * When provided, `runCommandInternal()` uses it for parsing and resolution
149
+ * instead of `cmd.schema`. CLI dispatch passes its merged schema straight to
150
+ * the shared executor and leaves this field unset.
151
+ */
152
+ readonly mergedSchema?: CommandSchema;
153
+ /**
154
+ * CLI program metadata passed to action handlers and middleware.
155
+ *
156
+ * When provided (by CLI dispatch layer), handlers receive this as `meta`.
157
+ * When absent (standalone `runCommand()`), a minimal meta is constructed
158
+ * from the command's own schema.
159
+ */
160
+ readonly meta?: CommandMeta;
161
+ /** CLI plugins registered on the parent `CLIBuilder`. */
162
+ readonly plugins?: readonly CLIPlugin[];
163
+ /**
164
+ * Built-in flag state from the CLI schema.
165
+ *
166
+ * `help: 'off'` releases the command-level `--help`/`-h` short-circuit so a
167
+ * command's own `help` flag parses. Absent means every built-in is on.
168
+ */
169
+ readonly builtins?: BuiltinsConfig;
170
+ }
120
171
  /**
121
172
  * Structured result from {@linkcode runCommand}.
122
173
  *
@@ -134,7 +185,7 @@ interface RunOptions {
134
185
  * expect(result.error).toBeUndefined();
135
186
  * ```
136
187
  */
137
- interface RunResult {
188
+ export interface RunResult {
138
189
  /** Process exit code. 0 = success. */
139
190
  readonly exitCode: number;
140
191
  /** Captured stdout lines (from `out.log` and `out.info`). */
@@ -157,5 +208,4 @@ interface RunResult {
157
208
  */
158
209
  readonly error: CLIError | undefined;
159
210
  }
160
- //#endregion
161
- export { RunOptions, RunResult };
211
+ //#endregion
@@ -2,6 +2,7 @@ import { PromptConfig } from "./prompt.mjs";
2
2
  import { StdinBinding, StdinConsume, StdinWhen } from "./stdin.mjs";
3
3
  import { FlagSchema } from "./flag.mjs";
4
4
  import { SplitPolicy } from "./cardinality.mjs";
5
+ import { ArgSchema } from "./arg.mjs";
5
6
  //#region src/core/schema/source.d.ts
6
7
  /**
7
8
  * Ordered resolution stages, highest precedence first.
@@ -22,37 +23,37 @@ type ResolutionStage = (typeof RESOLUTION_ORDER)[number];
22
23
  * the typed value and has nothing to split.
23
24
  */
24
25
  type SourceBinding = {
25
- readonly stage: "cli";
26
+ readonly stage: 'cli';
26
27
  readonly split: SplitPolicy;
27
28
  } | {
28
- readonly stage: "stdin";
29
+ readonly stage: 'stdin';
29
30
  readonly when: StdinWhen;
30
31
  readonly consume: StdinConsume;
31
32
  readonly trim: boolean;
32
33
  readonly split: SplitPolicy;
33
34
  } | {
34
- readonly stage: "env";
35
+ readonly stage: 'env';
35
36
  readonly envVar: string;
36
37
  readonly split: SplitPolicy;
37
38
  } | {
38
- readonly stage: "config";
39
+ readonly stage: 'config';
39
40
  readonly configPath: string;
40
41
  readonly split: SplitPolicy;
41
42
  } | {
42
- readonly stage: "prompt";
43
+ readonly stage: 'prompt';
43
44
  readonly prompt: PromptConfig;
44
45
  readonly split: SplitPolicy;
45
46
  } | {
46
- readonly stage: "default";
47
+ readonly stage: 'default';
47
48
  readonly defaultValue: unknown;
48
49
  };
49
50
  /** The stdin source of an input, once {@link sourceBindings} has projected it. */
50
51
  type StdinSourceBinding = Extract<SourceBinding, {
51
- readonly stage: "stdin";
52
+ readonly stage: 'stdin';
52
53
  }>;
53
54
  /** The interactive source of an input, once {@link sourceBindings} has projected it. */
54
55
  type PromptSourceBinding = Extract<SourceBinding, {
55
- readonly stage: "prompt";
56
+ readonly stage: 'prompt';
56
57
  }>;
57
58
  /**
58
59
  * The sources whose raw values a stage decodes.
@@ -61,9 +62,9 @@ type PromptSourceBinding = Extract<SourceBinding, {
61
62
  * all, so neither reaches the resolver's coercion pass.
62
63
  */
63
64
  type DecodedSourceBinding = Exclude<SourceBinding, {
64
- readonly stage: "cli";
65
+ readonly stage: 'cli';
65
66
  } | {
66
- readonly stage: "default";
67
+ readonly stage: 'default';
67
68
  }>;
68
69
  /**
69
70
  * Project a flag or arg schema onto its source axis.
@@ -118,7 +119,7 @@ declare function withPromptBinding(schema: FlagSchema | ArgSchema, bindings: rea
118
119
  /** One stdin-enabled input of a command, named by the surface that declares it. */
119
120
  interface StdinConsumer {
120
121
  /** Which surface declares the input. */
121
- readonly kind: "flag" | "arg";
122
+ readonly kind: 'flag' | 'arg';
122
123
  /** Canonical flag name or positional arg name. */
123
124
  readonly name: string;
124
125
  /** The input's stdin axis. */
@@ -136,7 +137,7 @@ declare function stdinConsumers(flags: Readonly<Record<string, FlagSchema>>, arg
136
137
  readonly schema: ArgSchema;
137
138
  }[]): readonly StdinConsumer[];
138
139
  /** How a stdin consumer is spelled on the command line: `--out` or `<out>`. */
139
- declare function stdinConsumerReference(consumer: Pick<StdinConsumer, "kind" | "name">): string;
140
+ declare function stdinConsumerReference(consumer: Pick<StdinConsumer, 'kind' | 'name'>): string;
140
141
  /** What a parser produced for one command, read structurally. */
141
142
  interface ParsedInputs {
142
143
  /** Flag values keyed by canonical flag name. */
@@ -9,14 +9,14 @@
9
9
  * @module
10
10
  */
11
11
  /** A schema that conforms to the Standard Schema v1 specification. */
12
- interface StandardSchemaV1<Input = unknown, Output = Input> {
12
+ export interface StandardSchemaV1<Input = unknown, Output = Input> {
13
13
  /** The Standard Schema properties, namespaced under a well-known key. */
14
- readonly "~standard": StandardSchemaV1.Props<Input, Output>;
14
+ readonly '~standard': StandardSchemaV1.Props<Input, Output>;
15
15
  }
16
16
  /** Types copied from the Standard Schema v1 specification. */
17
- declare namespace StandardSchemaV1 {
17
+ export declare namespace StandardSchemaV1 {
18
18
  /** The properties exposed under a validator's `~standard` key. */
19
- export interface Props<Input = unknown, Output = Input> {
19
+ interface Props<Input = unknown, Output = Input> {
20
20
  /** The version number of the specification. */
21
21
  readonly version: 1;
22
22
  /** The vendor name of the schema library. */
@@ -27,67 +27,74 @@ declare namespace StandardSchemaV1 {
27
27
  readonly types?: Types<Input, Output> | undefined;
28
28
  }
29
29
  /** Optional parameters passed to a validator. */
30
- export interface Options {
30
+ interface Options {
31
31
  /** Explicit support for vendor-specific validation parameters. */
32
32
  readonly libraryOptions?: Record<string, unknown> | undefined;
33
33
  }
34
34
  /** The result of validating a value: either its output or a list of issues. */
35
- export type Result<Output> = SuccessResult<Output> | FailureResult;
35
+ type Result<Output> = SuccessResult<Output> | FailureResult;
36
36
  /** A successful validation carrying the parsed output value. */
37
- export interface SuccessResult<Output> {
37
+ interface SuccessResult<Output> {
38
38
  /** The validated (and possibly transformed) value. */
39
39
  readonly value: Output;
40
40
  /** Absent on success. */
41
41
  readonly issues?: undefined;
42
42
  }
43
43
  /** A failed validation carrying validation issues. */
44
- export interface FailureResult {
44
+ interface FailureResult {
45
45
  /** The issues that caused validation to fail. */
46
46
  readonly issues: ReadonlyArray<Issue>;
47
47
  }
48
48
  /** A single validation issue. */
49
- export interface Issue {
49
+ interface Issue {
50
50
  /** The human-readable error message. */
51
51
  readonly message: string;
52
52
  /** The path to the offending value, when the validator reports one. */
53
53
  readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
54
54
  }
55
55
  /** One segment of an issue path. */
56
- export interface PathSegment {
56
+ interface PathSegment {
57
57
  /** The key of this path segment. */
58
58
  readonly key: PropertyKey;
59
59
  }
60
60
  /** The type-level input and output carried by a validator. */
61
- export interface Types<Input = unknown, Output = Input> {
61
+ interface Types<Input = unknown, Output = Input> {
62
62
  /** The input type accepted by the validator. */
63
63
  readonly input: Input;
64
64
  /** The output type produced by the validator. */
65
65
  readonly output: Output;
66
66
  }
67
67
  /** Infer the input type of a Standard Schema validator. */
68
- export type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
68
+ type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['input'];
69
69
  /** Infer the output type of a Standard Schema validator. */
70
- export type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
70
+ type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema['~standard']['types']>['output'];
71
71
  }
72
72
  /** Backward-compatible flat alias for {@link StandardSchemaV1.Props}. */
73
- type StandardSchemaV1Props<Input = unknown, Output = Input> = StandardSchemaV1.Props<Input, Output>;
73
+ export type StandardSchemaV1Props<Input = unknown, Output = Input> = StandardSchemaV1.Props<Input, Output>;
74
74
  /** Flat alias for {@link StandardSchemaV1.Options}. */
75
- type StandardSchemaV1Options = StandardSchemaV1.Options;
75
+ export type StandardSchemaV1Options = StandardSchemaV1.Options;
76
76
  /** Flat alias for {@link StandardSchemaV1.Result}. */
77
- type StandardSchemaV1Result<Output> = StandardSchemaV1.Result<Output>;
77
+ export type StandardSchemaV1Result<Output> = StandardSchemaV1.Result<Output>;
78
78
  /** Flat alias for {@link StandardSchemaV1.SuccessResult}. */
79
- type StandardSchemaV1SuccessResult<Output> = StandardSchemaV1.SuccessResult<Output>;
79
+ export type StandardSchemaV1SuccessResult<Output> = StandardSchemaV1.SuccessResult<Output>;
80
80
  /** Flat alias for {@link StandardSchemaV1.FailureResult}. */
81
- type StandardSchemaV1FailureResult = StandardSchemaV1.FailureResult;
81
+ export type StandardSchemaV1FailureResult = StandardSchemaV1.FailureResult;
82
82
  /** Flat alias for {@link StandardSchemaV1.Issue}. */
83
- type StandardSchemaV1Issue = StandardSchemaV1.Issue;
83
+ export type StandardSchemaV1Issue = StandardSchemaV1.Issue;
84
84
  /** Flat alias for {@link StandardSchemaV1.PathSegment}. */
85
- type StandardSchemaV1PathSegment = StandardSchemaV1.PathSegment;
85
+ export type StandardSchemaV1PathSegment = StandardSchemaV1.PathSegment;
86
86
  /** Backward-compatible flat alias for {@link StandardSchemaV1.Types}. */
87
- type StandardSchemaV1Types<Input = unknown, Output = Input> = StandardSchemaV1.Types<Input, Output>;
87
+ export type StandardSchemaV1Types<Input = unknown, Output = Input> = StandardSchemaV1.Types<Input, Output>;
88
88
  /** Flat alias for {@link StandardSchemaV1.InferInput}. */
89
- type InferStandardInput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferInput<Schema>;
89
+ export type InferStandardInput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferInput<Schema>;
90
90
  /** Flat alias for {@link StandardSchemaV1.InferOutput}. */
91
- type InferStandardOutput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferOutput<Schema>;
91
+ export type InferStandardOutput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferOutput<Schema>;
92
+ /**
93
+ * Detect a Standard Schema validator without assuming validators are plain
94
+ * objects. Some conforming libraries expose callable schema values.
95
+ *
96
+ * @internal
97
+ */
98
+ declare function isStandardSchemaV1(value: unknown): value is StandardSchemaV1;
92
99
  //#endregion
93
- export { InferStandardInput, InferStandardOutput, StandardSchemaV1, StandardSchemaV1FailureResult, StandardSchemaV1Issue, StandardSchemaV1Options, StandardSchemaV1PathSegment, StandardSchemaV1Props, StandardSchemaV1Result, StandardSchemaV1SuccessResult, StandardSchemaV1Types };
100
+ export { isStandardSchemaV1 };
@@ -1,4 +1,14 @@
1
1
  //#region src/core/schema/stdin.d.ts
2
+ /**
3
+ * The stdin binding shared by the `flag` and `arg` factories.
4
+ *
5
+ * A {@link StdinBinding} says when an input reads the stdin stream, whether it
6
+ * consumes the stream alone, and whether a single value drops the terminator a
7
+ * pipe appends. Both factories store one of these under their `stdin` field, and
8
+ * the parse, preflight, and resolve pipelines read the stdin axis through it.
9
+ *
10
+ * @module dreamcli/core/schema/stdin
11
+ */
2
12
  /** All stdin trigger modes as a runtime array. */
3
13
  declare const STDIN_WHENS: readonly ["dash", "missing", "dash-or-missing"];
4
14
  /**
@@ -75,13 +85,13 @@ declare function normalizeStdinBinding(options?: StdinOptions): StdinBinding;
75
85
  * @param binding - Anything carrying the stdin trigger.
76
86
  * @returns `true` for `'dash'` and `'dash-or-missing'`.
77
87
  */
78
- declare function stdinReadsOnDash(binding: Pick<StdinBinding, "when">): boolean;
88
+ declare function stdinReadsOnDash(binding: Pick<StdinBinding, 'when'>): boolean;
79
89
  /**
80
90
  * Whether an absent CLI value selects stdin for this binding.
81
91
  *
82
92
  * @param binding - Anything carrying the stdin trigger.
83
93
  * @returns `true` for `'missing'` and `'dash-or-missing'`.
84
94
  */
85
- declare function stdinReadsWhenMissing(binding: Pick<StdinBinding, "when">): boolean;
95
+ declare function stdinReadsWhenMissing(binding: Pick<StdinBinding, 'when'>): boolean;
86
96
  //#endregion
87
97
  export { DEFAULT_STDIN_BINDING, STDIN_CONSUMES, STDIN_WHENS, type StdinBinding, type StdinConsume, type StdinOptions, type StdinWhen, assertStdinOptions, normalizeStdinBinding, stdinReadsOnDash, stdinReadsWhenMissing };
@@ -47,15 +47,15 @@ interface StringConstraints {
47
47
  * the source so callers can render them.
48
48
  */
49
49
  type StringConstraintViolation = {
50
- readonly kind: "nonEmpty";
50
+ readonly kind: 'nonEmpty';
51
51
  } | {
52
- readonly kind: "minLength";
52
+ readonly kind: 'minLength';
53
53
  readonly bound: number;
54
54
  } | {
55
- readonly kind: "maxLength";
55
+ readonly kind: 'maxLength';
56
56
  readonly bound: number;
57
57
  } | {
58
- readonly kind: "pattern";
58
+ readonly kind: 'pattern';
59
59
  readonly pattern: string;
60
60
  };
61
61
  /**
@@ -91,7 +91,7 @@ interface FilePathFlagOptions {
91
91
  * path passes and only an existing path is type-checked.
92
92
  * @defaultValue `undefined` (any kind)
93
93
  */
94
- readonly type?: "file";
94
+ readonly type?: 'file';
95
95
  /** Directory creation is only available with `type: 'directory'`. */
96
96
  readonly create?: never;
97
97
  }
@@ -107,7 +107,7 @@ interface DirectoryPathFlagOptions {
107
107
  * `mustExist` is explicitly `false`, in which case a missing path
108
108
  * passes and only an existing path is type-checked.
109
109
  */
110
- readonly type: "directory";
110
+ readonly type: 'directory';
111
111
  /**
112
112
  * Create the directory (recursively) when nothing exists at the path.
113
113
  * An existing non-directory path still fails the type check.
@@ -131,7 +131,7 @@ interface PathChecks {
131
131
  * Require the existing path to be a file or a directory. Implies
132
132
  * existence when set, unless `mustExist` is `false`.
133
133
  */
134
- readonly type: "file" | "directory" | undefined;
134
+ readonly type: 'file' | 'directory' | undefined;
135
135
  /** Create the directory (recursively) when nothing exists at the path. */
136
136
  readonly create: boolean;
137
137
  }
@@ -3,6 +3,7 @@ import { StandardSchemaV1 } from "./standard.mjs";
3
3
  import { StringConstraintViolation, StringConstraints } from "./string-constraints.mjs";
4
4
  import { DateFlagOptions, PathChecks, PathFlagOptions, UrlFlagOptions } from "./value-parsers.mjs";
5
5
  import { FlagSchema } from "./flag.mjs";
6
+ import { ArgSchema } from "./arg.mjs";
6
7
  //#region src/core/schema/value.d.ts
7
8
  /**
8
9
  * Which surface handed a raw value to the value layer.
@@ -13,26 +14,26 @@ import { FlagSchema } from "./flag.mjs";
13
14
  * user typed outside argv, so neither gets the extra latitude a prompt answer
14
15
  * or a typed config value gets.
15
16
  */
16
- type ValueInput = "token" | "stdin" | "env" | "config" | "prompt";
17
+ type ValueInput = 'token' | 'stdin' | 'env' | 'config' | 'prompt';
17
18
  /** The primitive a codec could not read a raw value as. */
18
- type ValueTypeName = "string" | "number" | "boolean";
19
+ type ValueTypeName = 'string' | 'number' | 'boolean';
19
20
  /** Why decoding rejected a raw value. */
20
21
  type ValueFailure = {
21
- readonly kind: "type";
22
+ readonly kind: 'type';
22
23
  readonly expected: ValueTypeName;
23
24
  } | {
24
- readonly kind: "enum";
25
+ readonly kind: 'enum';
25
26
  readonly enumValues: readonly string[] | undefined;
26
27
  } | {
27
- readonly kind: "string-constraint";
28
+ readonly kind: 'string-constraint';
28
29
  readonly value: string;
29
30
  readonly violation: StringConstraintViolation;
30
31
  } | {
31
- readonly kind: "number-constraint";
32
+ readonly kind: 'number-constraint';
32
33
  readonly value: number;
33
34
  readonly violation: NumberConstraintViolation;
34
35
  } | {
35
- readonly kind: "thrown";
36
+ readonly kind: 'thrown';
36
37
  readonly error: unknown;
37
38
  };
38
39
  /** The outcome of decoding one raw value. */
@@ -49,29 +50,29 @@ type ValueDecoder<T> = (raw: unknown, input: ValueInput) => ValueResult<T>;
49
50
  type ValueParseFn = (raw: never) => unknown;
50
51
  /** How a raw value becomes a typed one, plus the data the definition round-trip needs. */
51
52
  type ValueCodec<T = unknown, P = ValueParseFn> = {
52
- readonly name: "string";
53
+ readonly name: 'string';
53
54
  readonly decode: ValueDecoder<T>;
54
55
  } | {
55
- readonly name: "number";
56
+ readonly name: 'number';
56
57
  readonly decode: ValueDecoder<T>;
57
58
  } | {
58
- readonly name: "boolean";
59
+ readonly name: 'boolean';
59
60
  readonly decode: ValueDecoder<T>;
60
61
  } | {
61
- readonly name: "enum";
62
+ readonly name: 'enum';
62
63
  readonly enumValues: readonly string[] | undefined;
63
64
  readonly decode: ValueDecoder<T>;
64
65
  } | {
65
- readonly name: "custom";
66
+ readonly name: 'custom';
66
67
  readonly parseFn: P | undefined;
67
68
  readonly decode: ValueDecoder<T>;
68
69
  };
69
70
  /** Rules a decoded value must satisfy, discriminated by the codec that produced it. */
70
71
  type ValueConstraints = {
71
- readonly kind: "string";
72
+ readonly kind: 'string';
72
73
  readonly stringConstraints: StringConstraints | undefined;
73
74
  } | {
74
- readonly kind: "number";
75
+ readonly kind: 'number';
75
76
  readonly numberConstraints: NumberConstraints | undefined;
76
77
  };
77
78
  /** Everything the value axis of a flag or an arg carries. */
@@ -1,6 +1,8 @@
1
1
  import { BuiltinsConfig } from "../cli/builtins.mjs";
2
- import { RunnableCommand } from "../schema/command.mjs";
3
- import { RunOptions, RunResult } from "../schema/run.mjs";
2
+ import { FlagBuilder, FlagConfig } from "../schema/flag.mjs";
3
+ import { ArgBuilder, ArgConfig } from "../schema/arg.mjs";
4
+ import { CommandBuilder, RunnableCommand } from "../schema/command.mjs";
5
+ import { InternalRunOptions, RunOptions, RunResult } from "../schema/run.mjs";
4
6
  //#region src/core/testkit/index.d.ts
5
7
  /**
6
8
  * Options for {@linkcode runCommand}.
@@ -49,6 +51,13 @@ interface RunCommandOptions extends RunOptions {
49
51
  * @param options - Injectable runtime state
50
52
  * @returns Structured run result with exit code and captured output
51
53
  */
52
- declare function runCommand(cmd: RunnableCommand, argv: readonly string[], options?: RunCommandOptions): Promise<RunResult>;
54
+ declare function runCommand<F extends Record<string, FlagBuilder<FlagConfig>>, A extends Record<string, ArgBuilder<ArgConfig>>, C extends Record<string, unknown> = Record<string, never>>(cmd: CommandBuilder<F, A, C>, argv: readonly string[], options?: RunCommandOptions): Promise<RunResult>;
55
+ /**
56
+ * Execution body behind {@linkcode runCommand}, accepting the
57
+ * framework-populated channel, capture, schema, and meta fields.
58
+ *
59
+ * @internal
60
+ */
61
+ declare function runCommandInternal(cmd: RunnableCommand, argv: readonly string[], options?: InternalRunOptions): Promise<RunResult>;
53
62
  //#endregion
54
- export { type RunCommandOptions, type RunOptions, type RunResult, runCommand };
63
+ export { type RunCommandOptions, type RunOptions, type RunResult, runCommand, runCommandInternal };