@kjanat/dreamcli 3.0.0-rc.2 → 3.0.0-rc.20

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 (531) hide show
  1. package/CHANGELOG.md +374 -1
  2. package/README.md +3 -3
  3. package/dist/core/cli/dispatch.d.mts +6 -5
  4. package/dist/core/cli/dispatch.mjs +7 -16
  5. package/dist/core/cli/help-links.d.mts +0 -1
  6. package/dist/core/cli/index.d.mts +213 -16
  7. package/dist/core/cli/index.mjs +174 -43
  8. package/dist/core/cli/planner.d.mts +5 -1
  9. package/dist/core/cli/planner.mjs +19 -13
  10. package/dist/core/cli/plugin.d.mts +1 -1
  11. package/dist/core/cli/propagate.d.mts +1 -1
  12. package/dist/core/cli/root-help.d.mts +2 -1
  13. package/dist/core/cli/root-help.mjs +45 -22
  14. package/dist/core/cli/root-surface.d.mts +12 -1
  15. package/dist/core/cli/root-surface.mjs +2 -1
  16. package/dist/core/cli/runtime-preflight.d.mts +18 -2
  17. package/dist/core/cli/runtime-preflight.mjs +10 -7
  18. package/dist/core/completion/index.d.mts +0 -1
  19. package/dist/core/completion/index.mjs +1 -1
  20. package/dist/core/completion/shells/bash.d.mts +0 -1
  21. package/dist/core/completion/shells/bash.mjs +8 -4
  22. package/dist/core/completion/shells/fish.d.mts +0 -1
  23. package/dist/core/completion/shells/fish.mjs +6 -3
  24. package/dist/core/completion/shells/powershell.d.mts +0 -1
  25. package/dist/core/completion/shells/powershell.mjs +10 -5
  26. package/dist/core/completion/shells/shared.d.mts +13 -2
  27. package/dist/core/completion/shells/shared.mjs +25 -2
  28. package/dist/core/completion/shells/zsh.d.mts +0 -1
  29. package/dist/core/completion/shells/zsh.mjs +11 -4
  30. package/dist/core/config/index.d.mts +44 -14
  31. package/dist/core/config/index.mjs +57 -18
  32. package/dist/core/config/package-json.d.mts +28 -4
  33. package/dist/core/config/package-json.mjs +20 -19
  34. package/dist/core/errors/index.d.mts +3 -3
  35. package/dist/core/execution/index.d.mts +0 -1
  36. package/dist/core/execution/index.mjs +20 -4
  37. package/dist/core/help/ansi.d.mts +11 -5
  38. package/dist/core/help/ansi.mjs +15 -16
  39. package/dist/core/help/index.d.mts +44 -3
  40. package/dist/core/help/index.mjs +130 -68
  41. package/dist/core/help/theme.d.mts +68 -0
  42. package/dist/core/help/theme.mjs +46 -0
  43. package/dist/core/json-schema/index.d.mts +21 -9
  44. package/dist/core/json-schema/index.mjs +316 -87
  45. package/dist/core/json-schema/meta-descriptions.generated.d.mts +55 -38
  46. package/dist/core/json-schema/meta-descriptions.generated.mjs +14 -5
  47. package/dist/core/output/activity.d.mts +0 -1
  48. package/dist/core/output/contracts.d.mts +5 -6
  49. package/dist/core/output/contracts.mjs +2 -2
  50. package/dist/core/output/index.d.mts +38 -2
  51. package/dist/core/output/index.mjs +37 -2
  52. package/dist/core/output/renderers.d.mts +0 -1
  53. package/dist/core/parse/index.d.mts +40 -7
  54. package/dist/core/parse/index.mjs +212 -40
  55. package/dist/core/prompt/index.d.mts +1 -0
  56. package/dist/core/resolve/args.d.mts +1 -1
  57. package/dist/core/resolve/coerce.d.mts +1 -1
  58. package/dist/core/resolve/coerce.mjs +71 -14
  59. package/dist/core/resolve/contracts.d.mts +14 -4
  60. package/dist/core/resolve/errors.d.mts +0 -1
  61. package/dist/core/resolve/flags.d.mts +9 -2
  62. package/dist/core/resolve/flags.mjs +78 -6
  63. package/dist/core/resolve/index.d.mts +2 -2
  64. package/dist/core/resolve/index.mjs +6 -1
  65. package/dist/core/resolve/property.d.mts +4 -1
  66. package/dist/core/resolve/property.mjs +11 -3
  67. package/dist/core/resolve/standard.d.mts +24 -0
  68. package/dist/core/resolve/standard.mjs +114 -0
  69. package/dist/core/schema/activity.d.mts +31 -11
  70. package/dist/core/schema/arg.d.mts +38 -4
  71. package/dist/core/schema/arg.mjs +5 -2
  72. package/dist/core/schema/command.d.mts +57 -13
  73. package/dist/core/schema/command.mjs +41 -17
  74. package/dist/core/schema/flag.d.mts +553 -19
  75. package/dist/core/schema/flag.mjs +261 -5
  76. package/dist/core/schema/index.d.mts +6 -3
  77. package/dist/core/schema/middleware.d.mts +4 -3
  78. package/dist/core/schema/prompt.d.mts +6 -3
  79. package/dist/core/schema/run.d.mts +27 -1
  80. package/dist/core/schema/standard.d.mts +100 -0
  81. package/dist/core/schema/standard.mjs +15 -0
  82. package/dist/core/schema/string-constraints.d.mts +97 -0
  83. package/dist/core/schema/string-constraints.mjs +69 -0
  84. package/dist/core/schema/value-parsers.d.mts +78 -0
  85. package/dist/core/schema/value-parsers.mjs +142 -0
  86. package/dist/core/testkit/index.d.mts +0 -31
  87. package/dist/core/testkit/index.mjs +1 -1
  88. package/dist/index.d.mts +12 -7
  89. package/dist/index.mjs +9 -9
  90. package/dist/runtime/adapter.d.mts +71 -2
  91. package/dist/runtime/adapter.mjs +11 -1
  92. package/dist/runtime/auto.d.mts +2 -3
  93. package/dist/runtime/auto.mjs +4 -5
  94. package/dist/runtime/deno.d.mts +28 -5
  95. package/dist/runtime/deno.mjs +49 -1
  96. package/dist/runtime/index.d.mts +3 -4
  97. package/dist/runtime/node.d.mts +8 -2
  98. package/dist/runtime/node.mjs +60 -1
  99. package/dist/runtime.d.mts +4 -4
  100. package/dist/runtime.mjs +2 -3
  101. package/dist/testkit.d.mts +1 -0
  102. package/dist/version.d.mts +7 -3
  103. package/dist/version.mjs +2 -2
  104. package/dreamcli.schema.json +118 -7
  105. package/examples/gh/node_modules/typescript/LICENSE +55 -0
  106. package/examples/gh/node_modules/typescript/NOTICE.txt +436 -0
  107. package/examples/gh/node_modules/typescript/README.md +49 -0
  108. package/examples/gh/node_modules/typescript/bin/tsc +2 -0
  109. package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts +529 -0
  110. package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts.map +1 -0
  111. package/examples/gh/node_modules/typescript/dist/api/async/api.js +1657 -0
  112. package/examples/gh/node_modules/typescript/dist/api/async/api.js.map +1 -0
  113. package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts +39 -0
  114. package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts.map +1 -0
  115. package/examples/gh/node_modules/typescript/dist/api/async/client.js +211 -0
  116. package/examples/gh/node_modules/typescript/dist/api/async/client.js.map +1 -0
  117. package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts +310 -0
  118. package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts.map +1 -0
  119. package/examples/gh/node_modules/typescript/dist/api/async/types.js +2 -0
  120. package/examples/gh/node_modules/typescript/dist/api/async/types.js.map +1 -0
  121. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts +109 -0
  122. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts.map +1 -0
  123. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js +2 -0
  124. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js.map +1 -0
  125. package/examples/gh/node_modules/typescript/dist/api/fs.d.ts +23 -0
  126. package/examples/gh/node_modules/typescript/dist/api/fs.d.ts.map +1 -0
  127. package/examples/gh/node_modules/typescript/dist/api/fs.js +109 -0
  128. package/examples/gh/node_modules/typescript/dist/api/fs.js.map +1 -0
  129. package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts +15 -0
  130. package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts.map +1 -0
  131. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts +5 -0
  132. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +1 -0
  133. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js +74 -0
  134. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js.map +1 -0
  135. package/examples/gh/node_modules/typescript/dist/api/node/encoder.js +287 -0
  136. package/examples/gh/node_modules/typescript/dist/api/node/encoder.js.map +1 -0
  137. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts +32 -0
  138. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts.map +1 -0
  139. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js +213 -0
  140. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js.map +1 -0
  141. package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts +76 -0
  142. package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts.map +1 -0
  143. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts +182 -0
  144. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts.map +1 -0
  145. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js +835 -0
  146. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js.map +1 -0
  147. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +62 -0
  148. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +1 -0
  149. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js +122 -0
  150. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js.map +1 -0
  151. package/examples/gh/node_modules/typescript/dist/api/node/node.js +298 -0
  152. package/examples/gh/node_modules/typescript/dist/api/node/node.js.map +1 -0
  153. package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts +29 -0
  154. package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts.map +1 -0
  155. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts +4 -0
  156. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +1 -0
  157. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js +241 -0
  158. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js.map +1 -0
  159. package/examples/gh/node_modules/typescript/dist/api/node/protocol.js +30 -0
  160. package/examples/gh/node_modules/typescript/dist/api/node/protocol.js.map +1 -0
  161. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts +6 -0
  162. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts.map +1 -0
  163. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js +61 -0
  164. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js.map +1 -0
  165. package/examples/gh/node_modules/typescript/dist/api/options.d.ts +32 -0
  166. package/examples/gh/node_modules/typescript/dist/api/options.d.ts.map +1 -0
  167. package/examples/gh/node_modules/typescript/dist/api/options.js +11 -0
  168. package/examples/gh/node_modules/typescript/dist/api/options.js.map +1 -0
  169. package/examples/gh/node_modules/typescript/dist/api/path.d.ts +110 -0
  170. package/examples/gh/node_modules/typescript/dist/api/path.d.ts.map +1 -0
  171. package/examples/gh/node_modules/typescript/dist/api/path.js +508 -0
  172. package/examples/gh/node_modules/typescript/dist/api/path.js.map +1 -0
  173. package/examples/gh/node_modules/typescript/dist/api/proto.d.ts +239 -0
  174. package/examples/gh/node_modules/typescript/dist/api/proto.d.ts.map +1 -0
  175. package/examples/gh/node_modules/typescript/dist/api/proto.js +37 -0
  176. package/examples/gh/node_modules/typescript/dist/api/proto.js.map +1 -0
  177. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts +79 -0
  178. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +1 -0
  179. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js +169 -0
  180. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js.map +1 -0
  181. package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts +529 -0
  182. package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts.map +1 -0
  183. package/examples/gh/node_modules/typescript/dist/api/sync/api.js +1665 -0
  184. package/examples/gh/node_modules/typescript/dist/api/sync/api.js.map +1 -0
  185. package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts +30 -0
  186. package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts.map +1 -0
  187. package/examples/gh/node_modules/typescript/dist/api/sync/client.js +124 -0
  188. package/examples/gh/node_modules/typescript/dist/api/sync/client.js.map +1 -0
  189. package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts +310 -0
  190. package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts.map +1 -0
  191. package/examples/gh/node_modules/typescript/dist/api/sync/types.js +2 -0
  192. package/examples/gh/node_modules/typescript/dist/api/sync/types.js.map +1 -0
  193. package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts +114 -0
  194. package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts.map +1 -0
  195. package/examples/gh/node_modules/typescript/dist/api/syncChannel.js +508 -0
  196. package/examples/gh/node_modules/typescript/dist/api/syncChannel.js.map +1 -0
  197. package/examples/gh/node_modules/typescript/dist/api/timing.d.ts +175 -0
  198. package/examples/gh/node_modules/typescript/dist/api/timing.d.ts.map +1 -0
  199. package/examples/gh/node_modules/typescript/dist/api/timing.js +149 -0
  200. package/examples/gh/node_modules/typescript/dist/api/timing.js.map +1 -0
  201. package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts +100 -0
  202. package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts.map +1 -0
  203. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts +1161 -0
  204. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts.map +1 -0
  205. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js +4 -0
  206. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js.map +1 -0
  207. package/examples/gh/node_modules/typescript/dist/ast/ast.js +7 -0
  208. package/examples/gh/node_modules/typescript/dist/ast/ast.js.map +1 -0
  209. package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts +19 -0
  210. package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts.map +1 -0
  211. package/examples/gh/node_modules/typescript/dist/ast/astnav.js +596 -0
  212. package/examples/gh/node_modules/typescript/dist/ast/astnav.js.map +1 -0
  213. package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts +16 -0
  214. package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts.map +1 -0
  215. package/examples/gh/node_modules/typescript/dist/ast/clone.js +104 -0
  216. package/examples/gh/node_modules/typescript/dist/ast/clone.js.map +1 -0
  217. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts +520 -0
  218. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts.map +1 -0
  219. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js +3057 -0
  220. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js.map +1 -0
  221. package/examples/gh/node_modules/typescript/dist/ast/index.d.ts +20 -0
  222. package/examples/gh/node_modules/typescript/dist/ast/index.d.ts.map +1 -0
  223. package/examples/gh/node_modules/typescript/dist/ast/index.js +20 -0
  224. package/examples/gh/node_modules/typescript/dist/ast/index.js.map +1 -0
  225. package/examples/gh/node_modules/typescript/dist/ast/is.d.ts +35 -0
  226. package/examples/gh/node_modules/typescript/dist/ast/is.d.ts.map +1 -0
  227. package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts +329 -0
  228. package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts.map +1 -0
  229. package/examples/gh/node_modules/typescript/dist/ast/is.generated.js +1103 -0
  230. package/examples/gh/node_modules/typescript/dist/ast/is.generated.js.map +1 -0
  231. package/examples/gh/node_modules/typescript/dist/ast/is.js +233 -0
  232. package/examples/gh/node_modules/typescript/dist/ast/is.js.map +1 -0
  233. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts +11 -0
  234. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts.map +1 -0
  235. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js +202 -0
  236. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js.map +1 -0
  237. package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts +97 -0
  238. package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts.map +1 -0
  239. package/examples/gh/node_modules/typescript/dist/ast/scanner.js +2230 -0
  240. package/examples/gh/node_modules/typescript/dist/ast/scanner.js.map +1 -0
  241. package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts +17 -0
  242. package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts.map +1 -0
  243. package/examples/gh/node_modules/typescript/dist/ast/utils.js +67 -0
  244. package/examples/gh/node_modules/typescript/dist/ast/utils.js.map +1 -0
  245. package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts +14 -0
  246. package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts.map +1 -0
  247. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts +50 -0
  248. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +1 -0
  249. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js +978 -0
  250. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js.map +1 -0
  251. package/examples/gh/node_modules/typescript/dist/ast/visitor.js +47 -0
  252. package/examples/gh/node_modules/typescript/dist/ast/visitor.js.map +1 -0
  253. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts +2 -0
  254. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts.map +1 -0
  255. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +129 -0
  256. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +1 -0
  257. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js +132 -0
  258. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js.map +1 -0
  259. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js +130 -0
  260. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js.map +1 -0
  261. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +2 -0
  262. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +1 -0
  263. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +5 -0
  264. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
  265. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +6 -0
  266. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +1 -0
  267. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js +6 -0
  268. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js.map +1 -0
  269. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts +2 -0
  270. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +1 -0
  271. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +28 -0
  272. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +1 -0
  273. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js +30 -0
  274. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +1 -0
  275. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js +30 -0
  276. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js.map +1 -0
  277. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +2 -0
  278. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +1 -0
  279. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +7 -0
  280. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
  281. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +9 -0
  282. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +1 -0
  283. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js +9 -0
  284. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js.map +1 -0
  285. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts +2 -0
  286. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts.map +1 -0
  287. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +12 -0
  288. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +1 -0
  289. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js +14 -0
  290. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js.map +1 -0
  291. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js +14 -0
  292. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js.map +1 -0
  293. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts +2 -0
  294. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +1 -0
  295. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +23 -0
  296. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +1 -0
  297. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js +25 -0
  298. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +1 -0
  299. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js +25 -0
  300. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js.map +1 -0
  301. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts +2 -0
  302. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +1 -0
  303. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +9 -0
  304. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +1 -0
  305. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js +11 -0
  306. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +1 -0
  307. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js +11 -0
  308. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js.map +1 -0
  309. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts +2 -0
  310. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts.map +1 -0
  311. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +5 -0
  312. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +1 -0
  313. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js +6 -0
  314. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js.map +1 -0
  315. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js +6 -0
  316. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js.map +1 -0
  317. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts +2 -0
  318. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +1 -0
  319. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +42 -0
  320. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +1 -0
  321. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js +44 -0
  322. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +1 -0
  323. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js +44 -0
  324. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js.map +1 -0
  325. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +2 -0
  326. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +1 -0
  327. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +7 -0
  328. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +1 -0
  329. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +9 -0
  330. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +1 -0
  331. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js +9 -0
  332. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +1 -0
  333. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts +2 -0
  334. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts.map +1 -0
  335. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +17 -0
  336. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +1 -0
  337. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js +19 -0
  338. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js.map +1 -0
  339. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js +19 -0
  340. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js.map +1 -0
  341. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +2 -0
  342. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +1 -0
  343. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +9 -0
  344. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +1 -0
  345. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +11 -0
  346. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +1 -0
  347. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js +11 -0
  348. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +1 -0
  349. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts +2 -0
  350. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts.map +1 -0
  351. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +6 -0
  352. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +1 -0
  353. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js +8 -0
  354. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js.map +1 -0
  355. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js +8 -0
  356. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js.map +1 -0
  357. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +2 -0
  358. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
  359. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
  360. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
  361. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +38 -0
  362. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
  363. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js +38 -0
  364. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +1 -0
  365. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts +2 -0
  366. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +1 -0
  367. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +44 -0
  368. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +1 -0
  369. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js +46 -0
  370. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +1 -0
  371. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js +46 -0
  372. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js.map +1 -0
  373. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts +2 -0
  374. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts.map +1 -0
  375. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +50 -0
  376. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +1 -0
  377. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js +52 -0
  378. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js.map +1 -0
  379. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js +52 -0
  380. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js.map +1 -0
  381. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +2 -0
  382. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +1 -0
  383. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
  384. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
  385. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +18 -0
  386. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +1 -0
  387. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js +18 -0
  388. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +1 -0
  389. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +2 -0
  390. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +1 -0
  391. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
  392. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
  393. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +14 -0
  394. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +1 -0
  395. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js +14 -0
  396. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +1 -0
  397. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts +2 -0
  398. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts.map +1 -0
  399. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +11 -0
  400. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +1 -0
  401. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js +12 -0
  402. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js.map +1 -0
  403. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js +12 -0
  404. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js.map +1 -0
  405. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts +2 -0
  406. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +1 -0
  407. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +17 -0
  408. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +1 -0
  409. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js +18 -0
  410. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +1 -0
  411. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js +18 -0
  412. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js.map +1 -0
  413. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts +2 -0
  414. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +1 -0
  415. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +15 -0
  416. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +1 -0
  417. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js +17 -0
  418. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +1 -0
  419. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js +17 -0
  420. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js.map +1 -0
  421. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts +2 -0
  422. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts.map +1 -0
  423. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +5 -0
  424. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +1 -0
  425. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js +7 -0
  426. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js.map +1 -0
  427. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js +7 -0
  428. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js.map +1 -0
  429. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts +2 -0
  430. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +1 -0
  431. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +71 -0
  432. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +1 -0
  433. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js +73 -0
  434. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +1 -0
  435. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js +73 -0
  436. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js.map +1 -0
  437. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts +2 -0
  438. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +1 -0
  439. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +389 -0
  440. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +1 -0
  441. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js +391 -0
  442. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +1 -0
  443. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js +391 -0
  444. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js.map +1 -0
  445. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts +2 -0
  446. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +1 -0
  447. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +30 -0
  448. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +1 -0
  449. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js +32 -0
  450. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +1 -0
  451. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js +32 -0
  452. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js.map +1 -0
  453. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts +2 -0
  454. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts.map +1 -0
  455. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +76 -0
  456. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +1 -0
  457. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js +78 -0
  458. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js.map +1 -0
  459. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js +78 -0
  460. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js.map +1 -0
  461. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts +2 -0
  462. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +1 -0
  463. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +7 -0
  464. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
  465. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js +9 -0
  466. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +1 -0
  467. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js +9 -0
  468. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js.map +1 -0
  469. package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts +23 -0
  470. package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts.map +1 -0
  471. package/examples/gh/node_modules/typescript/dist/internal/utils.js +25 -0
  472. package/examples/gh/node_modules/typescript/dist/internal/utils.js.map +1 -0
  473. package/examples/gh/node_modules/typescript/lib/getExePath.d.ts +2 -0
  474. package/examples/gh/node_modules/typescript/lib/getExePath.js +70 -0
  475. package/examples/gh/node_modules/typescript/lib/tsc.js +28 -0
  476. package/examples/gh/node_modules/typescript/lib/version.cjs +3 -0
  477. package/examples/gh/node_modules/typescript/lib/version.d.cts +2 -0
  478. package/examples/gh/node_modules/typescript/package.json +87 -0
  479. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +11 -0
  480. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/README.md +54 -0
  481. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
  482. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
  483. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
  484. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
  485. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
  486. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
  487. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
  488. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
  489. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
  490. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
  491. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
  492. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
  493. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
  494. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
  495. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
  496. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
  497. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
  498. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
  499. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
  500. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
  501. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
  502. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
  503. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
  504. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
  505. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
  506. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
  507. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
  508. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
  509. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
  510. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
  511. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
  512. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
  513. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
  514. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
  515. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
  516. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
  517. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
  518. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
  519. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/package.json +54 -0
  520. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
  521. package/examples/gh/package.json +11 -5
  522. package/examples/gh/src/main.ts +10 -4
  523. package/examples/pwsh-demo/package.json +1 -1
  524. package/examples/pwsh-demo/src/main.ts +1 -1
  525. package/package.json +45 -41
  526. package/dist/core/schema-dsl/runtime.d.mts +0 -144
  527. package/dist/core/schema-dsl/runtime.mjs +0 -271
  528. package/dist/core/schema-dsl/to-json-schema.d.mts +0 -30
  529. package/dist/core/schema-dsl/to-json-schema.mjs +0 -74
  530. package/dist/runtime/bun.d.mts +0 -28
  531. package/dist/runtime/bun.mjs +0 -28
package/CHANGELOG.md CHANGED
@@ -7,6 +7,364 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.0.0-rc.20] - 2026-07-21
11
+
12
+ ### Changed
13
+
14
+ - **ansispeck `^0.4.1`** — bumped from `^0.2.0` (npm dependency and JSR
15
+ import map).
16
+
17
+ ## [3.0.0-rc.19] - 2026-07-21
18
+
19
+ ### Added
20
+
21
+ - **Expanded config discovery** (#61) — the default search now covers three
22
+ scopes, first match wins, no merging:
23
+ 1. **Project**: the base directory (default `cwd`) and every ancestor up
24
+ to the filesystem root, nearest first, each probed for
25
+ `.{appName}.{ext}`, `{appName}.config.{ext}`, and the new
26
+ `.config/{appName}.{ext}` convention.
27
+ 2. **User**: XDG / AppData as before, plus
28
+ `~/Library/Application Support/{appName}/config.{ext}` on macOS.
29
+ 3. **System**: `/etc/{appName}/config.{ext}` on Linux and macOS.
30
+ - **`baseDir` discovery option** — `discoverConfig()` accepts a base
31
+ directory to anchor the project-scope walk somewhere other than `cwd`.
32
+ - **`RuntimeAdapter.userConfigDirs` / `systemConfigDirs`** — optional
33
+ ordered config roots supplied by the runtime adapters; discovery falls
34
+ back to `[configDir]` / `[]` when a custom adapter omits them.
35
+
36
+ ### Changed
37
+
38
+ - **Breaking**: `buildConfigSearchPaths(appName, options)` replaces the
39
+ positional `(appName, cwd, configDir, loaders?)` signature; options carry
40
+ `baseDir`, `userConfigDirs`, `systemConfigDirs`, and `loaders`.
41
+
42
+ ## [3.0.0-rc.18] - 2026-07-21
43
+
44
+ ### Added
45
+
46
+ - **`flag.path({ type: 'directory', create: true })`** — creates the directory
47
+ (recursively) at resolution time when nothing exists at the path. Only
48
+ available with `type: 'directory'`, enforced at the type level. Creation
49
+ runs through a new `mkdir` seam: `RuntimeAdapter.mkdir`, overridable via
50
+ run options, noop in the test adapter, so `src/core` stays process-free.
51
+
52
+ ### Fixed
53
+
54
+ - **`flag.path({ type, mustExist: false })` rejected missing paths** — the
55
+ builder recorded the explicit `mustExist: false`, but resolution errored on
56
+ any missing path whenever path checks were active, making an optional
57
+ to-be-created path (e.g. an `--outdir` that the command itself creates)
58
+ impossible to declare. A missing path now passes when `mustExist` is
59
+ `false`; an existing path is still type-checked.
60
+
61
+ ## [3.0.0-rc.17] - 2026-07-20
62
+
63
+ ### Added
64
+
65
+ - **`out.status()`** — a success/status line channel that writes to **stderr**
66
+ (stdout stays clean for piping) and is suppressed under quiet verbosity.
67
+ `info` remains stdout-bound; `warn`/`error` remain always-emitted.
68
+ - **Global `--quiet`/`-q` flag** — sets quiet verbosity on every CLI, wired
69
+ like `--json`: detected and stripped at the root before dispatch (command
70
+ schemas never see it), honoring the `--` separator so a literal `-q`
71
+ positional reaches the command unchanged. Listed under root help's
72
+ `Global options:`.
73
+
74
+ ### Fixed
75
+
76
+ - **`.run()` misread a post-separator `--json`** — runtime preflight used a
77
+ naive `includes('--json')`, so `mycli cmd -- --json` entered JSON mode via
78
+ the adapter path even though `.execute()` correctly treats it as a
79
+ positional. Preflight now uses the `--`-aware detection.
80
+
81
+ ## [3.0.0-rc.16] - 2026-07-20
82
+
83
+ ### Added
84
+
85
+ - **`resolveRenderContext(argv, options?)`** — pre-`run()` probe returning the
86
+ output decisions the framework will make for a given argv: `jsonMode`
87
+ (`--`-aware `--json` detection), `isTTY`, the gated `color` palette, and
88
+ `isHyperlinkSupported`. Computed with the same composition `.execute()`/
89
+ `.run()` feed into the output channel, so content styled before `run()` —
90
+ banners, hand-rendered help — matches the channel that will actually render,
91
+ with zero argv re-parsing.
92
+ - **`includesBeforeSeparator` / `stripBeforeSeparator`** exported from the
93
+ package root — the `--`-aware root-flag primitives, for consumers who only
94
+ need correct flag detection.
95
+
96
+ ## [3.0.0-rc.15] - 2026-07-20
97
+
98
+ ### Added
99
+
100
+ - **Configurable flag order in help** — `.help({ flagOrder })` controls the
101
+ `Flags:` table order: `'alphabetical'` (default, short-aliased flags first
102
+ then alphabetical) or `'declaration'` (the order `.flag()` was called). For
103
+ full control, `.help({ sortFlags: (a, b) => number })` supplies a custom
104
+ comparator over flag names that wins over `flagOrder`. Both are also
105
+ accepted at runtime via `execute`/`run` `help` options.
106
+
107
+ ## [3.0.0-rc.14] - 2026-07-20
108
+
109
+ ### Added
110
+
111
+ - **Function-form examples** — `.example()` now accepts a
112
+ `(meta) => string` builder alongside the literal string. `meta` carries the
113
+ invoked program `name` (`help.binName`, falling back to the command name) and
114
+ `version`, resolved at render time, so examples reference the real program
115
+ name instead of hardcoding it and stay truthful under symlinks, `inheritName`,
116
+ and `npx x` vs a global install. The thunk resolves in both `--help` text
117
+ (composing with example highlighting) and `--json`/definition-schema output.
118
+ - **`ExampleMeta`** and **`ExampleCommand`** public types for annotating
119
+ function-form example builders.
120
+
121
+ ## [3.0.0-rc.13] - 2026-07-20
122
+
123
+ ### Changed
124
+
125
+ - **Syntax-highlighted example commands** — the `Examples:` help section now
126
+ highlights each command per token: the leading binary via `usageBin` (bold)
127
+ and flag tokens (`-x`, `--long`) via `flag` (cyan), with values left plain.
128
+ Tokenizing is quote-aware so `--scope './a b'` stays one token, and the
129
+ existing color gate is respected (identity formatters when `NO_COLOR` or
130
+ non-TTY), so `stripAnsi(colored)` still equals the plain rendering.
131
+
132
+ ## [3.0.0-rc.12] - 2026-07-20
133
+
134
+ ### Added
135
+
136
+ - **`out.isHyperlinkSupported`** — resolved OSC 8 hyperlink gate on the output
137
+ channel. Honors `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
138
+ `--no-hyperlinks`/`--hyperlinks` flags, falling back to `isTTY`. Consumers
139
+ rendering their own `out.color.link(...)` output can gate on it to keep OSC 8
140
+ escapes out of piped or opted-out contexts.
141
+ - **Standard Schema v1 validation** — `flag.custom(schema)` and
142
+ `arg.custom(schema)` accept any conforming validator (including callable,
143
+ sync, and async schemas) with inferred output types and no runtime
144
+ dependency. Validation runs after source resolution, so argv, env, config,
145
+ prompt, stdin, and default values behave consistently; array flags and
146
+ variadic args validate each element.
147
+ - **`isMainModule(import.meta)`**: Compatibility helper for consumers whose
148
+ ambient `ImportMeta` interface omits `main`. Projects with normal Node, Bun,
149
+ or Deno runtime typings can keep using the conventional
150
+ `if (import.meta.main)` guard directly.
151
+
152
+ ### Changed
153
+
154
+ - **`.manifest({ from: import.meta })` compatibility form**: Anchored manifest
155
+ discovery now also accepts the calling module's complete `import.meta`
156
+ object and extracts its URL internally. The conventional
157
+ `{ from: import.meta.url }` form remains supported and preferred when runtime
158
+ typings expose `url`. Together with `isMainModule(import.meta)`, the new forms
159
+ avoid global `ImportMeta` augmentation, allowing consumers with an empty
160
+ ambient `ImportMeta` interface to pass both TypeScript/Deno checks and JSR
161
+ publish validation.
162
+
163
+ ### Removed
164
+
165
+ - **Internal schema DSL** — the private template-literal parser, validator, and
166
+ JSON Schema converter were replaced by direct definition-schema objects,
167
+ removing roughly 1,500 lines without changing the generated schema.
168
+
169
+ ### Fixed
170
+
171
+ - **`NO_HYPERLINKS` ignored in the help header** — root-help header hyperlinks
172
+ gated on raw TTY status, so `NO_HYPERLINKS=1` (and `--no-hyperlinks`) still
173
+ emitted OSC 8 links in the header. The gate now consults
174
+ `out.isHyperlinkSupported`, which respects the standard hyperlink overrides.
175
+
176
+ ## [3.0.0-rc.11] - 2026-07-15
177
+
178
+ ### Fixed
179
+
180
+ - **JSR publish** — the Deno import map pinned `ansispeck` below `0.2.0`,
181
+ so the JSR build resolved an ansispeck whose `createColors` rejected
182
+ `osc8`'s two-argument call and failed type checking. The map now tracks
183
+ `^0.2.0` alongside the npm dependency. (rc.10 published to npm only.)
184
+
185
+ ## [3.0.0-rc.10] - 2026-07-15
186
+
187
+ ### Changed
188
+
189
+ - **`osc8()` link text is optional** — it now defaults to the link target, so
190
+ `osc8('https://x.dev')` renders as a hyperlink displaying its own URL.
191
+ Terminals without OSC 8 support still show a usable address. Passing an
192
+ explicit label is unchanged.
193
+ - **`osc8()` now delegates to `ansispeck`'s hyperlink constructor** — it emits
194
+ the **ST** (`ESC \`) terminator instead of **BEL** (`\x07`). Both are valid
195
+ OSC 8 terminators supported by modern terminals; the rendered link is
196
+ unchanged. This removes dreamcli's last hand-rolled escape-sequence code.
197
+
198
+ ## [3.0.0-rc.9] - 2026-07-11
199
+
200
+ ### Added
201
+
202
+ - **JSON help** — `--help` with `--json` emits the CLI's definition document
203
+ (the `generateSchema()` shape, `$schema`-tagged) on stdout instead of help
204
+ text, for root help, `help <command>`, and `<command> --help` alike. New
205
+ `generateCommandSchema(schema)` export produces the per-command document.
206
+
207
+ ### Changed
208
+
209
+ - **`generateSchema()` emits the default command's full definition** — the
210
+ `defaultCommand` field was a name-only string reference while the default
211
+ command's flags/args appeared nowhere in the document (it never lists in
212
+ `commands`). It is now the complete serialized command.
213
+
214
+ - **`flag.array()` rejects non-element builders at compile time** — the
215
+ element position now requires a builder carrying only value-shape settings
216
+ (kind, constraints, enum values, `parseFn`). Flag-level modifiers
217
+ (`.alias()`, `.env()`, `.default()`, `.prompt()`, `.describe()`, …) were
218
+ silently ignored on elements before; passing them is now a type error, as
219
+ is `flag.path()` / `flag.count()` / `flag.keyValue()` / nested arrays.
220
+ Type-level only — no runtime behavior change.
221
+
222
+ ## [3.0.0-rc.8] - 2026-07-11
223
+
224
+ ### Added
225
+
226
+ - **Themed help output** — root and per-command help render with a semantic
227
+ color theme (bold+underlined section titles, cyan literals, dimmed metadata,
228
+ yellow deprecations) whenever color is enabled, using the same gate as
229
+ `out.color` (TTY + color support, no `--json`, `NO_COLOR`/`FORCE_COLOR`
230
+ honored). Piped and JSON output stays byte-clean. Customize via
231
+ `.help({ theme: (c) => ({ sectionTitle: c.magenta }) })` — the factory
232
+ receives the gated ansispeck palette and is never invoked when color is off,
233
+ so custom themes cannot leak escapes. New public types: `HelpTheme`,
234
+ `HelpThemeFactory`.
235
+ - **Negatable booleans** — `flag.boolean().negatable()` accepts `--no-<name>`
236
+ as `false`. Both spellings are one logical flag (last CLI occurrence wins,
237
+ shared duplicate policy); the negated spelling is presence-only
238
+ (`--no-foo=x` errors) and renders as `--[no-]foo` in help. Custom spelling
239
+ via `{ alias }`, unadvertised via `{ hidden }`. Env/config/prompt/default
240
+ resolution is unchanged.
241
+ - **Duplicate policy** — `.duplicates('last' | 'first' | 'error')` on
242
+ singleton flags controls repeated CLI occurrences. `'error'` throws
243
+ `ParseError` code `DUPLICATE_FLAG` with `{ flag, count, values }` details;
244
+ `'first'` keeps the first value while still consuming later value tokens.
245
+ Counted per logical flag (aliases + negated + parity spellings); env/config
246
+ precedence is never a duplicate.
247
+ - **`packageRepositoryUrl(pkg, { require: true })`** — narrows the return
248
+ type to `string`, throwing a `CLIError` (code `INVALID_REPOSITORY`) at the
249
+ call site when the `repository` field is missing or not a recognisable
250
+ locator. Removes the `!` assertion for manifests known to carry a valid
251
+ repository, with the guarantee enforced at runtime rather than assumed.
252
+ - **Flag spelling parity (kebab ↔ camel)** — `--doThis` matches a flag named
253
+ `do-this` and vice versa, for names and long aliases, on by default.
254
+ Handler keys, help, completions, and suggestions stay canonical.
255
+ Automatically disabled per pair when both spellings are declared explicitly;
256
+ globally via `cli('mycli', { flags: { caseParity: false } })` (new
257
+ `cli(name, options)` overload) or `RunOptions.flags`.
258
+
259
+ ### Fixed
260
+
261
+ - `execute(argv, { flags })` overrides now reach the planner's dispatch arity
262
+ scanning, not just command parsing.
263
+ - Generated meta-schema descriptions render `@defaultValue` tags as a
264
+ `Default: <value>` paragraph instead of silently dropping them.
265
+
266
+ ## [3.0.0-rc.7] - 2026-07-10
267
+
268
+ ### Added
269
+
270
+ - **`.derive()` handlers may omit the return** — a validation-only derive with
271
+ no `return` statement (sync or async) now typechecks; previously `void` /
272
+ `Promise<void>` failed the `Output` constraint and forced an explicit
273
+ `return undefined`.
274
+ - **String constraints** — `flag.string({ nonEmpty, minLength, maxLength, pattern })`
275
+ plus chained `.nonEmpty()` / `.minLength()` / `.maxLength()` / `.pattern()`,
276
+ mirroring the numeric-constraint model. Checked in fixed order
277
+ (nonEmpty → minLength → maxLength → pattern) at both the CLI parse boundary
278
+ (`INVALID_VALUE`) and env/config/prompt resolution (`CONSTRAINT_VIOLATED`),
279
+ and emitted into the exported JSON Schema as `minLength` / `maxLength` /
280
+ `pattern`.
281
+ - **`.separator()` and `.unique()` on array flags** — `.separator(',')` splits
282
+ each CLI occurrence before element coercion, so `--region us,eu --region ap`
283
+ works alongside repetition and errors name the offending element. Env/config
284
+ string values use the same separator (default remains `','`). `.unique()`
285
+ deduplicates the final resolved array (first-seen order) regardless of
286
+ source.
287
+ - **`flag.url()`** — parses into a `URL`, with optional
288
+ `{ protocols: ['https'] }` allowlist. Help shows `<url>`.
289
+ - **`flag.path()`** — path string with opt-in filesystem checks
290
+ (`{ mustExist: true }`, `{ type: 'file' | 'directory' }`) validated after
291
+ resolution through the runtime adapter, so CLI/env/config values are checked
292
+ identically. `RuntimeAdapter` gained a `stat()` primitive (Node/Bun via
293
+ `node:fs/promises`, Deno via `Deno.stat`; test adapters default to "nothing
294
+ exists"), and `RunOptions` / `ResolveOptions` accept a `stat` injection for
295
+ process-free execution — without one, checks are skipped.
296
+ - **`flag.date()`** — strict ISO-8601 → `Date` with optional inclusive
297
+ `min` / `max` bounds. Rejects lenient `Date.parse` inputs (`'0'`,
298
+ `'March 5'`) and calendar-invalid dates (`2026-02-31`).
299
+ - **`flag.duration()`** — `'30s'`, `'5m'`, `'1.5h'`, `'250ms'`, `'2d'`,
300
+ compounds (`'1h30m'`), or bare milliseconds → milliseconds.
301
+ - **`flag.bytes()`** — `'512mb'`, `'1.5gb'`, `'64kb'` or bare bytes → bytes
302
+ (binary units, case-insensitive).
303
+ - **`flag.count()`** — occurrence counter (`-vvv` → `3`, absent → `0`,
304
+ explicit `--verbose=2` supported). Takes no value token, not promptable,
305
+ and joins boolean flags in help (no `<value>` placeholder) and shell
306
+ completions.
307
+ - **`flag.keyValue()`** — repeated `KEY=VALUE` merges into
308
+ `Record<string, string>` (split at the first `=`, later keys win, unset
309
+ resolves to `{}`). Env accepts comma-separated pairs; config accepts a plain
310
+ object. New `'empty-object'` optional fallback joins arrays' `[]` as the
311
+ kinds that resolve to a value when unset.
312
+
313
+ ## [3.0.0-rc.6] - 2026-07-09
314
+
315
+ ### Added
316
+
317
+ - **Runtime terminal sizing hooks** — `RuntimeAdapter` now exposes
318
+ `getTerminalSize()` and `onTerminalResize()`. Node/Bun read
319
+ `process.stdout.getWindowSize()` (falling back to `columns` / `rows`) and
320
+ subscribe to stdout `resize`; Deno uses native `Deno.consoleSize()` and
321
+ `SIGWINCH` on non-Windows platforms.
322
+
323
+ ### Changed
324
+
325
+ - **Help output now fits the live terminal in `.run()`** — root and command help
326
+ use runtime terminal columns when no explicit `.help({ width })` or runtime
327
+ `help.width` is provided. Non-TTY or unavailable sizes still fall back to 80,
328
+ and `.execute()` remains deterministic for tests.
329
+
330
+ ## [3.0.0-rc.5] - 2026-07-08
331
+
332
+ ### Removed
333
+
334
+ - **`createBunAdapter` export** (from `@kjanat/dreamcli/runtime`). Bun exposes a
335
+ Node-compatible `process`, so the Bun adapter had been a pure passthrough to
336
+ the Node adapter since the runtime version hard-fail was dropped — it blessed
337
+ a runtime rather than abstracting distinct I/O. Auto-detection now maps Bun to
338
+ the Node adapter directly and `src/runtime/bun.ts` is gone. Runtime detection
339
+ is unchanged: `detectRuntime()` still reports `'bun'` and `RUNTIMES` still
340
+ lists it. Callers that selected the Bun adapter explicitly should use
341
+ `createNodeAdapter` (identical behavior) or rely on `createAdapter()`
342
+ auto-detection (#51).
343
+
344
+ ## [3.0.0-rc.4] - 2026-07-06
345
+
346
+ ### Added
347
+
348
+ - **`.default(cmd, { route: true })`** — expose a default command under its own
349
+ name as a routable top-level command, in addition to the bare/flags-only root
350
+ surface. `mycli` and `mycli <name>` then run the same command object, and it
351
+ is listed in the root `Commands:` section (tagged `(default)`) beside its
352
+ siblings. Lets CLIs keep both a short root shorthand and an explicit,
353
+ documented named command without duplicating the builder (#55). Opt-in only
354
+ — the surface-only default remains the default behavior. With `route: true`
355
+ the name wins over positional interpretation, so a positional value equal to
356
+ the command's own name must be passed after `--`.
357
+
358
+ ## [3.0.0-rc.3] - 2026-07-06
359
+
360
+ ### Added
361
+
362
+ - **`@kjanat/dreamcli/version` subpath** — exposes the framework's own build
363
+ identity as `DREAMCLI_VERSION` and `DREAMCLI_REVISION` (git short SHA) for
364
+ diagnostics and bug reports. Deliberately a subpath rather than root exports
365
+ so the constants stay out of root-import IDE completions; both report
366
+ `'dev'` when running unbundled source.
367
+
10
368
  ## [3.0.0-rc.2] - 2026-07-06
11
369
 
12
370
  ### Added
@@ -1028,7 +1386,22 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1028
1386
  - MIT License.
1029
1387
  - Markdownlint configuration.
1030
1388
 
1031
- [Unreleased]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.2...HEAD
1389
+ [Unreleased]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.17...HEAD
1390
+ [3.0.0-rc.17]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.16...v3.0.0-rc.17
1391
+ [3.0.0-rc.16]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.15...v3.0.0-rc.16
1392
+ [3.0.0-rc.15]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.14...v3.0.0-rc.15
1393
+ [3.0.0-rc.14]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.13...v3.0.0-rc.14
1394
+ [3.0.0-rc.13]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.12...v3.0.0-rc.13
1395
+ [3.0.0-rc.12]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.11...v3.0.0-rc.12
1396
+ [3.0.0-rc.11]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.10...v3.0.0-rc.11
1397
+ [3.0.0-rc.10]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.9...v3.0.0-rc.10
1398
+ [3.0.0-rc.9]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.8...v3.0.0-rc.9
1399
+ [3.0.0-rc.8]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.7...v3.0.0-rc.8
1400
+ [3.0.0-rc.7]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.6...v3.0.0-rc.7
1401
+ [3.0.0-rc.6]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.5...v3.0.0-rc.6
1402
+ [3.0.0-rc.5]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.4...v3.0.0-rc.5
1403
+ [3.0.0-rc.4]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.3...v3.0.0-rc.4
1404
+ [3.0.0-rc.3]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.2...v3.0.0-rc.3
1032
1405
  [3.0.0-rc.2]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.1...v3.0.0-rc.2
1033
1406
  [3.0.0-rc.1]: https://github.com/kjanat/dreamcli/compare/v2.5.0...v3.0.0-rc.1
1034
1407
  [2.5.0]: https://github.com/kjanat/dreamcli/compare/v2.4.1...v2.5.0
package/README.md CHANGED
@@ -92,9 +92,9 @@ cli('greet').default(greet).run();
92
92
  ### Multi-command CLI
93
93
 
94
94
  <picture>
95
- <source media="(prefers-color-scheme: dark)" width="700" height="400" alt="dreamcli-migrate-dark" srcset="https://github.com/user-attachments/assets/1ef7f20c-9ffb-4cb6-a6bc-fb562895aa6f">
96
- <source media="(prefers-color-scheme: light)" width="700" height="400" alt="dreamcli-migrate-light" srcset="https://github.com/user-attachments/assets/1ee5f38d-cad8-47ec-94b2-c826eabab76b">
97
- <img alt="DreamCLI migration progress demo" width="700" height="400" src="https://github.com/user-attachments/assets/1ee5f38d-cad8-47ec-94b2-c826eabab76b">
95
+ <source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/1ef7f20c-9ffb-4cb6-a6bc-fb562895aa6f">
96
+ <source media="(prefers-color-scheme: light)" srcset="https://github.com/user-attachments/assets/1ee5f38d-cad8-47ec-94b2-c826eabab76b">
97
+ <img alt="DreamCLI migration progress demo" width="700" src="https://github.com/user-attachments/assets/1ee5f38d-cad8-47ec-94b2-c826eabab76b">
98
98
  </picture>
99
99
 
100
100
  ```ts
@@ -1,15 +1,14 @@
1
- import { FlagSchema } from "../schema/flag.mjs";
2
1
  import { CommandSchema, ErasedCommand } from "../schema/command.mjs";
3
-
2
+ import { FlagLookupEntry, ParseOptions } from "../parse/index.mjs";
4
3
  //#region src/core/cli/dispatch.d.ts
5
4
  /**
6
- * Flag lookup (name/alias → `[canonicalName, schema]`) used to make the
5
+ * Flag lookup (spelling → {@link FlagLookupEntry}) used to make the
7
6
  * command-name scan aware of value-flag arity. Built from the flags valid at
8
7
  * the current dispatch level via {@link buildFlagLookup}.
9
8
  *
10
9
  * @internal
11
10
  */
12
- type ValueFlagLookup = ReadonlyMap<string, readonly [name: string, schema: FlagSchema]>;
11
+ type ValueFlagLookup = ReadonlyMap<string, FlagLookupEntry>;
13
12
  /** Successful dispatch — target command found with argv path. */
14
13
  interface DispatchMatch {
15
14
  /** Discriminant — a command name in argv matched a registered command. */
@@ -65,11 +64,13 @@ type DispatchResult = DispatchMatch | DispatchNeedsSubcommand | DispatchUnknown;
65
64
  * @param valueFlags - Lookup of flags valid at this level, used so a
66
65
  * space-separated value-flag's value (`--region eu`) is not mistaken for a
67
66
  * command name. Empty by default (arity-unaware, legacy behaviour).
67
+ * @param parseOptions - Parser toggles (case parity) applied to descent-level
68
+ * flag lookups built inside dispatch.
68
69
  * @returns Discriminated dispatch result.
69
70
  *
70
71
  * @internal
71
72
  */
72
- declare function dispatch(argv: readonly string[], commands: ReadonlyMap<string, ErasedCommand>, ancestorPath?: readonly CommandSchema[], valueFlags?: ValueFlagLookup): DispatchResult;
73
+ declare function dispatch(argv: readonly string[], commands: ReadonlyMap<string, ErasedCommand>, ancestorPath?: readonly CommandSchema[], valueFlags?: ValueFlagLookup, parseOptions?: ParseOptions): DispatchResult;
73
74
  /**
74
75
  * Whether a flag token consumes the following argv token as its value.
75
76
  *
@@ -1,17 +1,6 @@
1
1
  import { buildFlagLookup, flagExpectsValue } from "../parse/index.mjs";
2
2
  //#region src/core/cli/dispatch.ts
3
3
  /**
4
- * Recursive command dispatch for nested command trees.
5
- *
6
- * Walks argv segments, matching command names at each level of the tree.
7
- * Returns a discriminated union describing the dispatch outcome: a matched
8
- * command with its ancestor path, a group that needs a subcommand, or an
9
- * unknown command with suggestion candidates.
10
- *
11
- * @module dreamcli/core/cli/dispatch
12
- * @internal
13
- */
14
- /**
15
4
  * Recursively walk argv, consuming command name segments from the front.
16
5
  *
17
6
  * At each level, the first non-flag token is tested as a command name
@@ -33,11 +22,13 @@ import { buildFlagLookup, flagExpectsValue } from "../parse/index.mjs";
33
22
  * @param valueFlags - Lookup of flags valid at this level, used so a
34
23
  * space-separated value-flag's value (`--region eu`) is not mistaken for a
35
24
  * command name. Empty by default (arity-unaware, legacy behaviour).
25
+ * @param parseOptions - Parser toggles (case parity) applied to descent-level
26
+ * flag lookups built inside dispatch.
36
27
  * @returns Discriminated dispatch result.
37
28
  *
38
29
  * @internal
39
30
  */
40
- function dispatch(argv, commands, ancestorPath = [], valueFlags = /* @__PURE__ */ new Map()) {
31
+ function dispatch(argv, commands, ancestorPath = [], valueFlags = /* @__PURE__ */ new Map(), parseOptions) {
41
32
  let cmdIdx = -1;
42
33
  for (let i = 0; i < argv.length; i++) {
43
34
  const token = argv[i];
@@ -76,7 +67,7 @@ function dispatch(argv, commands, ancestorPath = [], valueFlags = /* @__PURE__ *
76
67
  const remaining = [...argv.slice(0, cmdIdx), ...argv.slice(cmdIdx + 1)];
77
68
  const currentPath = [...ancestorPath, matched.schema];
78
69
  if (matched.subcommands.size > 0) {
79
- const subResult = dispatch(remaining, matched.subcommands, currentPath, buildFlagLookup(matched.schema.flags));
70
+ const subResult = dispatch(remaining, matched.subcommands, currentPath, buildFlagLookup(matched.schema.flags, parseOptions), parseOptions);
80
71
  switch (subResult.kind) {
81
72
  case "match": return subResult;
82
73
  case "unknown":
@@ -130,13 +121,13 @@ function consumesFollowingToken(token, valueFlags) {
130
121
  if (token.startsWith("--")) {
131
122
  if (token.includes("=")) return false;
132
123
  const entry = valueFlags.get(token.slice(2));
133
- return entry !== void 0 && flagExpectsValue(entry[1]);
124
+ return entry !== void 0 && flagExpectsValue(entry.schema);
134
125
  }
135
126
  const chars = token.slice(1);
136
127
  for (let i = 0; i < chars.length; i++) {
137
128
  const entry = valueFlags.get(chars.charAt(i));
138
129
  if (entry === void 0) return false;
139
- if (!flagExpectsValue(entry[1])) continue;
130
+ if (!flagExpectsValue(entry.schema)) continue;
140
131
  return i === chars.length - 1;
141
132
  }
142
133
  return false;
@@ -211,4 +202,4 @@ function uniqueCommands(commands) {
211
202
  return result;
212
203
  }
213
204
  //#endregion
214
- export { dispatch, findClosestCommand };
205
+ export { consumesFollowingToken, dispatch, findClosestCommand, levenshtein, uniqueCommands };
@@ -1,5 +1,4 @@
1
1
  import { PackageJsonData } from "../config/package-json.mjs";
2
-
3
2
  //#region src/core/cli/help-links.d.ts
4
3
  /**
5
4
  * OSC 8 hyperlink targets for the root-help header.