@bolt-foundry/gambit 0.5.3-dev.1

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 (520) hide show
  1. package/.gitkeep +0 -0
  2. package/CHANGELOG.md +85 -0
  3. package/LICENSE +201 -0
  4. package/README.md +236 -0
  5. package/esm/_dnt.polyfills.d.ts +25 -0
  6. package/esm/_dnt.polyfills.d.ts.map +1 -0
  7. package/esm/_dnt.polyfills.js +1 -0
  8. package/esm/_dnt.shims.d.ts +6 -0
  9. package/esm/_dnt.shims.d.ts.map +1 -0
  10. package/esm/_dnt.shims.js +61 -0
  11. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  12. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
  14. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  15. package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  16. package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
  17. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
  18. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
  20. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
  21. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
  22. package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
  23. package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts +2 -0
  24. package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts.map +1 -0
  25. package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.js +23 -0
  26. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
  27. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
  28. package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
  29. package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
  30. package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +8 -0
  32. package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts +4 -0
  33. package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.js +19 -0
  35. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
  36. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
  37. package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
  38. package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
  39. package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +235 -0
  41. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
  42. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
  43. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
  44. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
  45. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
  47. package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts +2 -0
  48. package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.js +9 -0
  50. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
  51. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
  53. package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts +2 -0
  54. package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +15 -0
  56. package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
  57. package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
  59. package/esm/deps/jsr.io/@std/path/1.1.4/common.d.ts +28 -0
  60. package/esm/deps/jsr.io/@std/path/1.1.4/common.d.ts.map +1 -0
  61. package/esm/deps/jsr.io/@std/path/1.1.4/common.js +33 -0
  62. package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
  63. package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
  64. package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +17 -0
  65. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
  66. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
  67. package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +28 -0
  68. package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
  69. package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
  70. package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +28 -0
  71. package/esm/deps/jsr.io/@std/path/1.1.4/format.d.ts +22 -0
  72. package/esm/deps/jsr.io/@std/path/1.1.4/format.d.ts.map +1 -0
  73. package/esm/deps/jsr.io/@std/path/1.1.4/format.js +27 -0
  74. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
  75. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
  76. package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +28 -0
  77. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
  78. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +83 -0
  80. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
  81. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
  83. package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
  84. package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.js +42 -0
  86. package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
  87. package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
  89. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
  90. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
  91. package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +34 -0
  92. package/esm/deps/jsr.io/@std/path/1.1.4/mod.d.ts +213 -0
  93. package/esm/deps/jsr.io/@std/path/1.1.4/mod.d.ts.map +1 -0
  94. package/esm/deps/jsr.io/@std/path/1.1.4/mod.js +216 -0
  95. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
  96. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
  97. package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +32 -0
  98. package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts +29 -0
  99. package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts.map +1 -0
  100. package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +35 -0
  101. package/esm/deps/jsr.io/@std/path/1.1.4/parse.d.ts +35 -0
  102. package/esm/deps/jsr.io/@std/path/1.1.4/parse.d.ts.map +1 -0
  103. package/esm/deps/jsr.io/@std/path/1.1.4/parse.js +39 -0
  104. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
  105. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
  106. package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
  107. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
  108. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
  109. package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
  110. package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
  111. package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
  112. package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.js +14 -0
  113. package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
  114. package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
  115. package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +64 -0
  116. package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
  117. package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
  118. package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.js +93 -0
  119. package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts +24 -0
  120. package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts.map +1 -0
  121. package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.js +28 -0
  122. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
  123. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
  124. package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
  125. package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
  126. package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
  127. package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +82 -0
  128. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
  129. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
  130. package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
  131. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
  132. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
  133. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
  134. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
  135. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
  136. package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +40 -0
  137. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
  138. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
  139. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
  140. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
  141. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
  142. package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +32 -0
  143. package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts +25 -0
  144. package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts.map +1 -0
  145. package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.js +115 -0
  146. package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts +20 -0
  147. package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts.map +1 -0
  148. package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.js +106 -0
  149. package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
  150. package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
  151. package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +59 -0
  152. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts +17 -0
  153. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
  154. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +27 -0
  155. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts +16 -0
  156. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts.map +1 -0
  157. package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.js +20 -0
  158. package/esm/deps/jsr.io/@std/path/1.1.4/relative.d.ts +24 -0
  159. package/esm/deps/jsr.io/@std/path/1.1.4/relative.d.ts.map +1 -0
  160. package/esm/deps/jsr.io/@std/path/1.1.4/relative.js +30 -0
  161. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
  162. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
  163. package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +30 -0
  164. package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts +22 -0
  165. package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
  166. package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +28 -0
  167. package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts +21 -0
  168. package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts.map +1 -0
  169. package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +29 -0
  170. package/esm/deps/jsr.io/@std/path/1.1.4/types.d.ts +38 -0
  171. package/esm/deps/jsr.io/@std/path/1.1.4/types.d.ts.map +1 -0
  172. package/esm/deps/jsr.io/@std/path/1.1.4/types.js +3 -0
  173. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
  174. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
  175. package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
  176. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
  177. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
  178. package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
  179. package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
  180. package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
  181. package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.js +14 -0
  182. package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
  183. package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
  184. package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +113 -0
  185. package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
  186. package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
  187. package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.js +82 -0
  188. package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts +24 -0
  189. package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts.map +1 -0
  190. package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.js +28 -0
  191. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
  192. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
  193. package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
  194. package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
  195. package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
  196. package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +82 -0
  197. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
  198. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
  199. package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
  200. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
  201. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
  202. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
  203. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
  204. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
  205. package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +41 -0
  206. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
  207. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
  208. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
  209. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
  210. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
  211. package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +32 -0
  212. package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts +25 -0
  213. package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts.map +1 -0
  214. package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.js +176 -0
  215. package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts +23 -0
  216. package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts.map +1 -0
  217. package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.js +131 -0
  218. package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
  219. package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
  220. package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +154 -0
  221. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts +17 -0
  222. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
  223. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +34 -0
  224. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts +17 -0
  225. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts.map +1 -0
  226. package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.js +49 -0
  227. package/esm/gambit/mod.d.ts +10 -0
  228. package/esm/gambit/mod.d.ts.map +1 -0
  229. package/esm/gambit/mod.js +9 -0
  230. package/esm/gambit/src/durable_streams.d.ts +9 -0
  231. package/esm/gambit/src/durable_streams.d.ts.map +1 -0
  232. package/esm/gambit/src/durable_streams.js +132 -0
  233. package/esm/gambit/src/server.d.ts +16 -0
  234. package/esm/gambit/src/server.d.ts.map +1 -0
  235. package/esm/gambit/src/server.js +2288 -0
  236. package/esm/gambit/src/test_bot.d.ts +5 -0
  237. package/esm/gambit/src/test_bot.d.ts.map +1 -0
  238. package/esm/gambit/src/test_bot.js +5 -0
  239. package/esm/gambit/src/trace.d.ts +4 -0
  240. package/esm/gambit/src/trace.d.ts.map +1 -0
  241. package/esm/gambit/src/trace.js +86 -0
  242. package/esm/gambit-core/mod.d.ts +50 -0
  243. package/esm/gambit-core/mod.d.ts.map +1 -0
  244. package/esm/gambit-core/mod.js +19 -0
  245. package/esm/gambit-core/src/definitions.d.ts +11 -0
  246. package/esm/gambit-core/src/definitions.d.ts.map +1 -0
  247. package/esm/gambit-core/src/definitions.js +14 -0
  248. package/esm/gambit-core/src/openai_compat.d.ts +63 -0
  249. package/esm/gambit-core/src/openai_compat.d.ts.map +1 -0
  250. package/esm/gambit-core/src/openai_compat.js +272 -0
  251. package/esm/gambit-core/src/providers/openrouter.d.ts +8 -0
  252. package/esm/gambit-core/src/providers/openrouter.d.ts.map +1 -0
  253. package/esm/gambit-core/src/providers/openrouter.js +168 -0
  254. package/esm/gambit-core/src/render.d.ts +51 -0
  255. package/esm/gambit-core/src/render.d.ts.map +1 -0
  256. package/esm/gambit-core/src/render.js +188 -0
  257. package/esm/gambit-core/src/schema.d.ts +8 -0
  258. package/esm/gambit-core/src/schema.d.ts.map +1 -0
  259. package/esm/gambit-core/src/schema.js +45 -0
  260. package/esm/package.json +3 -0
  261. package/package.json +33 -0
  262. package/script/_dnt.polyfills.d.ts +25 -0
  263. package/script/_dnt.polyfills.d.ts.map +1 -0
  264. package/script/_dnt.polyfills.js +2 -0
  265. package/script/_dnt.shims.d.ts +6 -0
  266. package/script/_dnt.shims.d.ts.map +1 -0
  267. package/script/_dnt.shims.js +65 -0
  268. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
  269. package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
  270. package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +38 -0
  271. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
  272. package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
  273. package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
  274. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
  275. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
  276. package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +10 -0
  277. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
  278. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
  279. package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.js +45 -0
  280. package/script/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts +2 -0
  281. package/script/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts.map +1 -0
  282. package/script/deps/jsr.io/@std/path/1.1.4/_common/common.js +26 -0
  283. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
  284. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
  285. package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.js +49 -0
  286. package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
  287. package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
  288. package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +11 -0
  289. package/script/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts +4 -0
  290. package/script/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts.map +1 -0
  291. package/script/deps/jsr.io/@std/path/1.1.4/_common/format.js +23 -0
  292. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
  293. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
  294. package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +12 -0
  295. package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
  296. package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
  297. package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +238 -0
  298. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
  299. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
  300. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +11 -0
  301. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
  302. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
  303. package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +80 -0
  304. package/script/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts +2 -0
  305. package/script/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts.map +1 -0
  306. package/script/deps/jsr.io/@std/path/1.1.4/_common/relative.js +12 -0
  307. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
  308. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
  309. package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +22 -0
  310. package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts +2 -0
  311. package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
  312. package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +18 -0
  313. package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
  314. package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
  315. package/script/deps/jsr.io/@std/path/1.1.4/basename.js +38 -0
  316. package/script/deps/jsr.io/@std/path/1.1.4/common.d.ts +28 -0
  317. package/script/deps/jsr.io/@std/path/1.1.4/common.d.ts.map +1 -0
  318. package/script/deps/jsr.io/@std/path/1.1.4/common.js +36 -0
  319. package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
  320. package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
  321. package/script/deps/jsr.io/@std/path/1.1.4/constants.js +20 -0
  322. package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
  323. package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
  324. package/script/deps/jsr.io/@std/path/1.1.4/dirname.js +31 -0
  325. package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
  326. package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
  327. package/script/deps/jsr.io/@std/path/1.1.4/extname.js +31 -0
  328. package/script/deps/jsr.io/@std/path/1.1.4/format.d.ts +22 -0
  329. package/script/deps/jsr.io/@std/path/1.1.4/format.d.ts.map +1 -0
  330. package/script/deps/jsr.io/@std/path/1.1.4/format.js +30 -0
  331. package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
  332. package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
  333. package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.js +31 -0
  334. package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
  335. package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
  336. package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +86 -0
  337. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
  338. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
  339. package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.js +31 -0
  340. package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
  341. package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
  342. package/script/deps/jsr.io/@std/path/1.1.4/is_glob.js +45 -0
  343. package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
  344. package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
  345. package/script/deps/jsr.io/@std/path/1.1.4/join.js +32 -0
  346. package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
  347. package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
  348. package/script/deps/jsr.io/@std/path/1.1.4/join_globs.js +37 -0
  349. package/script/deps/jsr.io/@std/path/1.1.4/mod.d.ts +213 -0
  350. package/script/deps/jsr.io/@std/path/1.1.4/mod.d.ts.map +1 -0
  351. package/script/deps/jsr.io/@std/path/1.1.4/mod.js +232 -0
  352. package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
  353. package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
  354. package/script/deps/jsr.io/@std/path/1.1.4/normalize.js +35 -0
  355. package/script/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts +29 -0
  356. package/script/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts.map +1 -0
  357. package/script/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +38 -0
  358. package/script/deps/jsr.io/@std/path/1.1.4/parse.d.ts +35 -0
  359. package/script/deps/jsr.io/@std/path/1.1.4/parse.d.ts.map +1 -0
  360. package/script/deps/jsr.io/@std/path/1.1.4/parse.js +42 -0
  361. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
  362. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
  363. package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.js +11 -0
  364. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
  365. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
  366. package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.js +55 -0
  367. package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
  368. package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
  369. package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.js +17 -0
  370. package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
  371. package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
  372. package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +67 -0
  373. package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
  374. package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
  375. package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.js +96 -0
  376. package/script/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts +24 -0
  377. package/script/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts.map +1 -0
  378. package/script/deps/jsr.io/@std/path/1.1.4/posix/format.js +31 -0
  379. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
  380. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
  381. package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +24 -0
  382. package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
  383. package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
  384. package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +85 -0
  385. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
  386. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
  387. package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +26 -0
  388. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
  389. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
  390. package/script/deps/jsr.io/@std/path/1.1.4/posix/join.js +48 -0
  391. package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
  392. package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
  393. package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +43 -0
  394. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
  395. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
  396. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +61 -0
  397. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
  398. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
  399. package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +35 -0
  400. package/script/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts +25 -0
  401. package/script/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts.map +1 -0
  402. package/script/deps/jsr.io/@std/path/1.1.4/posix/parse.js +118 -0
  403. package/script/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts +20 -0
  404. package/script/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts.map +1 -0
  405. package/script/deps/jsr.io/@std/path/1.1.4/posix/relative.js +109 -0
  406. package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
  407. package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
  408. package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +85 -0
  409. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts +17 -0
  410. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
  411. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +30 -0
  412. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts +16 -0
  413. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts.map +1 -0
  414. package/script/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.js +23 -0
  415. package/script/deps/jsr.io/@std/path/1.1.4/relative.d.ts +24 -0
  416. package/script/deps/jsr.io/@std/path/1.1.4/relative.d.ts.map +1 -0
  417. package/script/deps/jsr.io/@std/path/1.1.4/relative.js +33 -0
  418. package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
  419. package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
  420. package/script/deps/jsr.io/@std/path/1.1.4/resolve.js +33 -0
  421. package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts +22 -0
  422. package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
  423. package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.js +31 -0
  424. package/script/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts +21 -0
  425. package/script/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts.map +1 -0
  426. package/script/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +32 -0
  427. package/script/deps/jsr.io/@std/path/1.1.4/types.d.ts +38 -0
  428. package/script/deps/jsr.io/@std/path/1.1.4/types.d.ts.map +1 -0
  429. package/script/deps/jsr.io/@std/path/1.1.4/types.js +4 -0
  430. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
  431. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
  432. package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.js +20 -0
  433. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
  434. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
  435. package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.js +50 -0
  436. package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
  437. package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
  438. package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.js +17 -0
  439. package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
  440. package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
  441. package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +116 -0
  442. package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
  443. package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
  444. package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.js +85 -0
  445. package/script/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts +24 -0
  446. package/script/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts.map +1 -0
  447. package/script/deps/jsr.io/@std/path/1.1.4/windows/format.js +31 -0
  448. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
  449. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
  450. package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +33 -0
  451. package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
  452. package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
  453. package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +85 -0
  454. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
  455. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
  456. package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +41 -0
  457. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
  458. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
  459. package/script/deps/jsr.io/@std/path/1.1.4/windows/join.js +80 -0
  460. package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
  461. package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
  462. package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +44 -0
  463. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
  464. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
  465. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +138 -0
  466. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
  467. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
  468. package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +35 -0
  469. package/script/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts +25 -0
  470. package/script/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts.map +1 -0
  471. package/script/deps/jsr.io/@std/path/1.1.4/windows/parse.js +179 -0
  472. package/script/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts +23 -0
  473. package/script/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts.map +1 -0
  474. package/script/deps/jsr.io/@std/path/1.1.4/windows/relative.js +134 -0
  475. package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
  476. package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
  477. package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +180 -0
  478. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts +17 -0
  479. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
  480. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +37 -0
  481. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts +17 -0
  482. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts.map +1 -0
  483. package/script/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.js +52 -0
  484. package/script/gambit/mod.d.ts +10 -0
  485. package/script/gambit/mod.d.ts.map +1 -0
  486. package/script/gambit/mod.js +27 -0
  487. package/script/gambit/src/durable_streams.d.ts +9 -0
  488. package/script/gambit/src/durable_streams.d.ts.map +1 -0
  489. package/script/gambit/src/durable_streams.js +136 -0
  490. package/script/gambit/src/server.d.ts +16 -0
  491. package/script/gambit/src/server.d.ts.map +1 -0
  492. package/script/gambit/src/server.js +2314 -0
  493. package/script/gambit/src/test_bot.d.ts +5 -0
  494. package/script/gambit/src/test_bot.d.ts.map +1 -0
  495. package/script/gambit/src/test_bot.js +8 -0
  496. package/script/gambit/src/trace.d.ts +4 -0
  497. package/script/gambit/src/trace.d.ts.map +1 -0
  498. package/script/gambit/src/trace.js +113 -0
  499. package/script/gambit-core/mod.d.ts +50 -0
  500. package/script/gambit-core/mod.d.ts.map +1 -0
  501. package/script/gambit-core/mod.js +29 -0
  502. package/script/gambit-core/src/definitions.d.ts +11 -0
  503. package/script/gambit-core/src/definitions.d.ts.map +1 -0
  504. package/script/gambit-core/src/definitions.js +20 -0
  505. package/script/gambit-core/src/openai_compat.d.ts +63 -0
  506. package/script/gambit-core/src/openai_compat.d.ts.map +1 -0
  507. package/script/gambit-core/src/openai_compat.js +276 -0
  508. package/script/gambit-core/src/providers/openrouter.d.ts +8 -0
  509. package/script/gambit-core/src/providers/openrouter.d.ts.map +1 -0
  510. package/script/gambit-core/src/providers/openrouter.js +197 -0
  511. package/script/gambit-core/src/render.d.ts +51 -0
  512. package/script/gambit-core/src/render.d.ts.map +1 -0
  513. package/script/gambit-core/src/render.js +192 -0
  514. package/script/gambit-core/src/schema.d.ts +8 -0
  515. package/script/gambit-core/src/schema.d.ts.map +1 -0
  516. package/script/gambit-core/src/schema.js +51 -0
  517. package/script/package.json +3 -0
  518. package/simulator-ui/.gitkeep +1 -0
  519. package/simulator-ui/bundle.js +22824 -0
  520. package/simulator-ui/bundle.js.map +7 -0
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Normalize the path, resolving `'..'` and `'.'` segments.
3
+ *
4
+ * Note: Resolving these segments does not necessarily mean that all will be
5
+ * eliminated. A `'..'` at the top-level will be preserved, and an empty path is
6
+ * canonically `'.'`.
7
+ *
8
+ * @example Usage
9
+ * ```ts
10
+ * import { normalize } from "@std/path/normalize";
11
+ * import { assertEquals } from "@std/assert";
12
+ *
13
+ * if (Deno.build.os === "windows") {
14
+ * assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
15
+ * assertEquals(normalize(new URL("file:///C:/foo/bar/../baz/quux")), "C:\\foo\\baz\\quux");
16
+ * } else {
17
+ * assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
18
+ * assertEquals(normalize(new URL("file:///foo/bar/../baz/quux")), "/foo/baz/quux");
19
+ * }
20
+ * ```
21
+ *
22
+ * @param path Path to be normalized
23
+ * @returns The normalized path.
24
+ */
25
+ export declare function normalize(path: string | URL): string;
26
+ //# sourceMappingURL=normalize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/normalize.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAEpD"}
@@ -0,0 +1,32 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { normalize as posixNormalize } from "./posix/normalize.js";
5
+ import { normalize as windowsNormalize } from "./windows/normalize.js";
6
+ /**
7
+ * Normalize the path, resolving `'..'` and `'.'` segments.
8
+ *
9
+ * Note: Resolving these segments does not necessarily mean that all will be
10
+ * eliminated. A `'..'` at the top-level will be preserved, and an empty path is
11
+ * canonically `'.'`.
12
+ *
13
+ * @example Usage
14
+ * ```ts
15
+ * import { normalize } from "@std/path/normalize";
16
+ * import { assertEquals } from "@std/assert";
17
+ *
18
+ * if (Deno.build.os === "windows") {
19
+ * assertEquals(normalize("C:\\foo\\bar\\..\\baz\\quux"), "C:\\foo\\baz\\quux");
20
+ * assertEquals(normalize(new URL("file:///C:/foo/bar/../baz/quux")), "C:\\foo\\baz\\quux");
21
+ * } else {
22
+ * assertEquals(normalize("/foo/bar/../baz/quux"), "/foo/baz/quux");
23
+ * assertEquals(normalize(new URL("file:///foo/bar/../baz/quux")), "/foo/baz/quux");
24
+ * }
25
+ * ```
26
+ *
27
+ * @param path Path to be normalized
28
+ * @returns The normalized path.
29
+ */
30
+ export function normalize(path) {
31
+ return isWindows ? windowsNormalize(path) : posixNormalize(path);
32
+ }
@@ -0,0 +1,29 @@
1
+ import type { GlobOptions } from "./_common/glob_to_reg_exp.js";
2
+ export type { GlobOptions };
3
+ /**
4
+ * Normalizes a glob string.
5
+ *
6
+ * Behaves like
7
+ * {@linkcode https://jsr.io/@std/path/doc/~/normalize | normalize()}, but
8
+ * doesn't collapse "**\/.." when `globstar` is true.
9
+ *
10
+ * @example Usage
11
+ * ```ts
12
+ * import { normalizeGlob } from "@std/path/normalize-glob";
13
+ * import { assertEquals } from "@std/assert";
14
+ *
15
+ * if (Deno.build.os === "windows") {
16
+ * assertEquals(normalizeGlob("foo\\bar\\..\\baz"), "foo\\baz");
17
+ * assertEquals(normalizeGlob("foo\\**\\..\\bar\\..\\baz", { globstar: true }), "foo\\**\\..\\baz");
18
+ * } else {
19
+ * assertEquals(normalizeGlob("foo/bar/../baz"), "foo/baz");
20
+ * assertEquals(normalizeGlob("foo/**\/../bar/../baz", { globstar: true }), "foo/**\/../baz");
21
+ * }
22
+ * ```
23
+ *
24
+ * @param glob Glob string to normalize.
25
+ * @param options Glob options.
26
+ * @returns The normalized glob string.
27
+ */
28
+ export declare function normalizeGlob(glob: string, options?: GlobOptions): string;
29
+ //# sourceMappingURL=normalize_glob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize_glob.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/normalize_glob.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAOhE,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,WAAgB,GACxB,MAAM,CAIR"}
@@ -0,0 +1,35 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { normalizeGlob as posixNormalizeGlob } from "./posix/normalize_glob.js";
5
+ import { normalizeGlob as windowsNormalizeGlob, } from "./windows/normalize_glob.js";
6
+ /**
7
+ * Normalizes a glob string.
8
+ *
9
+ * Behaves like
10
+ * {@linkcode https://jsr.io/@std/path/doc/~/normalize | normalize()}, but
11
+ * doesn't collapse "**\/.." when `globstar` is true.
12
+ *
13
+ * @example Usage
14
+ * ```ts
15
+ * import { normalizeGlob } from "@std/path/normalize-glob";
16
+ * import { assertEquals } from "@std/assert";
17
+ *
18
+ * if (Deno.build.os === "windows") {
19
+ * assertEquals(normalizeGlob("foo\\bar\\..\\baz"), "foo\\baz");
20
+ * assertEquals(normalizeGlob("foo\\**\\..\\bar\\..\\baz", { globstar: true }), "foo\\**\\..\\baz");
21
+ * } else {
22
+ * assertEquals(normalizeGlob("foo/bar/../baz"), "foo/baz");
23
+ * assertEquals(normalizeGlob("foo/**\/../bar/../baz", { globstar: true }), "foo/**\/../baz");
24
+ * }
25
+ * ```
26
+ *
27
+ * @param glob Glob string to normalize.
28
+ * @param options Glob options.
29
+ * @returns The normalized glob string.
30
+ */
31
+ export function normalizeGlob(glob, options = {}) {
32
+ return isWindows
33
+ ? windowsNormalizeGlob(glob, options)
34
+ : posixNormalizeGlob(glob, options);
35
+ }
@@ -0,0 +1,35 @@
1
+ import type { ParsedPath } from "./types.js";
2
+ export type { ParsedPath } from "./types.js";
3
+ /**
4
+ * Return an object containing the parsed components of the path.
5
+ *
6
+ * Use {@linkcode https://jsr.io/@std/path/doc/~/format | format()} to reverse
7
+ * the result.
8
+ *
9
+ * @example Usage
10
+ * ```ts
11
+ * import { parse } from "@std/path/parse";
12
+ * import { assertEquals } from "@std/assert";
13
+ *
14
+ * if (Deno.build.os === "windows") {
15
+ * const parsedPathObj = parse("C:\\path\\to\\script.ts");
16
+ * assertEquals(parsedPathObj.root, "C:\\");
17
+ * assertEquals(parsedPathObj.dir, "C:\\path\\to");
18
+ * assertEquals(parsedPathObj.base, "script.ts");
19
+ * assertEquals(parsedPathObj.ext, ".ts");
20
+ * assertEquals(parsedPathObj.name, "script");
21
+ * } else {
22
+ * const parsedPathObj = parse("/path/to/dir/script.ts");
23
+ * parsedPathObj.root; // "/"
24
+ * parsedPathObj.dir; // "/path/to/dir"
25
+ * parsedPathObj.base; // "script.ts"
26
+ * parsedPathObj.ext; // ".ts"
27
+ * parsedPathObj.name; // "script"
28
+ * }
29
+ * ```
30
+ *
31
+ * @param path Path to process
32
+ * @returns An object with the parsed path components.
33
+ */
34
+ export declare function parse(path: string): ParsedPath;
35
+ //# sourceMappingURL=parse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/path/1.1.4/parse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI7C,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAE9C"}
@@ -0,0 +1,39 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { isWindows } from "../../internal/1.0.12/os.js";
4
+ import { parse as posixParse } from "./posix/parse.js";
5
+ import { parse as windowsParse } from "./windows/parse.js";
6
+ /**
7
+ * Return an object containing the parsed components of the path.
8
+ *
9
+ * Use {@linkcode https://jsr.io/@std/path/doc/~/format | format()} to reverse
10
+ * the result.
11
+ *
12
+ * @example Usage
13
+ * ```ts
14
+ * import { parse } from "@std/path/parse";
15
+ * import { assertEquals } from "@std/assert";
16
+ *
17
+ * if (Deno.build.os === "windows") {
18
+ * const parsedPathObj = parse("C:\\path\\to\\script.ts");
19
+ * assertEquals(parsedPathObj.root, "C:\\");
20
+ * assertEquals(parsedPathObj.dir, "C:\\path\\to");
21
+ * assertEquals(parsedPathObj.base, "script.ts");
22
+ * assertEquals(parsedPathObj.ext, ".ts");
23
+ * assertEquals(parsedPathObj.name, "script");
24
+ * } else {
25
+ * const parsedPathObj = parse("/path/to/dir/script.ts");
26
+ * parsedPathObj.root; // "/"
27
+ * parsedPathObj.dir; // "/path/to/dir"
28
+ * parsedPathObj.base; // "script.ts"
29
+ * parsedPathObj.ext; // ".ts"
30
+ * parsedPathObj.name; // "script"
31
+ * }
32
+ * ```
33
+ *
34
+ * @param path Path to process
35
+ * @returns An object with the parsed path components.
36
+ */
37
+ export function parse(path) {
38
+ return isWindows ? windowsParse(path) : posixParse(path);
39
+ }
@@ -0,0 +1,2 @@
1
+ export declare function isPosixPathSeparator(code: number): boolean;
2
+ //# sourceMappingURL=_util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_util.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/_util.ts"],"names":[],"mappings":"AAOA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
@@ -0,0 +1,8 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // Copyright the Browserify authors. MIT License.
3
+ // Ported from https://github.com/browserify/path-browserify/
4
+ // This module is browser compatible.
5
+ import { CHAR_FORWARD_SLASH } from "../_common/constants.js";
6
+ export function isPosixPathSeparator(code) {
7
+ return code === CHAR_FORWARD_SLASH;
8
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Return the last portion of a `path`.
3
+ * Trailing directory separators are ignored, and optional suffix is removed.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { basename } from "@std/path/posix/basename";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * assertEquals(basename("/home/user/Documents/"), "Documents");
11
+ * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
12
+ * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
13
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
14
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
15
+ * ```
16
+ *
17
+ * @example Working with URLs
18
+ *
19
+ * Note: This function doesn't automatically strip hash and query parts from
20
+ * URLs. If your URL contains a hash or query, remove them before passing the
21
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
22
+ * and setting the `hash` and `search` properties to empty strings.
23
+ *
24
+ * ```ts
25
+ * import { basename } from "@std/path/posix/basename";
26
+ * import { assertEquals } from "@std/assert";
27
+ *
28
+ * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
29
+ * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
30
+ * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
31
+ * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
32
+ * ```
33
+ *
34
+ * @param path The path to extract the name from.
35
+ * @param suffix The suffix to remove from extracted name.
36
+ * @returns The extracted name.
37
+ */
38
+ export declare function basename(path: string | URL, suffix?: string): string;
39
+ //# sourceMappingURL=basename.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basename.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/basename.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,MAAM,SAAK,GAAG,MAAM,CAYhE"}
@@ -0,0 +1,52 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { assertArgs, lastPathSegment, stripSuffix, } from "../_common/basename.js";
4
+ import { fromFileUrl } from "./from_file_url.js";
5
+ import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
6
+ import { isPosixPathSeparator } from "./_util.js";
7
+ /**
8
+ * Return the last portion of a `path`.
9
+ * Trailing directory separators are ignored, and optional suffix is removed.
10
+ *
11
+ * @example Usage
12
+ * ```ts
13
+ * import { basename } from "@std/path/posix/basename";
14
+ * import { assertEquals } from "@std/assert";
15
+ *
16
+ * assertEquals(basename("/home/user/Documents/"), "Documents");
17
+ * assertEquals(basename("/home/user/Documents/image.png"), "image.png");
18
+ * assertEquals(basename("/home/user/Documents/image.png", ".png"), "image");
19
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png")), "image.png");
20
+ * assertEquals(basename(new URL("file:///home/user/Documents/image.png"), ".png"), "image");
21
+ * ```
22
+ *
23
+ * @example Working with URLs
24
+ *
25
+ * Note: This function doesn't automatically strip hash and query parts from
26
+ * URLs. If your URL contains a hash or query, remove them before passing the
27
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
28
+ * and setting the `hash` and `search` properties to empty strings.
29
+ *
30
+ * ```ts
31
+ * import { basename } from "@std/path/posix/basename";
32
+ * import { assertEquals } from "@std/assert";
33
+ *
34
+ * assertEquals(basename("https://deno.land/std/path/mod.ts"), "mod.ts");
35
+ * assertEquals(basename("https://deno.land/std/path/mod.ts", ".ts"), "mod");
36
+ * assertEquals(basename("https://deno.land/std/path/mod.ts?a=b"), "mod.ts?a=b");
37
+ * assertEquals(basename("https://deno.land/std/path/mod.ts#header"), "mod.ts#header");
38
+ * ```
39
+ *
40
+ * @param path The path to extract the name from.
41
+ * @param suffix The suffix to remove from extracted name.
42
+ * @returns The extracted name.
43
+ */
44
+ export function basename(path, suffix = "") {
45
+ if (path instanceof URL) {
46
+ path = fromFileUrl(path);
47
+ }
48
+ assertArgs(path, suffix);
49
+ const lastSegment = lastPathSegment(path, isPosixPathSeparator);
50
+ const strippedSegment = stripTrailingSeparators(lastSegment, isPosixPathSeparator);
51
+ return suffix ? stripSuffix(strippedSegment, suffix) : strippedSegment;
52
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The character used to separate entries in the PATH environment variable.
3
+ */
4
+ export declare const DELIMITER: ":";
5
+ /**
6
+ * The character used to separate components of a file path.
7
+ */
8
+ export declare const SEPARATOR: "/";
9
+ /**
10
+ * A regular expression that matches one or more path separators.
11
+ */
12
+ export declare const SEPARATOR_PATTERN: RegExp;
13
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/constants.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,SAAS,KAAe,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
@@ -0,0 +1,14 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ /**
4
+ * The character used to separate entries in the PATH environment variable.
5
+ */
6
+ export const DELIMITER = ":";
7
+ /**
8
+ * The character used to separate components of a file path.
9
+ */
10
+ export const SEPARATOR = "/";
11
+ /**
12
+ * A regular expression that matches one or more path separators.
13
+ */
14
+ export const SEPARATOR_PATTERN = /\/+/;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Return the directory path of a `path`.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { dirname } from "@std/path/posix/dirname";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * assertEquals(dirname("/home/user/Documents/"), "/home/user");
10
+ * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
11
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
12
+ * assertEquals(dirname(new URL("file:///home/user/Documents/image.png")), "/home/user/Documents");
13
+ * ```
14
+ *
15
+ * @example Working with URLs
16
+ *
17
+ * ```ts
18
+ * import { dirname } from "@std/path/posix/dirname";
19
+ * import { assertEquals } from "@std/assert";
20
+ *
21
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
22
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
23
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
24
+ * ```
25
+ *
26
+ * @param path The path to get the directory from.
27
+ * @returns The directory path.
28
+ */
29
+ export declare function dirname(path: string | URL): string;
30
+ //# sourceMappingURL=dirname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dirname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/dirname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAmClD"}
@@ -0,0 +1,64 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { assertArg } from "../_common/dirname.js";
4
+ import { stripTrailingSeparators } from "../_common/strip_trailing_separators.js";
5
+ import { isPosixPathSeparator } from "./_util.js";
6
+ import { fromFileUrl } from "./from_file_url.js";
7
+ /**
8
+ * Return the directory path of a `path`.
9
+ *
10
+ * @example Usage
11
+ * ```ts
12
+ * import { dirname } from "@std/path/posix/dirname";
13
+ * import { assertEquals } from "@std/assert";
14
+ *
15
+ * assertEquals(dirname("/home/user/Documents/"), "/home/user");
16
+ * assertEquals(dirname("/home/user/Documents/image.png"), "/home/user/Documents");
17
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
18
+ * assertEquals(dirname(new URL("file:///home/user/Documents/image.png")), "/home/user/Documents");
19
+ * ```
20
+ *
21
+ * @example Working with URLs
22
+ *
23
+ * ```ts
24
+ * import { dirname } from "@std/path/posix/dirname";
25
+ * import { assertEquals } from "@std/assert";
26
+ *
27
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts"), "https://deno.land/std/path");
28
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts?a=b"), "https://deno.land/std/path");
29
+ * assertEquals(dirname("https://deno.land/std/path/mod.ts#header"), "https://deno.land/std/path");
30
+ * ```
31
+ *
32
+ * @param path The path to get the directory from.
33
+ * @returns The directory path.
34
+ */
35
+ export function dirname(path) {
36
+ if (path instanceof URL) {
37
+ path = fromFileUrl(path);
38
+ }
39
+ assertArg(path);
40
+ let end = -1;
41
+ let matchedNonSeparator = false;
42
+ for (let i = path.length - 1; i >= 1; --i) {
43
+ if (isPosixPathSeparator(path.charCodeAt(i))) {
44
+ if (matchedNonSeparator) {
45
+ end = i;
46
+ break;
47
+ }
48
+ }
49
+ else {
50
+ matchedNonSeparator = true;
51
+ }
52
+ }
53
+ // No matches. Fallback based on provided path:
54
+ //
55
+ // - leading slashes paths
56
+ // "/foo" => "/"
57
+ // "///foo" => "/"
58
+ // - no slash path
59
+ // "foo" => "."
60
+ if (end === -1) {
61
+ return isPosixPathSeparator(path.charCodeAt(0)) ? "/" : ".";
62
+ }
63
+ return stripTrailingSeparators(path.slice(0, end), isPosixPathSeparator);
64
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Return the extension of the `path` with leading period.
3
+ *
4
+ * @example Usage
5
+ * ```ts
6
+ * import { extname } from "@std/path/posix/extname";
7
+ * import { assertEquals } from "@std/assert";
8
+ *
9
+ * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
10
+ * assertEquals(extname("/home/user/Documents/"), "");
11
+ * assertEquals(extname("/home/user/Documents/image.png"), ".png");
12
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
13
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
14
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
15
+ * ```
16
+ *
17
+ * @example Working with URLs
18
+ *
19
+ * Note: This function doesn't automatically strip hash and query parts from
20
+ * URLs. If your URL contains a hash or query, remove them before passing the
21
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
22
+ * and setting the `hash` and `search` properties to empty strings.
23
+ *
24
+ * ```ts
25
+ * import { extname } from "@std/path/posix/extname";
26
+ * import { assertEquals } from "@std/assert";
27
+ *
28
+ * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
29
+ * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
30
+ * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
31
+ * ```
32
+ *
33
+ * @param path The path to get the extension from.
34
+ * @returns The extension (ex. for `file.ts` returns `.ts`).
35
+ */
36
+ export declare function extname(path: string | URL): string;
37
+ //# sourceMappingURL=extname.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extname.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/extname.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,MAAM,CAoDlD"}
@@ -0,0 +1,93 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { CHAR_DOT } from "../_common/constants.js";
4
+ import { assertPath } from "../_common/assert_path.js";
5
+ import { isPosixPathSeparator } from "./_util.js";
6
+ import { fromFileUrl } from "./from_file_url.js";
7
+ /**
8
+ * Return the extension of the `path` with leading period.
9
+ *
10
+ * @example Usage
11
+ * ```ts
12
+ * import { extname } from "@std/path/posix/extname";
13
+ * import { assertEquals } from "@std/assert";
14
+ *
15
+ * assertEquals(extname("/home/user/Documents/file.ts"), ".ts");
16
+ * assertEquals(extname("/home/user/Documents/"), "");
17
+ * assertEquals(extname("/home/user/Documents/image.png"), ".png");
18
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts")), ".ts");
19
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts?a=b")), ".ts");
20
+ * assertEquals(extname(new URL("file:///home/user/Documents/file.ts#header")), ".ts");
21
+ * ```
22
+ *
23
+ * @example Working with URLs
24
+ *
25
+ * Note: This function doesn't automatically strip hash and query parts from
26
+ * URLs. If your URL contains a hash or query, remove them before passing the
27
+ * URL to the function. This can be done by passing the URL to `new URL(url)`,
28
+ * and setting the `hash` and `search` properties to empty strings.
29
+ *
30
+ * ```ts
31
+ * import { extname } from "@std/path/posix/extname";
32
+ * import { assertEquals } from "@std/assert";
33
+ *
34
+ * assertEquals(extname("https://deno.land/std/path/mod.ts"), ".ts");
35
+ * assertEquals(extname("https://deno.land/std/path/mod.ts?a=b"), ".ts?a=b");
36
+ * assertEquals(extname("https://deno.land/std/path/mod.ts#header"), ".ts#header");
37
+ * ```
38
+ *
39
+ * @param path The path to get the extension from.
40
+ * @returns The extension (ex. for `file.ts` returns `.ts`).
41
+ */
42
+ export function extname(path) {
43
+ if (path instanceof URL) {
44
+ path = fromFileUrl(path);
45
+ }
46
+ assertPath(path);
47
+ let startDot = -1;
48
+ let startPart = 0;
49
+ let end = -1;
50
+ let matchedSlash = true;
51
+ // Track the state of characters (if any) we see before our first dot and
52
+ // after any path separator we find
53
+ let preDotState = 0;
54
+ for (let i = path.length - 1; i >= 0; --i) {
55
+ const code = path.charCodeAt(i);
56
+ if (isPosixPathSeparator(code)) {
57
+ // If we reached a path separator that was not part of a set of path
58
+ // separators at the end of the string, stop now
59
+ if (!matchedSlash) {
60
+ startPart = i + 1;
61
+ break;
62
+ }
63
+ continue;
64
+ }
65
+ if (end === -1) {
66
+ // We saw the first non-path separator, mark this as the end of our
67
+ // extension
68
+ matchedSlash = false;
69
+ end = i + 1;
70
+ }
71
+ if (code === CHAR_DOT) {
72
+ // If this is our first dot, mark it as the start of our extension
73
+ if (startDot === -1)
74
+ startDot = i;
75
+ else if (preDotState !== 1)
76
+ preDotState = 1;
77
+ }
78
+ else if (startDot !== -1) {
79
+ // We saw a non-dot and non-path separator before our dot, so we should
80
+ // have a good chance at having a non-empty extension
81
+ preDotState = -1;
82
+ }
83
+ }
84
+ if (startDot === -1 ||
85
+ end === -1 ||
86
+ // We saw a non-dot character immediately before the dot
87
+ preDotState === 0 ||
88
+ // The (right-most) trimmed path component is exactly '..'
89
+ (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) {
90
+ return "";
91
+ }
92
+ return path.slice(startDot, end);
93
+ }
@@ -0,0 +1,24 @@
1
+ import type { ParsedPath } from "../types.js";
2
+ /**
3
+ * Generate a path from `ParsedPath` object.
4
+ *
5
+ * @example Usage
6
+ * ```ts
7
+ * import { format } from "@std/path/posix/format";
8
+ * import { assertEquals } from "@std/assert";
9
+ *
10
+ * const path = format({
11
+ * root: "/",
12
+ * dir: "/path/dir",
13
+ * base: "file.txt",
14
+ * ext: ".txt",
15
+ * name: "file"
16
+ * });
17
+ * assertEquals(path, "/path/dir/file.txt");
18
+ * ```
19
+ *
20
+ * @param pathObject The path object to format.
21
+ * @returns The formatted path.
22
+ */
23
+ export declare function format(pathObject: Partial<ParsedPath>): string;
24
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/posix/format.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,CAG9D"}