@kjanat/dreamcli 3.0.0-rc.11 → 3.0.0-rc.13

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 (452) hide show
  1. package/CHANGELOG.md +58 -1
  2. package/dist/core/cli/index.d.mts +29 -4
  3. package/dist/core/cli/index.mjs +44 -11
  4. package/dist/core/cli/root-help.mjs +1 -0
  5. package/dist/core/completion/shells/shared.mjs +1 -0
  6. package/dist/core/config/package-json.d.mts +1 -0
  7. package/dist/core/help/index.d.mts +2 -0
  8. package/dist/core/help/index.mjs +31 -5
  9. package/dist/core/json-schema/index.d.mts +0 -5
  10. package/dist/core/json-schema/index.mjs +242 -78
  11. package/dist/core/output/index.d.mts +33 -1
  12. package/dist/core/output/index.mjs +29 -2
  13. package/dist/core/resolve/index.mjs +5 -0
  14. package/dist/core/resolve/standard.d.mts +24 -0
  15. package/dist/core/resolve/standard.mjs +114 -0
  16. package/dist/core/schema/arg.d.mts +35 -0
  17. package/dist/core/schema/arg.mjs +5 -2
  18. package/dist/core/schema/command.d.mts +9 -0
  19. package/dist/core/schema/flag.d.mts +37 -1
  20. package/dist/core/schema/flag.mjs +5 -2
  21. package/dist/core/schema/index.d.mts +2 -1
  22. package/dist/core/schema/standard.d.mts +100 -0
  23. package/dist/core/schema/standard.mjs +15 -0
  24. package/dist/index.d.mts +3 -2
  25. package/dist/index.mjs +2 -2
  26. package/dist/version.mjs +2 -2
  27. package/dreamcli.schema.json +79 -0
  28. package/examples/gh/node_modules/typescript/LICENSE +55 -0
  29. package/examples/gh/node_modules/typescript/NOTICE.txt +436 -0
  30. package/examples/gh/node_modules/typescript/README.md +49 -0
  31. package/examples/gh/node_modules/typescript/bin/tsc +2 -0
  32. package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts +529 -0
  33. package/examples/gh/node_modules/typescript/dist/api/async/api.d.ts.map +1 -0
  34. package/examples/gh/node_modules/typescript/dist/api/async/api.js +1657 -0
  35. package/examples/gh/node_modules/typescript/dist/api/async/api.js.map +1 -0
  36. package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts +39 -0
  37. package/examples/gh/node_modules/typescript/dist/api/async/client.d.ts.map +1 -0
  38. package/examples/gh/node_modules/typescript/dist/api/async/client.js +211 -0
  39. package/examples/gh/node_modules/typescript/dist/api/async/client.js.map +1 -0
  40. package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts +310 -0
  41. package/examples/gh/node_modules/typescript/dist/api/async/types.d.ts.map +1 -0
  42. package/examples/gh/node_modules/typescript/dist/api/async/types.js +2 -0
  43. package/examples/gh/node_modules/typescript/dist/api/async/types.js.map +1 -0
  44. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts +109 -0
  45. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.d.ts.map +1 -0
  46. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js +2 -0
  47. package/examples/gh/node_modules/typescript/dist/api/compilerOptions.js.map +1 -0
  48. package/examples/gh/node_modules/typescript/dist/api/fs.d.ts +23 -0
  49. package/examples/gh/node_modules/typescript/dist/api/fs.d.ts.map +1 -0
  50. package/examples/gh/node_modules/typescript/dist/api/fs.js +109 -0
  51. package/examples/gh/node_modules/typescript/dist/api/fs.js.map +1 -0
  52. package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts +15 -0
  53. package/examples/gh/node_modules/typescript/dist/api/node/encoder.d.ts.map +1 -0
  54. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts +5 -0
  55. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.d.ts.map +1 -0
  56. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js +74 -0
  57. package/examples/gh/node_modules/typescript/dist/api/node/encoder.generated.js.map +1 -0
  58. package/examples/gh/node_modules/typescript/dist/api/node/encoder.js +287 -0
  59. package/examples/gh/node_modules/typescript/dist/api/node/encoder.js.map +1 -0
  60. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts +32 -0
  61. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.d.ts.map +1 -0
  62. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js +213 -0
  63. package/examples/gh/node_modules/typescript/dist/api/node/msgpack.js.map +1 -0
  64. package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts +76 -0
  65. package/examples/gh/node_modules/typescript/dist/api/node/node.d.ts.map +1 -0
  66. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts +182 -0
  67. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.d.ts.map +1 -0
  68. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js +835 -0
  69. package/examples/gh/node_modules/typescript/dist/api/node/node.generated.js.map +1 -0
  70. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts +62 -0
  71. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.d.ts.map +1 -0
  72. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js +122 -0
  73. package/examples/gh/node_modules/typescript/dist/api/node/node.infrastructure.js.map +1 -0
  74. package/examples/gh/node_modules/typescript/dist/api/node/node.js +298 -0
  75. package/examples/gh/node_modules/typescript/dist/api/node/node.js.map +1 -0
  76. package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts +29 -0
  77. package/examples/gh/node_modules/typescript/dist/api/node/protocol.d.ts.map +1 -0
  78. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts +4 -0
  79. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.d.ts.map +1 -0
  80. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js +241 -0
  81. package/examples/gh/node_modules/typescript/dist/api/node/protocol.generated.js.map +1 -0
  82. package/examples/gh/node_modules/typescript/dist/api/node/protocol.js +30 -0
  83. package/examples/gh/node_modules/typescript/dist/api/node/protocol.js.map +1 -0
  84. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts +6 -0
  85. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.d.ts.map +1 -0
  86. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js +61 -0
  87. package/examples/gh/node_modules/typescript/dist/api/node/wtf8.js.map +1 -0
  88. package/examples/gh/node_modules/typescript/dist/api/options.d.ts +32 -0
  89. package/examples/gh/node_modules/typescript/dist/api/options.d.ts.map +1 -0
  90. package/examples/gh/node_modules/typescript/dist/api/options.js +11 -0
  91. package/examples/gh/node_modules/typescript/dist/api/options.js.map +1 -0
  92. package/examples/gh/node_modules/typescript/dist/api/path.d.ts +110 -0
  93. package/examples/gh/node_modules/typescript/dist/api/path.d.ts.map +1 -0
  94. package/examples/gh/node_modules/typescript/dist/api/path.js +508 -0
  95. package/examples/gh/node_modules/typescript/dist/api/path.js.map +1 -0
  96. package/examples/gh/node_modules/typescript/dist/api/proto.d.ts +239 -0
  97. package/examples/gh/node_modules/typescript/dist/api/proto.d.ts.map +1 -0
  98. package/examples/gh/node_modules/typescript/dist/api/proto.js +37 -0
  99. package/examples/gh/node_modules/typescript/dist/api/proto.js.map +1 -0
  100. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts +79 -0
  101. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.d.ts.map +1 -0
  102. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js +169 -0
  103. package/examples/gh/node_modules/typescript/dist/api/sourceFileCache.js.map +1 -0
  104. package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts +529 -0
  105. package/examples/gh/node_modules/typescript/dist/api/sync/api.d.ts.map +1 -0
  106. package/examples/gh/node_modules/typescript/dist/api/sync/api.js +1665 -0
  107. package/examples/gh/node_modules/typescript/dist/api/sync/api.js.map +1 -0
  108. package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts +30 -0
  109. package/examples/gh/node_modules/typescript/dist/api/sync/client.d.ts.map +1 -0
  110. package/examples/gh/node_modules/typescript/dist/api/sync/client.js +124 -0
  111. package/examples/gh/node_modules/typescript/dist/api/sync/client.js.map +1 -0
  112. package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts +310 -0
  113. package/examples/gh/node_modules/typescript/dist/api/sync/types.d.ts.map +1 -0
  114. package/examples/gh/node_modules/typescript/dist/api/sync/types.js +2 -0
  115. package/examples/gh/node_modules/typescript/dist/api/sync/types.js.map +1 -0
  116. package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts +114 -0
  117. package/examples/gh/node_modules/typescript/dist/api/syncChannel.d.ts.map +1 -0
  118. package/examples/gh/node_modules/typescript/dist/api/syncChannel.js +508 -0
  119. package/examples/gh/node_modules/typescript/dist/api/syncChannel.js.map +1 -0
  120. package/examples/gh/node_modules/typescript/dist/api/timing.d.ts +175 -0
  121. package/examples/gh/node_modules/typescript/dist/api/timing.d.ts.map +1 -0
  122. package/examples/gh/node_modules/typescript/dist/api/timing.js +149 -0
  123. package/examples/gh/node_modules/typescript/dist/api/timing.js.map +1 -0
  124. package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts +100 -0
  125. package/examples/gh/node_modules/typescript/dist/ast/ast.d.ts.map +1 -0
  126. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts +1161 -0
  127. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.d.ts.map +1 -0
  128. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js +4 -0
  129. package/examples/gh/node_modules/typescript/dist/ast/ast.generated.js.map +1 -0
  130. package/examples/gh/node_modules/typescript/dist/ast/ast.js +7 -0
  131. package/examples/gh/node_modules/typescript/dist/ast/ast.js.map +1 -0
  132. package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts +19 -0
  133. package/examples/gh/node_modules/typescript/dist/ast/astnav.d.ts.map +1 -0
  134. package/examples/gh/node_modules/typescript/dist/ast/astnav.js +596 -0
  135. package/examples/gh/node_modules/typescript/dist/ast/astnav.js.map +1 -0
  136. package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts +16 -0
  137. package/examples/gh/node_modules/typescript/dist/ast/clone.d.ts.map +1 -0
  138. package/examples/gh/node_modules/typescript/dist/ast/clone.js +104 -0
  139. package/examples/gh/node_modules/typescript/dist/ast/clone.js.map +1 -0
  140. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts +520 -0
  141. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.d.ts.map +1 -0
  142. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js +3057 -0
  143. package/examples/gh/node_modules/typescript/dist/ast/factory.generated.js.map +1 -0
  144. package/examples/gh/node_modules/typescript/dist/ast/index.d.ts +20 -0
  145. package/examples/gh/node_modules/typescript/dist/ast/index.d.ts.map +1 -0
  146. package/examples/gh/node_modules/typescript/dist/ast/index.js +20 -0
  147. package/examples/gh/node_modules/typescript/dist/ast/index.js.map +1 -0
  148. package/examples/gh/node_modules/typescript/dist/ast/is.d.ts +35 -0
  149. package/examples/gh/node_modules/typescript/dist/ast/is.d.ts.map +1 -0
  150. package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts +329 -0
  151. package/examples/gh/node_modules/typescript/dist/ast/is.generated.d.ts.map +1 -0
  152. package/examples/gh/node_modules/typescript/dist/ast/is.generated.js +1103 -0
  153. package/examples/gh/node_modules/typescript/dist/ast/is.generated.js.map +1 -0
  154. package/examples/gh/node_modules/typescript/dist/ast/is.js +233 -0
  155. package/examples/gh/node_modules/typescript/dist/ast/is.js.map +1 -0
  156. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts +11 -0
  157. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.d.ts.map +1 -0
  158. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js +202 -0
  159. package/examples/gh/node_modules/typescript/dist/ast/jsdoc.js.map +1 -0
  160. package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts +97 -0
  161. package/examples/gh/node_modules/typescript/dist/ast/scanner.d.ts.map +1 -0
  162. package/examples/gh/node_modules/typescript/dist/ast/scanner.js +2230 -0
  163. package/examples/gh/node_modules/typescript/dist/ast/scanner.js.map +1 -0
  164. package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts +17 -0
  165. package/examples/gh/node_modules/typescript/dist/ast/utils.d.ts.map +1 -0
  166. package/examples/gh/node_modules/typescript/dist/ast/utils.js +67 -0
  167. package/examples/gh/node_modules/typescript/dist/ast/utils.js.map +1 -0
  168. package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts +14 -0
  169. package/examples/gh/node_modules/typescript/dist/ast/visitor.d.ts.map +1 -0
  170. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts +50 -0
  171. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.d.ts.map +1 -0
  172. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js +978 -0
  173. package/examples/gh/node_modules/typescript/dist/ast/visitor.generated.js.map +1 -0
  174. package/examples/gh/node_modules/typescript/dist/ast/visitor.js +47 -0
  175. package/examples/gh/node_modules/typescript/dist/ast/visitor.js.map +1 -0
  176. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts +2 -0
  177. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.d.ts.map +1 -0
  178. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts +129 -0
  179. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.d.ts.map +1 -0
  180. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js +132 -0
  181. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.enum.js.map +1 -0
  182. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js +130 -0
  183. package/examples/gh/node_modules/typescript/dist/enums/characterCodes.js.map +1 -0
  184. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts +2 -0
  185. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.d.ts.map +1 -0
  186. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts +5 -0
  187. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
  188. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js +6 -0
  189. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.enum.js.map +1 -0
  190. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js +6 -0
  191. package/examples/gh/node_modules/typescript/dist/enums/commentDirectiveType.js.map +1 -0
  192. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts +2 -0
  193. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.d.ts.map +1 -0
  194. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts +28 -0
  195. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.d.ts.map +1 -0
  196. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js +30 -0
  197. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.enum.js.map +1 -0
  198. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js +30 -0
  199. package/examples/gh/node_modules/typescript/dist/enums/completionItemKind.js.map +1 -0
  200. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts +2 -0
  201. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.d.ts.map +1 -0
  202. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts +7 -0
  203. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
  204. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js +9 -0
  205. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.enum.js.map +1 -0
  206. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js +9 -0
  207. package/examples/gh/node_modules/typescript/dist/enums/diagnosticCategory.js.map +1 -0
  208. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts +2 -0
  209. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.d.ts.map +1 -0
  210. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts +12 -0
  211. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.d.ts.map +1 -0
  212. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js +14 -0
  213. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.enum.js.map +1 -0
  214. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js +14 -0
  215. package/examples/gh/node_modules/typescript/dist/enums/elementFlags.js.map +1 -0
  216. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts +2 -0
  217. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.d.ts.map +1 -0
  218. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts +23 -0
  219. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.d.ts.map +1 -0
  220. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js +25 -0
  221. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.enum.js.map +1 -0
  222. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js +25 -0
  223. package/examples/gh/node_modules/typescript/dist/enums/internalSymbolName.js.map +1 -0
  224. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts +2 -0
  225. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.d.ts.map +1 -0
  226. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts +9 -0
  227. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.d.ts.map +1 -0
  228. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js +11 -0
  229. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.enum.js.map +1 -0
  230. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js +11 -0
  231. package/examples/gh/node_modules/typescript/dist/enums/jsxEmit.js.map +1 -0
  232. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts +2 -0
  233. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.d.ts.map +1 -0
  234. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts +5 -0
  235. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.d.ts.map +1 -0
  236. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js +6 -0
  237. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.enum.js.map +1 -0
  238. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js +6 -0
  239. package/examples/gh/node_modules/typescript/dist/enums/languageVariant.js.map +1 -0
  240. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts +2 -0
  241. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.d.ts.map +1 -0
  242. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts +42 -0
  243. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.d.ts.map +1 -0
  244. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js +44 -0
  245. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.enum.js.map +1 -0
  246. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js +44 -0
  247. package/examples/gh/node_modules/typescript/dist/enums/modifierFlags.js.map +1 -0
  248. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts +2 -0
  249. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.d.ts.map +1 -0
  250. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts +7 -0
  251. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.d.ts.map +1 -0
  252. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js +9 -0
  253. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.enum.js.map +1 -0
  254. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js +9 -0
  255. package/examples/gh/node_modules/typescript/dist/enums/moduleDetectionKind.js.map +1 -0
  256. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts +2 -0
  257. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.d.ts.map +1 -0
  258. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts +17 -0
  259. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.d.ts.map +1 -0
  260. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js +19 -0
  261. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.enum.js.map +1 -0
  262. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js +19 -0
  263. package/examples/gh/node_modules/typescript/dist/enums/moduleKind.js.map +1 -0
  264. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts +2 -0
  265. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.d.ts.map +1 -0
  266. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts +9 -0
  267. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.d.ts.map +1 -0
  268. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js +11 -0
  269. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.enum.js.map +1 -0
  270. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js +11 -0
  271. package/examples/gh/node_modules/typescript/dist/enums/moduleResolutionKind.js.map +1 -0
  272. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts +2 -0
  273. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.d.ts.map +1 -0
  274. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts +6 -0
  275. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.d.ts.map +1 -0
  276. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js +8 -0
  277. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.enum.js.map +1 -0
  278. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js +8 -0
  279. package/examples/gh/node_modules/typescript/dist/enums/newLineKind.js.map +1 -0
  280. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts +2 -0
  281. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
  282. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
  283. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
  284. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js +38 -0
  285. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
  286. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js +38 -0
  287. package/examples/gh/node_modules/typescript/dist/enums/nodeBuilderFlags.js.map +1 -0
  288. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts +2 -0
  289. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.d.ts.map +1 -0
  290. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts +44 -0
  291. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.d.ts.map +1 -0
  292. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js +46 -0
  293. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.enum.js.map +1 -0
  294. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js +46 -0
  295. package/examples/gh/node_modules/typescript/dist/enums/nodeFlags.js.map +1 -0
  296. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts +2 -0
  297. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.d.ts.map +1 -0
  298. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts +50 -0
  299. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.d.ts.map +1 -0
  300. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js +52 -0
  301. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.enum.js.map +1 -0
  302. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js +52 -0
  303. package/examples/gh/node_modules/typescript/dist/enums/objectFlags.js.map +1 -0
  304. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts +2 -0
  305. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.d.ts.map +1 -0
  306. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
  307. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
  308. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js +18 -0
  309. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.enum.js.map +1 -0
  310. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js +18 -0
  311. package/examples/gh/node_modules/typescript/dist/enums/outerExpressionKinds.js.map +1 -0
  312. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts +2 -0
  313. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.d.ts.map +1 -0
  314. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
  315. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
  316. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js +14 -0
  317. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.enum.js.map +1 -0
  318. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js +14 -0
  319. package/examples/gh/node_modules/typescript/dist/enums/regularExpressionFlags.js.map +1 -0
  320. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts +2 -0
  321. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.d.ts.map +1 -0
  322. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts +11 -0
  323. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.d.ts.map +1 -0
  324. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js +12 -0
  325. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.enum.js.map +1 -0
  326. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js +12 -0
  327. package/examples/gh/node_modules/typescript/dist/enums/scriptKind.js.map +1 -0
  328. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts +2 -0
  329. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.d.ts.map +1 -0
  330. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts +17 -0
  331. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.d.ts.map +1 -0
  332. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js +18 -0
  333. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.enum.js.map +1 -0
  334. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js +18 -0
  335. package/examples/gh/node_modules/typescript/dist/enums/scriptTarget.js.map +1 -0
  336. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts +2 -0
  337. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.d.ts.map +1 -0
  338. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts +15 -0
  339. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.d.ts.map +1 -0
  340. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js +17 -0
  341. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.enum.js.map +1 -0
  342. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js +17 -0
  343. package/examples/gh/node_modules/typescript/dist/enums/signatureFlags.js.map +1 -0
  344. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts +2 -0
  345. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.d.ts.map +1 -0
  346. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts +5 -0
  347. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.d.ts.map +1 -0
  348. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js +7 -0
  349. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.enum.js.map +1 -0
  350. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js +7 -0
  351. package/examples/gh/node_modules/typescript/dist/enums/signatureKind.js.map +1 -0
  352. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts +2 -0
  353. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.d.ts.map +1 -0
  354. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts +71 -0
  355. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.d.ts.map +1 -0
  356. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js +73 -0
  357. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.enum.js.map +1 -0
  358. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js +73 -0
  359. package/examples/gh/node_modules/typescript/dist/enums/symbolFlags.js.map +1 -0
  360. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts +2 -0
  361. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.d.ts.map +1 -0
  362. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts +389 -0
  363. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.d.ts.map +1 -0
  364. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js +391 -0
  365. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.enum.js.map +1 -0
  366. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js +391 -0
  367. package/examples/gh/node_modules/typescript/dist/enums/syntaxKind.js.map +1 -0
  368. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts +2 -0
  369. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.d.ts.map +1 -0
  370. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts +30 -0
  371. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.d.ts.map +1 -0
  372. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js +32 -0
  373. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.enum.js.map +1 -0
  374. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js +32 -0
  375. package/examples/gh/node_modules/typescript/dist/enums/tokenFlags.js.map +1 -0
  376. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts +2 -0
  377. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.d.ts.map +1 -0
  378. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts +76 -0
  379. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.d.ts.map +1 -0
  380. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js +78 -0
  381. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.enum.js.map +1 -0
  382. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js +78 -0
  383. package/examples/gh/node_modules/typescript/dist/enums/typeFlags.js.map +1 -0
  384. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts +2 -0
  385. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.d.ts.map +1 -0
  386. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts +7 -0
  387. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
  388. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js +9 -0
  389. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.enum.js.map +1 -0
  390. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js +9 -0
  391. package/examples/gh/node_modules/typescript/dist/enums/typePredicateKind.js.map +1 -0
  392. package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts +23 -0
  393. package/examples/gh/node_modules/typescript/dist/internal/utils.d.ts.map +1 -0
  394. package/examples/gh/node_modules/typescript/dist/internal/utils.js +25 -0
  395. package/examples/gh/node_modules/typescript/dist/internal/utils.js.map +1 -0
  396. package/examples/gh/node_modules/typescript/lib/getExePath.d.ts +2 -0
  397. package/examples/gh/node_modules/typescript/lib/getExePath.js +70 -0
  398. package/examples/gh/node_modules/typescript/lib/tsc.js +28 -0
  399. package/examples/gh/node_modules/typescript/lib/version.cjs +3 -0
  400. package/examples/gh/node_modules/typescript/lib/version.d.cts +2 -0
  401. package/examples/gh/node_modules/typescript/package.json +87 -0
  402. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/License.txt +11 -0
  403. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/README.md +54 -0
  404. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
  405. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
  406. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
  407. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
  408. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
  409. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
  410. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
  411. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
  412. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
  413. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
  414. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
  415. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
  416. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
  417. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
  418. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
  419. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
  420. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
  421. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
  422. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
  423. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
  424. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
  425. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
  426. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
  427. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
  428. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
  429. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
  430. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
  431. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
  432. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
  433. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
  434. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
  435. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
  436. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
  437. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
  438. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
  439. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
  440. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
  441. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
  442. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/package.json +54 -0
  443. package/examples/gh/node_modules/typescript/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
  444. package/examples/gh/package.json +11 -5
  445. package/examples/gh/src/main.ts +10 -4
  446. package/examples/pwsh-demo/package.json +1 -1
  447. package/examples/pwsh-demo/src/main.ts +1 -1
  448. package/package.json +16 -24
  449. package/dist/core/schema-dsl/runtime.d.mts +0 -144
  450. package/dist/core/schema-dsl/runtime.mjs +0 -271
  451. package/dist/core/schema-dsl/to-json-schema.d.mts +0 -29
  452. package/dist/core/schema-dsl/to-json-schema.mjs +0 -74
package/CHANGELOG.md CHANGED
@@ -7,6 +7,61 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [3.0.0-rc.13] - 2026-07-20
11
+
12
+ ### Changed
13
+
14
+ - **Syntax-highlighted example commands** — the `Examples:` help section now
15
+ highlights each command per token: the leading binary via `usageBin` (bold)
16
+ and flag tokens (`-x`, `--long`) via `flag` (cyan), with values left plain.
17
+ Tokenizing is quote-aware so `--scope './a b'` stays one token, and the
18
+ existing color gate is respected (identity formatters when `NO_COLOR` or
19
+ non-TTY), so `stripAnsi(colored)` still equals the plain rendering.
20
+
21
+ ## [3.0.0-rc.12] - 2026-07-20
22
+
23
+ ### Added
24
+
25
+ - **`out.isHyperlinkSupported`** — resolved OSC 8 hyperlink gate on the output
26
+ channel. Honors `NO_HYPERLINKS`/`FORCE_HYPERLINKS` and the
27
+ `--no-hyperlinks`/`--hyperlinks` flags, falling back to `isTTY`. Consumers
28
+ rendering their own `out.color.link(...)` output can gate on it to keep OSC 8
29
+ escapes out of piped or opted-out contexts.
30
+ - **Standard Schema v1 validation** — `flag.custom(schema)` and
31
+ `arg.custom(schema)` accept any conforming validator (including callable,
32
+ sync, and async schemas) with inferred output types and no runtime
33
+ dependency. Validation runs after source resolution, so argv, env, config,
34
+ prompt, stdin, and default values behave consistently; array flags and
35
+ variadic args validate each element.
36
+ - **`isMainModule(import.meta)`**: Compatibility helper for consumers whose
37
+ ambient `ImportMeta` interface omits `main`. Projects with normal Node, Bun,
38
+ or Deno runtime typings can keep using the conventional
39
+ `if (import.meta.main)` guard directly.
40
+
41
+ ### Changed
42
+
43
+ - **`.manifest({ from: import.meta })` compatibility form**: Anchored manifest
44
+ discovery now also accepts the calling module's complete `import.meta`
45
+ object and extracts its URL internally. The conventional
46
+ `{ from: import.meta.url }` form remains supported and preferred when runtime
47
+ typings expose `url`. Together with `isMainModule(import.meta)`, the new forms
48
+ avoid global `ImportMeta` augmentation, allowing consumers with an empty
49
+ ambient `ImportMeta` interface to pass both TypeScript/Deno checks and JSR
50
+ publish validation.
51
+
52
+ ### Removed
53
+
54
+ - **Internal schema DSL** — the private template-literal parser, validator, and
55
+ JSON Schema converter were replaced by direct definition-schema objects,
56
+ removing roughly 1,500 lines without changing the generated schema.
57
+
58
+ ### Fixed
59
+
60
+ - **`NO_HYPERLINKS` ignored in the help header** — root-help header hyperlinks
61
+ gated on raw TTY status, so `NO_HYPERLINKS=1` (and `--no-hyperlinks`) still
62
+ emitted OSC 8 links in the header. The gate now consults
63
+ `out.isHyperlinkSupported`, which respects the standard hyperlink overrides.
64
+
10
65
  ## [3.0.0-rc.11] - 2026-07-15
11
66
 
12
67
  ### Fixed
@@ -1220,7 +1275,9 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1220
1275
  - MIT License.
1221
1276
  - Markdownlint configuration.
1222
1277
 
1223
- [Unreleased]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.11...HEAD
1278
+ [Unreleased]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.13...HEAD
1279
+ [3.0.0-rc.13]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.12...v3.0.0-rc.13
1280
+ [3.0.0-rc.12]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.11...v3.0.0-rc.12
1224
1281
  [3.0.0-rc.11]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.10...v3.0.0-rc.11
1225
1282
  [3.0.0-rc.10]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.9...v3.0.0-rc.10
1226
1283
  [3.0.0-rc.9]: https://github.com/kjanat/dreamcli/compare/v3.0.0-rc.8...v3.0.0-rc.9
@@ -514,7 +514,9 @@ declare class CLIBuilder {
514
514
  * `{ scope: 'keep' }` to keep a leading `@scope/` (stripped by default).
515
515
  * - `from`: anchor discovery to a file/URL/path instead of `cwd`. Pass
516
516
  * `import.meta.url` for installable CLIs that must report THEIR OWN
517
- * version. Accepts string paths, `file:` URL strings, or `URL` instances.
517
+ * version. If the consumer's ambient `ImportMeta` omits `url`, pass
518
+ * `import.meta` instead. Also accepts string paths, `file:` URL strings,
519
+ * or `URL` instances.
518
520
  *
519
521
  * @example
520
522
  * ```ts
@@ -729,8 +731,13 @@ type InferNameOption = boolean | {
729
731
  interface ManifestSettings {
730
732
  /** Infer the CLI name from `bin` keys or `name`. @defaultValue `false` */
731
733
  readonly inferName?: InferNameOption;
732
- /** Anchor discovery to a file/URL/path instead of `cwd`. */
733
- readonly from?: string | URL;
734
+ /**
735
+ * Anchor discovery to a file/URL/path instead of `cwd`. Normally, pass
736
+ * `import.meta.url`. Pass `import.meta` whole as a compatibility form when a
737
+ * project `tsconfig.json` `lib` override drops the runtime's ambient
738
+ * `ImportMeta` extras and direct `.url` access does not type-check.
739
+ */
740
+ readonly from?: string | URL | ImportMeta;
734
741
  /**
735
742
  * Candidate manifest filenames in priority order — NOT npm's `files` publish
736
743
  * globs. Discovery probes each name per directory and takes the first that
@@ -802,5 +809,23 @@ interface CLIOptions {
802
809
  declare function cli(name: string, options?: Omit<CLIOptions, 'name'>): CLIBuilder;
803
810
  /** Create a new CLI program builder from an options object. */
804
811
  declare function cli(options: CLIOptions): CLIBuilder;
812
+ /**
813
+ * Report whether the calling module is the process entrypoint, cross-runtime.
814
+ *
815
+ * Node, Bun, and Deno set `import.meta.main` on the module invoked directly;
816
+ * projects with the runtime's ambient types can read that property directly.
817
+ * This helper is a compatibility form for projects whose `tsconfig.json` `lib`
818
+ * override drops those `ImportMeta` extras: passing `import.meta` whole avoids
819
+ * a direct `.main` access without requiring global augmentation.
820
+ *
821
+ * @param meta - The calling module's `import.meta`.
822
+ * @returns `true` when the module was run as the entrypoint.
823
+ *
824
+ * @example
825
+ * ```ts
826
+ * if (isMainModule(import.meta)) cli('mycli').command(deploy).run();
827
+ * ```
828
+ */
829
+ declare function isMainModule(meta: ImportMeta): boolean;
805
830
  //#endregion
806
- export { type BeforeParseParams, CLIBuilder, type CLIOptions, type CLIPlugin, type CLIPluginHooks, type CLIRunOptions, type CLISchema, type CompletionsFlagConfig, type ConfigSettings, type DefaultCommandOptions, type HelpConfig, type HelpLinks, type InferNameOption, type ManifestPresetSettings, type ManifestSettings, type PackageJsonSettings, type PluginCommandContext, type ResolvedCommandParams, type ResolvedManifestSettings, cli, formatRootHelp, plugin };
831
+ export { type BeforeParseParams, CLIBuilder, type CLIOptions, type CLIPlugin, type CLIPluginHooks, type CLIRunOptions, type CLISchema, type CompletionsFlagConfig, type ConfigSettings, type DefaultCommandOptions, type HelpConfig, type HelpLinks, type InferNameOption, type ManifestPresetSettings, type ManifestSettings, type PackageJsonSettings, type PluginCommandContext, type ResolvedCommandParams, type ResolvedManifestSettings, cli, formatRootHelp, isMainModule, plugin };
@@ -6,7 +6,7 @@ import { includesBeforeSeparator } from "../parse/index.mjs";
6
6
  import { SHELLS, detectShell, generateCompletion, normalizeShell } from "../completion/index.mjs";
7
7
  import { formatHelp } from "../help/index.mjs";
8
8
  import { generateCommandSchema, generateSchema } from "../json-schema/index.mjs";
9
- import { clearRequestedExitCode, createCaptureOutput, createOutput } from "../output/index.mjs";
9
+ import { clearRequestedExitCode, createCaptureOutput, createOutput, resolveHyperlinkOverride } from "../output/index.mjs";
10
10
  import { buildRunResult, executeCommand } from "../execution/index.mjs";
11
11
  import { runCommand } from "../testkit/index.mjs";
12
12
  import { stripTrailing } from "../../strings.mjs";
@@ -100,6 +100,16 @@ function eraseCommand(cmd) {
100
100
  };
101
101
  }
102
102
  /**
103
+ * Conditional-spread wrapper for the output channel's `hyperlinks` option:
104
+ * omit the key entirely when there is no override so `exactOptionalPropertyTypes`
105
+ * stays happy and the channel falls back to `isTTY`.
106
+ *
107
+ * @internal
108
+ */
109
+ function hyperlinksOption(override) {
110
+ return override !== void 0 ? { hyperlinks: override } : {};
111
+ }
112
+ /**
103
113
  * Build {@linkcode RunOptions} from {@linkcode CLIRunOptions}, conditionally spreading each
104
114
  * field to satisfy `exactOptionalPropertyTypes`.
105
115
  *
@@ -538,7 +548,8 @@ var CLIBuilder = class CLIBuilder {
538
548
  const captureOptions = {
539
549
  ...options?.verbosity !== void 0 ? { verbosity: options.verbosity } : {},
540
550
  ...jsonMode ? { jsonMode } : {},
541
- ...options?.isTTY !== void 0 ? { isTTY: options.isTTY } : {}
551
+ ...options?.isTTY !== void 0 ? { isTTY: options.isTTY } : {},
552
+ ...hyperlinksOption(resolveHyperlinkOverride(options?.env ?? {}, argv))
542
553
  };
543
554
  let out;
544
555
  let captured;
@@ -555,7 +566,7 @@ var CLIBuilder = class CLIBuilder {
555
566
  ...this.schema.helpConfig,
556
567
  ...options?.help,
557
568
  binName: options?.help?.binName ?? this.schema.name,
558
- hyperlinks: options?.help?.hyperlinks ?? this.schema.helpConfig?.hyperlinks ?? out.isTTY,
569
+ hyperlinks: options?.help?.hyperlinks ?? this.schema.helpConfig?.hyperlinks ?? out.isHyperlinkSupported,
559
570
  colors: options?.help?.colors ?? out.color
560
571
  };
561
572
  const flagSettings = options?.flags ?? this.schema.flagSettings;
@@ -713,7 +724,8 @@ var CLIBuilder = class CLIBuilder {
713
724
  stderr: adapter.stderr,
714
725
  jsonMode: preflight.inputs.jsonMode,
715
726
  isTTY: preflight.inputs.isTTY,
716
- ...preflight.inputs.verbosity !== "normal" ? { verbosity: preflight.inputs.verbosity } : {}
727
+ ...preflight.inputs.verbosity !== "normal" ? { verbosity: preflight.inputs.verbosity } : {},
728
+ ...hyperlinksOption(resolveHyperlinkOverride(adapter.env, adapter.argv))
717
729
  })
718
730
  };
719
731
  const result = await effectiveBuilder.execute(preflight.filteredArgv, executeOptions);
@@ -872,8 +884,8 @@ function buildManifestSchema(schema, input, defaultFiles, pinFiles) {
872
884
  }
873
885
  /**
874
886
  * Coerce a {@link ResolvedManifestSettings.from | `manifest.from`} input
875
- * (string path, `file:` URL string, or {@link URL} instance) to a plain
876
- * filesystem path string. `undefined` passes through unchanged.
887
+ * (string path, `file:` URL string, {@link URL} instance, or `import.meta`) to
888
+ * a plain filesystem path string. `undefined` passes through unchanged.
877
889
  *
878
890
  * Runtime-agnostic by design — relies only on the `URL` global (available in
879
891
  * every JS runtime) rather than `node:url`, keeping core free of Node
@@ -883,10 +895,11 @@ function buildManifestSchema(schema, input, defaultFiles, pinFiles) {
883
895
  */
884
896
  function normalizeFromSetting(from) {
885
897
  if (from === void 0) return void 0;
886
- if (from instanceof URL) {
887
- if (from.protocol !== "file:") return from.href;
888
- } else if (!from.startsWith("file:")) return from;
889
- const decoded = decodeURIComponent(new URL(from).pathname);
898
+ const source = typeof from === "object" && !(from instanceof URL) ? from.url : from;
899
+ if (source instanceof URL) {
900
+ if (source.protocol !== "file:") return source.href;
901
+ } else if (!source.startsWith("file:")) return source;
902
+ const decoded = decodeURIComponent(new URL(source).pathname);
890
903
  if (/^\/[A-Za-z]:/.test(decoded)) return decoded.slice(1).replace(/\//g, "\\");
891
904
  return decoded;
892
905
  }
@@ -941,5 +954,25 @@ function cli(nameOrOptions, extraOptions) {
941
954
  plugins: []
942
955
  });
943
956
  }
957
+ /**
958
+ * Report whether the calling module is the process entrypoint, cross-runtime.
959
+ *
960
+ * Node, Bun, and Deno set `import.meta.main` on the module invoked directly;
961
+ * projects with the runtime's ambient types can read that property directly.
962
+ * This helper is a compatibility form for projects whose `tsconfig.json` `lib`
963
+ * override drops those `ImportMeta` extras: passing `import.meta` whole avoids
964
+ * a direct `.main` access without requiring global augmentation.
965
+ *
966
+ * @param meta - The calling module's `import.meta`.
967
+ * @returns `true` when the module was run as the entrypoint.
968
+ *
969
+ * @example
970
+ * ```ts
971
+ * if (isMainModule(import.meta)) cli('mycli').command(deploy).run();
972
+ * ```
973
+ */
974
+ function isMainModule(meta) {
975
+ return meta.main === true;
976
+ }
944
977
  //#endregion
945
- export { CLIBuilder, cli, formatRootHelp, plugin };
978
+ export { CLIBuilder, cli, formatRootHelp, isMainModule, plugin };
@@ -116,6 +116,7 @@ function completionsFlagSchema(shells) {
116
116
  valueHint: void 0,
117
117
  prompt: void 0,
118
118
  parseFn: void 0,
119
+ standard: void 0,
119
120
  deprecated: void 0,
120
121
  propagate: false,
121
122
  negation: void 0,
@@ -83,6 +83,7 @@ function createSyntheticRootFlag(description) {
83
83
  valueHint: void 0,
84
84
  prompt: void 0,
85
85
  parseFn: void 0,
86
+ standard: void 0,
86
87
  deprecated: void 0,
87
88
  propagate: false,
88
89
  negation: void 0,
@@ -174,6 +174,7 @@ interface PackageRepositoryUrlOptions {
174
174
  declare function packageRepositoryUrl(pkg: PackageJsonData, options: PackageRepositoryUrlOptions & {
175
175
  readonly require: true;
176
176
  }): string;
177
+ /** Resolve a package repository URL, returning `undefined` for absent or invalid locators. */
177
178
  declare function packageRepositoryUrl(pkg: PackageJsonData, options?: PackageRepositoryUrlOptions): string | undefined;
178
179
  /**
179
180
  * Infer the CLI binary name from manifest data.
@@ -64,7 +64,9 @@ interface HelpOptions {
64
64
  }
65
65
  /** Formatted flag entry for the flags table. @internal */
66
66
  interface FlagEntry {
67
+ /** Preformatted flag names and value hint for the left table column. */
67
68
  readonly left: string;
69
+ /** Preformatted help text for the description table column. */
68
70
  readonly description: string;
69
71
  }
70
72
  /**
@@ -322,19 +322,45 @@ function formatCommandsSection(commands, opts) {
322
322
  return lines.join("\n");
323
323
  }
324
324
  /**
325
+ * One shell token: a single- or double-quoted span (kept whole so internal
326
+ * spaces don't split it) or a run of non-whitespace characters.
327
+ */
328
+ const EXAMPLE_TOKEN = /(?:'[^']*'|"[^"]*"|\S)+/g;
329
+ /**
330
+ * Highlight an example command per token: the leading binary via `usageBin`,
331
+ * flag tokens (`-x`, `--long`) via `flag`, everything else plain.
332
+ *
333
+ * Uses `replace` so only the token spans are wrapped and the whitespace
334
+ * between them is preserved verbatim — with the color gate off (identity
335
+ * formatters) the result equals `command`, so `stripAnsi(highlighted)` stays
336
+ * equal to the plain rendering.
337
+ */
338
+ function highlightExampleCommand(command, theme) {
339
+ let index = 0;
340
+ return command.replace(EXAMPLE_TOKEN, (token) => {
341
+ const styled = index === 0 ? theme.usageBin(token) : token.startsWith("-") ? theme.flag(token) : token;
342
+ index += 1;
343
+ return styled;
344
+ });
345
+ }
346
+ /**
325
347
  * Render the `Examples:` help section.
326
348
  *
327
349
  * @param examples - Array of {@link CommandExample} entries.
328
- * @param theme - Theme applied to the section title and `$` prompt marker.
350
+ * @param theme - Theme applied to the section title, `$` prompt marker, and
351
+ * per-token command highlighting.
329
352
  * @returns Multi-line examples section string.
330
353
  */
331
354
  function formatExamplesSection(examples, theme) {
332
355
  const lines = [theme.sectionTitle("Examples:")];
333
356
  const prompt = theme.examplePrompt("$");
334
- for (const example of examples) if (example.description !== void 0) {
335
- lines.push(` ${example.description}:`);
336
- lines.push(` ${prompt} ${example.command}`);
337
- } else lines.push(` ${prompt} ${example.command}`);
357
+ for (const example of examples) {
358
+ const command = highlightExampleCommand(example.command, theme);
359
+ if (example.description !== void 0) {
360
+ lines.push(` ${example.description}:`);
361
+ lines.push(` ${prompt} ${command}`);
362
+ } else lines.push(` ${prompt} ${command}`);
363
+ }
338
364
  return lines.join("\n");
339
365
  }
340
366
  //#endregion
@@ -98,11 +98,6 @@ declare function generateInputSchema(schema: CLISchema | CommandSchema, options?
98
98
  /**
99
99
  * JSON Schema (draft 2020-12) that validates the output of {@link generateSchema}.
100
100
  *
101
- * Each `$defs` entry is defined once as a schema DSL string — the DSL
102
- * parser produces a runtime AST, and {@link nodeToJsonSchema} converts
103
- * that AST to a JSON Schema fragment. No probe fixtures, no override
104
- * maps, no manually maintained type definitions.
105
- *
106
101
  * Hosted at {@link DEFINITION_SCHEMA_URL} for `$schema` resolution. Also
107
102
  * exported so tooling can validate definition documents without a network
108
103
  * round-trip.