@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.
- package/.gitkeep +0 -0
- package/CHANGELOG.md +85 -0
- package/LICENSE +201 -0
- package/README.md +236 -0
- package/esm/_dnt.polyfills.d.ts +25 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +1 -0
- package/esm/_dnt.shims.d.ts +6 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +61 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/_os.js +12 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.12/os.js +5 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +235 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/basename.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/common.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/common.js +33 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.js +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/dirname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/extname.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/format.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/format.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/from_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +83 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_absolute.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/is_glob.js +42 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/join_globs.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/mod.d.ts +213 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/mod.js +216 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/parse.d.ts +35 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/parse.js +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/basename.js +52 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +64 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/extname.js +93 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join.js +45 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +40 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +58 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/parse.js +115 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/relative.js +106 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +59 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +27 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.js +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/relative.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/relative.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/resolve.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_file_url.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +29 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/types.d.ts +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/types.js +3 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/basename.js +47 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/constants.js +14 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +113 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/extname.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts +24 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/format.js +28 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +30 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +82 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +38 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join.js +77 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +41 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +135 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +32 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/parse.js +176 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts +23 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/relative.js +131 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +154 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +34 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts +17 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.js +49 -0
- package/esm/gambit/mod.d.ts +10 -0
- package/esm/gambit/mod.d.ts.map +1 -0
- package/esm/gambit/mod.js +9 -0
- package/esm/gambit/src/durable_streams.d.ts +9 -0
- package/esm/gambit/src/durable_streams.d.ts.map +1 -0
- package/esm/gambit/src/durable_streams.js +132 -0
- package/esm/gambit/src/server.d.ts +16 -0
- package/esm/gambit/src/server.d.ts.map +1 -0
- package/esm/gambit/src/server.js +2288 -0
- package/esm/gambit/src/test_bot.d.ts +5 -0
- package/esm/gambit/src/test_bot.d.ts.map +1 -0
- package/esm/gambit/src/test_bot.js +5 -0
- package/esm/gambit/src/trace.d.ts +4 -0
- package/esm/gambit/src/trace.d.ts.map +1 -0
- package/esm/gambit/src/trace.js +86 -0
- package/esm/gambit-core/mod.d.ts +50 -0
- package/esm/gambit-core/mod.d.ts.map +1 -0
- package/esm/gambit-core/mod.js +19 -0
- package/esm/gambit-core/src/definitions.d.ts +11 -0
- package/esm/gambit-core/src/definitions.d.ts.map +1 -0
- package/esm/gambit-core/src/definitions.js +14 -0
- package/esm/gambit-core/src/openai_compat.d.ts +63 -0
- package/esm/gambit-core/src/openai_compat.d.ts.map +1 -0
- package/esm/gambit-core/src/openai_compat.js +272 -0
- package/esm/gambit-core/src/providers/openrouter.d.ts +8 -0
- package/esm/gambit-core/src/providers/openrouter.d.ts.map +1 -0
- package/esm/gambit-core/src/providers/openrouter.js +168 -0
- package/esm/gambit-core/src/render.d.ts +51 -0
- package/esm/gambit-core/src/render.d.ts.map +1 -0
- package/esm/gambit-core/src/render.js +188 -0
- package/esm/gambit-core/src/schema.d.ts +8 -0
- package/esm/gambit-core/src/schema.d.ts.map +1 -0
- package/esm/gambit-core/src/schema.js +45 -0
- package/esm/package.json +3 -0
- package/package.json +33 -0
- package/script/_dnt.polyfills.d.ts +25 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +2 -0
- package/script/_dnt.shims.d.ts +6 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +65 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/_os.js +38 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts +3 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.12/os.js +8 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/glob_to_reg_exp.js +238 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/basename.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.4/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.1.4/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/dirname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/extname.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/mod.d.ts +213 -0
- package/script/deps/jsr.io/@std/path/1.1.4/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/mod.js +232 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts +26 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.1.4/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/basename.js +55 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts +30 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/dirname.js +67 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/extname.js +96 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join.js +48 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize.js +61 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/resolve.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.1.4/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.4/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.1.4/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.1.4/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/basename.js +50 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/dirname.js +116 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/extname.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join.js +80 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/join_globs.js +44 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize.js +138 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/normalize_glob.js +35 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/resolve.js +180 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.4/windows/to_namespaced_path.js +52 -0
- package/script/gambit/mod.d.ts +10 -0
- package/script/gambit/mod.d.ts.map +1 -0
- package/script/gambit/mod.js +27 -0
- package/script/gambit/src/durable_streams.d.ts +9 -0
- package/script/gambit/src/durable_streams.d.ts.map +1 -0
- package/script/gambit/src/durable_streams.js +136 -0
- package/script/gambit/src/server.d.ts +16 -0
- package/script/gambit/src/server.d.ts.map +1 -0
- package/script/gambit/src/server.js +2314 -0
- package/script/gambit/src/test_bot.d.ts +5 -0
- package/script/gambit/src/test_bot.d.ts.map +1 -0
- package/script/gambit/src/test_bot.js +8 -0
- package/script/gambit/src/trace.d.ts +4 -0
- package/script/gambit/src/trace.d.ts.map +1 -0
- package/script/gambit/src/trace.js +113 -0
- package/script/gambit-core/mod.d.ts +50 -0
- package/script/gambit-core/mod.d.ts.map +1 -0
- package/script/gambit-core/mod.js +29 -0
- package/script/gambit-core/src/definitions.d.ts +11 -0
- package/script/gambit-core/src/definitions.d.ts.map +1 -0
- package/script/gambit-core/src/definitions.js +20 -0
- package/script/gambit-core/src/openai_compat.d.ts +63 -0
- package/script/gambit-core/src/openai_compat.d.ts.map +1 -0
- package/script/gambit-core/src/openai_compat.js +276 -0
- package/script/gambit-core/src/providers/openrouter.d.ts +8 -0
- package/script/gambit-core/src/providers/openrouter.d.ts.map +1 -0
- package/script/gambit-core/src/providers/openrouter.js +197 -0
- package/script/gambit-core/src/render.d.ts +51 -0
- package/script/gambit-core/src/render.d.ts.map +1 -0
- package/script/gambit-core/src/render.js +192 -0
- package/script/gambit-core/src/schema.d.ts +8 -0
- package/script/gambit-core/src/schema.d.ts.map +1 -0
- package/script/gambit-core/src/schema.js +51 -0
- package/script/package.json +3 -0
- package/simulator-ui/.gitkeep +1 -0
- package/simulator-ui/bundle.js +22824 -0
- 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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|