@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
package/.gitkeep ADDED
File without changes
package/CHANGELOG.md ADDED
@@ -0,0 +1,85 @@
1
+ +++
2
+ [release]
3
+ since = "b0ddcc2ba4e861e0879dc92cc713e8cde30d230f"
4
+ +++
5
+
6
+ # Changelog
7
+
8
+ ## Unreleased (v0.6.0)
9
+
10
+ - TBD
11
+
12
+ ## v0.5.0
13
+
14
+ ### Runtime and API
15
+
16
+ - Synthetic tools refreshed: `gambit_init`, `gambit_respond`, `gambit_complete`
17
+ (function-style tools, underscore names).
18
+ - Envelope simplification: init carries run/action IDs plus guardrails/model
19
+ hints; respond wraps payload/message/status/code/meta (default status 200 for
20
+ success, 500 for handled errors unless overridden).
21
+ - Runtime behavior: child completions and handled errors emit `gambit_complete`;
22
+ interval handlers surface mid-run updates; roots stay conversational-only.
23
+ - `gambit_init` only fires when `--init` is provided and its payload is the raw
24
+ input (no run/action metadata).
25
+ - Added trace timestamps for latency metrics and persisted streamed assistant
26
+ text before tool calls.
27
+ - Added OpenAI chat completions compatibility (`renderDeck` plus wrapper).
28
+ - Increased default guardrail `maxPasses`.
29
+
30
+ ### Simulator UI and test bot
31
+
32
+ - New React simulator UI with sessions, recents, nested trace hierarchy, and
33
+ session notes/ratings.
34
+ - Pivoted the simulator to debug/test/calibrate workflows with a new editor
35
+ assistant endpoint and UI tab.
36
+ - Test bot upgrades: per-run streaming + debug link, init/scenario panels,
37
+ default scenario schema, deck input config, feedback on all bubbles, and
38
+ session routing/persistence.
39
+ - Calibration/grading updates: deck-defined grading flows, streamed results,
40
+ reference samples, compact context previews, and renaming calibration runs to
41
+ grading runs.
42
+
43
+ ### Decks and examples (voice front desk)
44
+
45
+ - Added voice front desk example decks and modularized the deck set.
46
+ - Added new patient intake + additional voice front desk test decks.
47
+ - Added appointment lookup orchestration and scheduling confirmation flow.
48
+ - Enabled scheduling service deck and shared patient identity test input schema.
49
+ - Replaced voice front desk graders and expanded FAQ persona/grading coverage.
50
+
51
+ ### CLI and UX
52
+
53
+ - Added a grading command with test-bot hooks in the CLI.
54
+ - `--message` now works without `--init` for object root schemas.
55
+ - REPL/serve/CLI flags refreshed; `--verbose` logs tool call args/results.
56
+
57
+ ### Fixes
58
+
59
+ - Avoid extra assistant turn on test-bot resume; skip empty assistant turns in
60
+ grading; keep grader respond blocks last.
61
+ - Fixed test-bot sidebar loading, grader score reads, and booking confirmation
62
+ placement.
63
+ - Simulator UI polish: full-height layout, sourcemap adverts, locked init panel
64
+ behavior, and reconnect/permalink reloads.
65
+
66
+ ## v0.0
67
+
68
+ - Authoring: TypeScript/Markdown decks and cards via `defineDeck`/`defineCard`;
69
+ embeds with cycle detection; card actions merge into decks (deck wins); card
70
+ schema fragments merge into deck schemas; non-root decks require input/output
71
+ schemas (root defaults to string-ish).
72
+ - Runtime: compute and LLM decks share the surface; assistant-first flow seeds a
73
+ synthetic `gambit_init` tool; helpers `spawnAndWait`, `return`, `fail`; action
74
+ names validated against reserved prefix/pattern/length; default guardrails
75
+ depth=3/passes=3/timeout≈120s with per-deck overrides.
76
+ - Handlers/events: optional `onError`/`onBusy`/`onIdle` decks emit structured
77
+ events (`gambit_complete` for handled errors, busy/idle updates) with default
78
+ delay 800ms and traces for fire/result (`onInterval` is deprecated alias for
79
+ `onBusy`).
80
+ - IO/host: CLI supports `run`, `repl`, `serve` (WebSocket simulator UI); flags
81
+ for streaming, turn order via user message, trace to console/JSONL, state
82
+ load/save, model overrides; `deno task compile` builds a binary; OpenRouter
83
+ chat provider with streaming/tool calls.
84
+ - Runtime + server tests for schemas/embeds/streaming/handlers; tasks for
85
+ fmt/lint/test/ci; root README with quick start.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,236 @@
1
+ # Gambit (draft README)
2
+
3
+ This package is developed in Bolt Foundry’s monorepo and mirrored into
4
+ `github.com/bolt-foundry/gambit`. For now, that repo is a strict mirror (please
5
+ do not land direct changes there).
6
+
7
+ CI runs `.github/workflows/gambit-mirror.yml` on every `main` push that touches
8
+ this package, using `scripts/sync-gambit-mirror.sh` to open and auto-merge a PR
9
+ from the `bft-codebot` fork into the public mirror.
10
+
11
+ Gambit helps developers build the most accurate LLM apps by making it simple to
12
+ provide exactly the right amount of context at the right time.
13
+
14
+ ## Status quo
15
+
16
+ - Most teams wire one long prompt to several tools and hope the model routes
17
+ correctly.
18
+ - Context often arrives as a single giant fetch or RAG blob, so costs climb and
19
+ hallucinations slip in.
20
+ - Input/outputs are rarely typed, which makes orchestration brittle and hard to
21
+ test offline.
22
+ - Debugging leans on provider logs instead of local traces, so reproducing
23
+ failures is slow.
24
+
25
+ ## Our vision
26
+
27
+ - Treat each step as a small deck with explicit inputs/outputs and guardrails;
28
+ model calls are just one kind of action.
29
+ - Mix LLM and compute tasks interchangeably and effortlessly inside the same
30
+ deck tree.
31
+ - Feed models only what they need per step; inject references and cards instead
32
+ of dumping every document.
33
+ - Keep orchestration logic local and testable; run decks offline with
34
+ predictable traces.
35
+ - Ship with built-in observability (streaming, REPL, debug UI) so debugging
36
+ feels like regular software, not guesswork.
37
+
38
+ ## 5-minute quickstart
39
+
40
+ Requirements: Deno 2.2+ and `OPENROUTER_API_KEY` (set `OPENROUTER_BASE_URL` if
41
+ you proxy OpenRouter-style APIs).
42
+
43
+ Run the CLI directly from JSR (no install):
44
+
45
+ ```sh
46
+ export OPENROUTER_API_KEY=...
47
+ deno run -A jsr:@bolt-foundry/gambit/cli --help
48
+ ```
49
+
50
+ Run a packaged example without cloning:
51
+
52
+ ```sh
53
+ export OPENROUTER_API_KEY=...
54
+ deno run -A jsr:@bolt-foundry/gambit/cli run --example hello_world.deck.md --init '"hi"'
55
+ ```
56
+
57
+ Run the built-in assistant (from a clone of this repo):
58
+
59
+ ```sh
60
+ export OPENROUTER_API_KEY=...
61
+ deno run -A src/cli.ts run src/decks/gambit-assistant.deck.md --init '"hi"' --stream
62
+ ```
63
+
64
+ Talk to it in a REPL (default deck is `src/decks/gambit-assistant.deck.md`):
65
+
66
+ ```sh
67
+ deno run -A src/cli.ts repl --message '"hello"' --stream --verbose
68
+ ```
69
+
70
+ Open the debug UI:
71
+
72
+ ```sh
73
+ deno run -A src/cli.ts serve src/decks/gambit-assistant.deck.md --port 8000
74
+ open http://localhost:8000/debug
75
+ ```
76
+
77
+ Install the CLI once (uses the published JSR package):
78
+
79
+ ```sh
80
+ deno install -A -n gambit jsr:@bolt-foundry/gambit/cli
81
+ gambit run path/to/root.deck.ts --init '"hi"'
82
+ ```
83
+
84
+ If you run from a remote URL (e.g., `jsr:@bolt-foundry/gambit/cli`), pass an
85
+ explicit deck path; the default REPL deck only exists in a local checkout.
86
+
87
+ ## Author your first deck
88
+
89
+ Minimal Markdown deck (model-powered):
90
+
91
+ ```md
92
+ +++
93
+ label = "hello_world"
94
+
95
+ [modelParams]
96
+ model = "openai/gpt-4o-mini"
97
+ temperature = 0
98
+ +++
99
+
100
+ You are a concise assistant. Greet the user and echo the input.
101
+ ```
102
+
103
+ Run it:
104
+
105
+ ```sh
106
+ deno run -A src/cli.ts run ./hello_world.deck.md --init '"Gambit"' --stream
107
+ ```
108
+
109
+ Compute deck in TypeScript (no model call):
110
+
111
+ ```ts
112
+ // echo.deck.ts
113
+ import { defineDeck } from "jsr:@bolt-foundry/gambit";
114
+ import { z } from "zod";
115
+
116
+ export default defineDeck({
117
+ label: "echo",
118
+ inputSchema: z.object({ text: z.string() }),
119
+ outputSchema: z.object({ text: z.string(), length: z.number() }),
120
+ run(ctx) {
121
+ return { text: ctx.input.text, length: ctx.input.text.length };
122
+ },
123
+ });
124
+ ```
125
+
126
+ Run it:
127
+
128
+ ```sh
129
+ deno run -A src/cli.ts run ./echo.deck.ts --init '{"text":"ping"}'
130
+ ```
131
+
132
+ Deck with a child action (calls a TypeScript tool):
133
+
134
+ ```md
135
+ +++
136
+ label = "agent_with_time"
137
+ modelParams = { model = "openai/gpt-4o-mini", temperature = 0 }
138
+ actionDecks = [
139
+ { name = "get_time", path = "./get_time.deck.ts", description = "Return the current ISO timestamp." },
140
+ ]
141
+ +++
142
+
143
+ A tiny agent that calls get_time, then replies with the timestamp and the input.
144
+ ```
145
+
146
+ And the child action:
147
+
148
+ ```ts
149
+ // get_time.deck.ts
150
+ import { defineDeck } from "jsr:@bolt-foundry/gambit";
151
+ import { z } from "zod";
152
+
153
+ export default defineDeck({
154
+ label: "get_time",
155
+ inputSchema: z.object({}), // no args
156
+ outputSchema: z.object({ iso: z.string() }),
157
+ run() {
158
+ return { iso: new Date().toISOString() };
159
+ },
160
+ });
161
+ ```
162
+
163
+ ## Repo highlights
164
+
165
+ - CLI entry: `src/cli.ts`; runtime: `src/runtime.ts`; definitions: `mod.ts`.
166
+ - Examples: `examples/hello_world.deck.md`,
167
+ `examples/agent_with_multi_actions/`.
168
+ - Debug UI assets: `src/server.ts` (built-in UI now renders schema-driven init
169
+ forms beneath the user message box with a raw JSON tab, reconnect button, and
170
+ a trace-formatting hook).
171
+ - Tests/lint/format: `deno task test`, `deno task lint`, `deno task fmt`;
172
+ compile binary: `deno task compile`.
173
+ - Docs index: `docs/README.md`; authoring guide: `docs/authoring.md`; prompting
174
+ notes: `docs/hourglass.md`; changelog: `CHANGELOG.md`.
175
+
176
+ ## Docs
177
+
178
+ - Authoring decks/cards: `docs/authoring.md`
179
+ - Runtime/guardrails: `docs/runtime.md`
180
+ - CLI, REPL, debug UI: `docs/cli.md`
181
+ - Examples guide: `docs/examples.md`
182
+ - OpenAI Chat Completions compatibility: `docs/openai-compat.md`
183
+
184
+ ## OpenAI Chat Completions compatibility
185
+
186
+ If you already construct OpenAI Chat Completions-style requests, you can use
187
+ Gambit as a drop-in-ish wrapper that applies a deck prompt and can execute only
188
+ deck-defined tools (action decks).
189
+
190
+ ```ts
191
+ import {
192
+ chatCompletionsWithDeck,
193
+ createOpenRouterProvider,
194
+ } from "jsr:@bolt-foundry/gambit";
195
+
196
+ const provider = createOpenRouterProvider({
197
+ apiKey: Deno.env.get("OPENROUTER_API_KEY")!,
198
+ });
199
+
200
+ const resp = await chatCompletionsWithDeck({
201
+ deckPath: "./path/to/root.deck.md",
202
+ modelProvider: provider,
203
+ request: {
204
+ model: "openai/gpt-4o-mini",
205
+ messages: [{ role: "user", content: "hello" }],
206
+ },
207
+ });
208
+
209
+ console.log(resp.choices[0].message);
210
+ ```
211
+
212
+ ## Handlers (error/busy/idle)
213
+
214
+ - Decks may declare `handlers` with `onError`, `onBusy`, and `onIdle`.
215
+ `onInterval` is still accepted but deprecated (alias for `onBusy`).
216
+ - Busy handler input:
217
+ `{kind:"busy", source:{deckPath, actionName}, trigger:{reason:"timeout", elapsedMs}, childInput}`
218
+ plus `delayMs`/`repeatMs` knobs.
219
+ - Idle handler input:
220
+ `{kind:"idle", source:{deckPath}, trigger:{reason:"idle_timeout", elapsedMs}}`
221
+ with `delayMs` (and optional `repeatMs` if provided).
222
+ - Error handler input: `{kind:"error", source, error:{message}, childInput}` and
223
+ should return an envelope `{message?, code?, status?, meta?, payload?}`.
224
+ - Example implementations live under `examples/handlers_ts` and
225
+ `examples/handlers_md`.
226
+ - Debug UI streams handler output in a “status” lane (busy/idle) separate from
227
+ assistant turns.
228
+
229
+ ## Next steps
230
+
231
+ - Swap `modelParams.model` or pass `--model`/`--model-force` to test other
232
+ providers.
233
+ - Add `actionDecks` to a deck and call child decks; use `spawnAndWait` inside
234
+ compute decks.
235
+ - Use `--stream` and `--verbose` while iterating; pass `--trace <file>` to
236
+ capture JSONL traces.
@@ -0,0 +1,25 @@
1
+ declare global {
2
+ interface ImportMeta {
3
+ /** A flag that indicates if the current module is the main module that was
4
+ * called when starting the program under Deno.
5
+ *
6
+ * ```ts
7
+ * if (import.meta.main) {
8
+ * // this was loaded as the main module, maybe do some bootstrapping
9
+ * }
10
+ * ```
11
+ */
12
+ main: boolean;
13
+ /** A function that returns resolved specifier as if it would be imported
14
+ * using `import(specifier)`.
15
+ *
16
+ * ```ts
17
+ * console.log(import.meta.resolve("./foo.js"));
18
+ * // file:///dev/foo.js
19
+ * ```
20
+ */
21
+ resolve(specifier: string): string;
22
+ }
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=_dnt.polyfills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;WAOG;QAEH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;KACpC;CACF;AAED,OAAO,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { Deno } from "@deno/shim-deno";
2
+ export { Deno } from "@deno/shim-deno";
3
+ export declare const dntGlobalThis: Omit<typeof globalThis, "Deno"> & {
4
+ Deno: typeof Deno;
5
+ };
6
+ //# sourceMappingURL=_dnt.shims.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAKvC,eAAO,MAAM,aAAa;;CAA2C,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { Deno } from "@deno/shim-deno";
2
+ export { Deno } from "@deno/shim-deno";
3
+ const dntGlobals = {
4
+ Deno,
5
+ };
6
+ export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
7
+ function createMergeProxy(baseObj, extObj) {
8
+ return new Proxy(baseObj, {
9
+ get(_target, prop, _receiver) {
10
+ if (prop in extObj) {
11
+ return extObj[prop];
12
+ }
13
+ else {
14
+ return baseObj[prop];
15
+ }
16
+ },
17
+ set(_target, prop, value) {
18
+ if (prop in extObj) {
19
+ delete extObj[prop];
20
+ }
21
+ baseObj[prop] = value;
22
+ return true;
23
+ },
24
+ deleteProperty(_target, prop) {
25
+ let success = false;
26
+ if (prop in extObj) {
27
+ delete extObj[prop];
28
+ success = true;
29
+ }
30
+ if (prop in baseObj) {
31
+ delete baseObj[prop];
32
+ success = true;
33
+ }
34
+ return success;
35
+ },
36
+ ownKeys(_target) {
37
+ const baseKeys = Reflect.ownKeys(baseObj);
38
+ const extKeys = Reflect.ownKeys(extObj);
39
+ const extKeysSet = new Set(extKeys);
40
+ return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
41
+ },
42
+ defineProperty(_target, prop, desc) {
43
+ if (prop in extObj) {
44
+ delete extObj[prop];
45
+ }
46
+ Reflect.defineProperty(baseObj, prop, desc);
47
+ return true;
48
+ },
49
+ getOwnPropertyDescriptor(_target, prop) {
50
+ if (prop in extObj) {
51
+ return Reflect.getOwnPropertyDescriptor(extObj, prop);
52
+ }
53
+ else {
54
+ return Reflect.getOwnPropertyDescriptor(baseObj, prop);
55
+ }
56
+ },
57
+ has(_target, prop) {
58
+ return prop in extObj || prop in baseObj;
59
+ },
60
+ });
61
+ }
@@ -0,0 +1,2 @@
1
+ export declare function checkWindows(): boolean;
2
+ //# sourceMappingURL=_os.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/_os.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,IAAI,OAAO,CAUtC"}
@@ -0,0 +1,12 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ import * as dntShim from "../../../../../_dnt.shims.js";
3
+ export function checkWindows() {
4
+ // deno-lint-ignore no-explicit-any
5
+ const global = dntShim.dntGlobalThis;
6
+ const os = global.Deno?.build?.os;
7
+ // Check Deno, then the remaining runtimes (e.g. Node, Bun and the browser)
8
+ return typeof os === "string"
9
+ ? os === "windows"
10
+ : global.navigator?.platform?.startsWith("Win") ??
11
+ global.process?.platform?.startsWith("win") ?? false;
12
+ }
@@ -0,0 +1,3 @@
1
+ /** Whether the current platform is Windows */
2
+ export declare const isWindows: boolean;
3
+ //# sourceMappingURL=os.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"os.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.12/os.ts"],"names":[],"mappings":"AAKA,8CAA8C;AAC9C,eAAO,MAAM,SAAS,EAAE,OAAwB,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // This module is browser compatible.
3
+ import { checkWindows } from "./_os.js";
4
+ /** Whether the current platform is Windows */
5
+ export const isWindows = checkWindows();
@@ -0,0 +1,2 @@
1
+ export declare function assertPath(path?: string): void;
2
+ //# sourceMappingURL=assert_path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assert_path.d.ts","sourceRoot":"","sources":["../../../../../../../src/deps/jsr.io/@std/path/1.1.4/_common/assert_path.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,QAMvC"}