@politty/valibot 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +31 -0
  2. package/dist/cli-main-C8D_mKfv.js +2 -0
  3. package/dist/cli-main-ClQaGXB3.js +1 -0
  4. package/dist/cli-run-gG52V0gu.js +1 -0
  5. package/dist/cli.js +1 -15
  6. package/dist/command-Mbdt0bmN.js +1 -0
  7. package/dist/compile-cache-VuUbFWIo.js +1 -0
  8. package/dist/compile-cache.js +1 -3
  9. package/dist/completion-D8DMrPqg.js +116 -0
  10. package/dist/completion-DUMcvXkT.js +1 -0
  11. package/dist/completion.d.ts +87 -7
  12. package/dist/completion.js +1 -4
  13. package/dist/docs.d.ts +1 -1
  14. package/dist/docs.js +84 -3063
  15. package/dist/dynamic-CMtee4tD.js +1 -0
  16. package/dist/dynamic-CrnlveHj.js +6 -0
  17. package/dist/field-meta-COGya7xp.js +1 -0
  18. package/dist/index.d.ts +3 -3
  19. package/dist/index.js +1 -27
  20. package/dist/log-collector-hiFa3sNm.js +1 -0
  21. package/dist/logger-CJsyJ8sb.js +1 -0
  22. package/dist/prompt-CqmGq1_N.js +1 -0
  23. package/dist/prompt-clack.d.ts +1 -1
  24. package/dist/prompt-clack.js +1 -32
  25. package/dist/prompt-inquirer.d.ts +1 -1
  26. package/dist/prompt-inquirer.js +1 -47
  27. package/dist/prompt.d.ts +1 -1
  28. package/dist/prompt.js +1 -4
  29. package/dist/register-BnpFle4e.js +1 -0
  30. package/dist/runner-C_wCXh6X.js +1 -0
  31. package/dist/runner-uPmkI9Gb.js +29 -0
  32. package/dist/schema-BiUP_KyV.js +1 -0
  33. package/dist/schema-extractor-DU0Vuhbd.js +1 -0
  34. package/dist/skill.d.ts +1 -1
  35. package/dist/skill.js +2 -1803
  36. package/dist/subcommand-router-D8GTMXYL.js +1 -0
  37. package/dist/{arg-registry-Be4GJADw.d.ts → types-uIXEHpar.d.ts} +839 -839
  38. package/dist/with-completion-command-DDohm8U6.js +3 -0
  39. package/dist/{index-B4NylQOW.d.ts → with-completion-command-by6cMuSQ.d.ts} +3 -74
  40. package/package.json +3 -3
  41. package/dist/cli-main-CGU1lFOR.js +0 -3
  42. package/dist/cli-main-zB-0qgHP.js +0 -314
  43. package/dist/cli-run-kxxQnIi_.js +0 -8
  44. package/dist/command-k-4yAz4J.js +0 -42
  45. package/dist/compile-cache-BC65o7MH.js +0 -103
  46. package/dist/completion-Ot2qpNNw.js +0 -5616
  47. package/dist/field-meta-CO38jOvl.js +0 -148
  48. package/dist/log-collector-CoUkLVJB.js +0 -114
  49. package/dist/logger-i_bb-Jhc.js +0 -133
  50. package/dist/prompt-BjIZThsH.js +0 -169
  51. package/dist/register-B9K5n0KG.js +0 -494
  52. package/dist/runner-Bz3arOqh.js +0 -3051
  53. package/dist/runner-Cs-Mz9JN.js +0 -3
  54. package/dist/schema-extractor-CVNDs07l.js +0 -250
  55. package/dist/src-CNyWzJXg.js +0 -6
  56. package/dist/src-CoQ2TUba.js +0 -12
  57. package/dist/subcommand-router-Cskpofdk.js +0 -134
@@ -0,0 +1 @@
1
+ const e=`__politty_lazy__`;function t(t){return typeof t==`object`&&!!t&&e in t&&t[e]===!0}function n(t,n){return{[e]:!0,meta:t,load:n}}function r(e){return t(e)?e.meta:typeof e==`function`?null:e}async function i(e){return t(e)?await e.load():typeof e==`function`?await e():e}async function a(e,t){if(!e.subCommands)return;let n=Object.hasOwn(e.subCommands,t)?e.subCommands[t]:void 0;if(n)return{command:await i(n),aliasFor:void 0};let r=o(e,t);if(r)return{command:await i(e.subCommands[r]),aliasFor:r}}function o(e,t){if(e.subCommands){for(let[n,i]of Object.entries(e.subCommands))if(r(i)?.aliases?.includes(t))return n}}function s(e){let t=new Set;if(!e.subCommands)return t;for(let[n,i]of Object.entries(e.subCommands)){t.add(n);let e=r(i);if(e?.aliases)for(let n of e.aliases)t.add(n)}return t}function c(e){return e.subCommands?Object.keys(e.subCommands):[]}export{a,r as c,o as i,c as n,t as o,i as r,n as s,s as t};