@bolt-foundry/gambit 0.8.1 → 0.8.5-rc.10
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/CHANGELOG.md +150 -2
- package/README.md +109 -23
- package/esm/_dnt.polyfills.d.ts +17 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +123 -0
- package/esm/deps/jsr.io/@std/collections/1.1.6/deep_merge.d.ts +322 -0
- package/esm/deps/jsr.io/@std/collections/1.1.6/deep_merge.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/collections/1.1.6/deep_merge.js +105 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts +14 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.js +34 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.js +18 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts +10 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_same_path.js +17 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts +12 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_is_subdir.js +25 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts +9 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/_to_path_string.js +13 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/copy.d.ts +117 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/copy.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/copy.js +313 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts +48 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/empty_dir.js +87 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_dir.js +102 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts +47 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_file.js +90 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts +49 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_link.js +61 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts +70 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +156 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/eol.d.ts +52 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/eol.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/eol.js +67 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.d.ts +218 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/exists.js +271 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts +267 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +442 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/mod.d.ts +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/mod.js +29 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/move.d.ts +86 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/move.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/move.js +142 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/walk.d.ts +777 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/walk.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/1.0.23/walk.js +846 -0
- package/esm/deps/jsr.io/@std/json/1.0.3/types.d.ts +7 -0
- package/esm/deps/jsr.io/@std/json/1.0.3/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/json/1.0.3/types.js +3 -0
- package/esm/deps/jsr.io/@std/jsonc/1.0.2/mod.d.ts +20 -0
- package/esm/deps/jsr.io/@std/jsonc/1.0.2/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/jsonc/1.0.2/mod.js +21 -0
- package/esm/deps/jsr.io/@std/jsonc/1.0.2/parse.d.ts +21 -0
- package/esm/deps/jsr.io/@std/jsonc/1.0.2/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/jsonc/1.0.2/parse.js +320 -0
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts +1 -1
- package/esm/deps/jsr.io/@std/toml/1.0.11/_parser.d.ts +93 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/_parser.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/_parser.js +753 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/mod.d.ts +109 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/mod.js +110 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/parse.d.ts +21 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/parse.js +25 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/stringify.d.ts +35 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/stringify.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/toml/1.0.11/stringify.js +283 -0
- package/esm/gambit/simulator-ui/dist/bundle.js +12670 -5471
- package/esm/gambit/simulator-ui/dist/bundle.js.map +4 -4
- package/esm/gambit/simulator-ui/dist/favicon.ico +0 -0
- package/esm/mod.d.ts +21 -7
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +14 -4
- package/esm/src/cli_utils.d.ts +1 -0
- package/esm/src/cli_utils.d.ts.map +1 -1
- package/esm/src/cli_utils.js +52 -4
- package/esm/src/default_runtime.d.ts +46 -0
- package/esm/src/default_runtime.d.ts.map +1 -0
- package/esm/src/default_runtime.js +415 -0
- package/esm/src/durable_streams.js +26 -1
- package/esm/src/model_matchers.d.ts +10 -0
- package/esm/src/model_matchers.d.ts.map +1 -0
- package/esm/src/model_matchers.js +26 -0
- package/esm/src/openai_compat.d.ts +74 -0
- package/esm/src/openai_compat.d.ts.map +1 -0
- package/esm/src/openai_compat.js +329 -0
- package/esm/src/project_config.d.ts +47 -0
- package/esm/src/project_config.d.ts.map +1 -0
- package/esm/src/project_config.js +134 -0
- package/esm/src/providers/codex.d.ts +37 -0
- package/esm/src/providers/codex.d.ts.map +1 -0
- package/esm/src/providers/codex.js +810 -0
- package/esm/src/providers/google.d.ts +18 -0
- package/esm/src/providers/google.d.ts.map +1 -0
- package/esm/src/providers/google.js +428 -0
- package/esm/src/providers/ollama.d.ts +19 -0
- package/esm/src/providers/ollama.d.ts.map +1 -0
- package/esm/src/providers/ollama.js +789 -0
- package/esm/src/providers/openrouter.d.ts +26 -0
- package/esm/src/providers/openrouter.d.ts.map +1 -0
- package/esm/src/providers/openrouter.js +886 -0
- package/esm/src/providers/router.d.ts +19 -0
- package/esm/src/providers/router.d.ts.map +1 -0
- package/esm/src/providers/router.js +93 -0
- package/esm/src/server.d.ts +11 -0
- package/esm/src/server.d.ts.map +1 -1
- package/esm/src/server.js +3927 -689
- package/esm/src/server_feedback_grading_routes.d.ts +32 -0
- package/esm/src/server_feedback_grading_routes.d.ts.map +1 -0
- package/esm/src/server_feedback_grading_routes.js +305 -0
- package/esm/src/server_helpers.d.ts +4 -0
- package/esm/src/server_helpers.d.ts.map +1 -0
- package/esm/src/server_helpers.js +46 -0
- package/esm/src/server_session_store.d.ts +87 -0
- package/esm/src/server_session_store.d.ts.map +1 -0
- package/esm/src/server_session_store.js +873 -0
- package/esm/src/server_types.d.ts +110 -0
- package/esm/src/server_types.d.ts.map +1 -0
- package/esm/src/server_types.js +1 -0
- package/esm/src/server_ui_routes.d.ts +33 -0
- package/esm/src/server_ui_routes.d.ts.map +1 -0
- package/esm/src/server_ui_routes.js +136 -0
- package/esm/src/session_artifacts.d.ts +22 -0
- package/esm/src/session_artifacts.d.ts.map +1 -0
- package/esm/src/session_artifacts.js +243 -0
- package/esm/src/trace.d.ts.map +1 -1
- package/esm/src/trace.js +8 -5
- package/esm/src/workspace.d.ts +19 -0
- package/esm/src/workspace.d.ts.map +1 -0
- package/esm/src/workspace.js +162 -0
- package/esm/src/workspace_contract.d.ts +78 -0
- package/esm/src/workspace_contract.d.ts.map +1 -0
- package/esm/src/workspace_contract.js +76 -0
- package/package.json +3 -2
- package/script/_dnt.polyfills.d.ts +17 -0
- package/script/_dnt.polyfills.d.ts.map +1 -1
- package/script/_dnt.polyfills.js +123 -0
- package/script/deps/jsr.io/@std/collections/1.1.6/deep_merge.d.ts +322 -0
- package/script/deps/jsr.io/@std/collections/1.1.6/deep_merge.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/collections/1.1.6/deep_merge.js +108 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts +14 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_create_walk_entry.js +71 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts +13 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_get_file_info_type.js +21 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts +10 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_same_path.js +20 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts +12 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_is_subdir.js +28 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts +9 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/_to_path_string.js +16 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/copy.d.ts +117 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/copy.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/copy.js +350 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts +48 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/empty_dir.js +124 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_dir.js +139 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts +47 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_file.js +127 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts +49 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_link.js +98 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts +70 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/ensure_symlink.js +193 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/eol.d.ts +52 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/eol.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/eol.js +105 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.d.ts +218 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/exists.js +308 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts +267 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/expand_glob.js +479 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/mod.d.ts +29 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/mod.js +45 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/move.d.ts +86 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/move.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/move.js +179 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/walk.d.ts +777 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/walk.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.23/walk.js +883 -0
- package/script/deps/jsr.io/@std/json/1.0.3/types.d.ts +7 -0
- package/script/deps/jsr.io/@std/json/1.0.3/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/json/1.0.3/types.js +4 -0
- package/script/deps/jsr.io/@std/jsonc/1.0.2/mod.d.ts +20 -0
- package/script/deps/jsr.io/@std/jsonc/1.0.2/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/jsonc/1.0.2/mod.js +37 -0
- package/script/deps/jsr.io/@std/jsonc/1.0.2/parse.d.ts +21 -0
- package/script/deps/jsr.io/@std/jsonc/1.0.2/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/jsonc/1.0.2/parse.js +323 -0
- package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts +1 -1
- package/script/deps/jsr.io/@std/toml/1.0.11/_parser.d.ts +93 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/_parser.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/_parser.js +781 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/mod.d.ts +109 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/mod.js +126 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/parse.d.ts +21 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/parse.js +28 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/stringify.d.ts +35 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/stringify.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/toml/1.0.11/stringify.js +286 -0
- package/script/gambit/simulator-ui/dist/bundle.js +12670 -5471
- package/script/gambit/simulator-ui/dist/bundle.js.map +4 -4
- package/script/gambit/simulator-ui/dist/favicon.ico +0 -0
- package/script/mod.d.ts +21 -7
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +22 -7
- package/script/src/cli_utils.d.ts +1 -0
- package/script/src/cli_utils.d.ts.map +1 -1
- package/script/src/cli_utils.js +52 -3
- package/script/src/default_runtime.d.ts +46 -0
- package/script/src/default_runtime.d.ts.map +1 -0
- package/script/src/default_runtime.js +452 -0
- package/script/src/durable_streams.js +26 -1
- package/script/src/model_matchers.d.ts +10 -0
- package/script/src/model_matchers.d.ts.map +1 -0
- package/script/src/model_matchers.js +29 -0
- package/script/src/openai_compat.d.ts +74 -0
- package/script/src/openai_compat.d.ts.map +1 -0
- package/script/src/openai_compat.js +366 -0
- package/script/src/project_config.d.ts +47 -0
- package/script/src/project_config.d.ts.map +1 -0
- package/script/src/project_config.js +173 -0
- package/script/src/providers/codex.d.ts +37 -0
- package/script/src/providers/codex.d.ts.map +1 -0
- package/script/src/providers/codex.js +850 -0
- package/script/src/providers/google.d.ts +18 -0
- package/script/src/providers/google.d.ts.map +1 -0
- package/script/src/providers/google.js +435 -0
- package/script/src/providers/ollama.d.ts +19 -0
- package/script/src/providers/ollama.d.ts.map +1 -0
- package/script/src/providers/ollama.js +831 -0
- package/script/src/providers/openrouter.d.ts +26 -0
- package/script/src/providers/openrouter.d.ts.map +1 -0
- package/script/src/providers/openrouter.js +926 -0
- package/script/src/providers/router.d.ts +19 -0
- package/script/src/providers/router.d.ts.map +1 -0
- package/script/src/providers/router.js +96 -0
- package/script/src/server.d.ts +11 -0
- package/script/src/server.d.ts.map +1 -1
- package/script/src/server.js +3931 -693
- package/script/src/server_feedback_grading_routes.d.ts +32 -0
- package/script/src/server_feedback_grading_routes.d.ts.map +1 -0
- package/script/src/server_feedback_grading_routes.js +343 -0
- package/script/src/server_helpers.d.ts +4 -0
- package/script/src/server_helpers.d.ts.map +1 -0
- package/script/src/server_helpers.js +84 -0
- package/script/src/server_session_store.d.ts +87 -0
- package/script/src/server_session_store.d.ts.map +1 -0
- package/script/src/server_session_store.js +910 -0
- package/script/src/server_types.d.ts +110 -0
- package/script/src/server_types.d.ts.map +1 -0
- package/script/src/server_types.js +2 -0
- package/script/src/server_ui_routes.d.ts +33 -0
- package/script/src/server_ui_routes.d.ts.map +1 -0
- package/script/src/server_ui_routes.js +173 -0
- package/script/src/session_artifacts.d.ts +22 -0
- package/script/src/session_artifacts.d.ts.map +1 -0
- package/script/src/session_artifacts.js +279 -0
- package/script/src/trace.d.ts.map +1 -1
- package/script/src/trace.js +8 -5
- package/script/src/workspace.d.ts +19 -0
- package/script/src/workspace.d.ts.map +1 -0
- package/script/src/workspace.js +199 -0
- package/script/src/workspace_contract.d.ts +78 -0
- package/script/src/workspace_contract.d.ts.map +1 -0
- package/script/src/workspace_contract.js +84 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,162 @@
|
|
|
1
1
|
+++
|
|
2
2
|
[release]
|
|
3
|
-
since = "
|
|
3
|
+
since = "f9185fb1967a31e92a4a26dbb94cfe1322148406"
|
|
4
4
|
+++
|
|
5
5
|
|
|
6
6
|
# Changelog
|
|
7
7
|
|
|
8
|
-
## Unreleased (v0.8.
|
|
8
|
+
## Unreleased (v0.8.5)
|
|
9
9
|
|
|
10
10
|
- TBD
|
|
11
11
|
|
|
12
|
+
## v0.8.5-rc.10
|
|
13
|
+
|
|
14
|
+
- #4004: add OpenResponses convergence runtime + extensions + async action
|
|
15
|
+
semantics in gambit-core.
|
|
16
|
+
- #4004: retire synthetic respond/end docs and align deck authoring guidance.
|
|
17
|
+
- #4010: fix gambit-core npm runtime layouts to ship built-in snippets/decks.
|
|
18
|
+
|
|
19
|
+
## v0.8.5-rc.9
|
|
20
|
+
|
|
21
|
+
- TBD
|
|
22
|
+
|
|
23
|
+
## v0.8.5-rc.8
|
|
24
|
+
|
|
25
|
+
- chore(gambit): cut 0.8.5-rc.7
|
|
26
|
+
- Switch ci-gambit-core to run nix develop via step commands with a profile
|
|
27
|
+
instead of custom shell overrides. This avoids both workflow-parse failures
|
|
28
|
+
and literal path resolution failures.
|
|
29
|
+
|
|
30
|
+
## v0.8.5-rc.7
|
|
31
|
+
|
|
32
|
+
- chore(gambit): cut 0.8.5-rc.6
|
|
33
|
+
- fix(gambit-ci): stop using github.workspace in shell field
|
|
34
|
+
- fix(gambit): include `src/decks` assets in compiled CLI binaries
|
|
35
|
+
|
|
36
|
+
## v0.8.5-rc.6
|
|
37
|
+
|
|
38
|
+
- chore(gambit): cut 0.8.5-rc.5 and pin React to 19.2.4
|
|
39
|
+
- chore(repo): pin jsx-runtime imports to react 19.2.4
|
|
40
|
+
- refactor(gambit): Fix left drawer
|
|
41
|
+
- feat(gambit-simulator-ui): send scenario run errors to workbench chat
|
|
42
|
+
- refactor(gambit-simulator-ui): replace placeholders with reusable callout
|
|
43
|
+
- fix(gambit): validate explicit deck path and stabilize stop test
|
|
44
|
+
- feat(simulator-ui): use icon remove action for error context chip
|
|
45
|
+
- fix(gambit): invalidate build deck label cache on frontmatter changes
|
|
46
|
+
- feat(gambit): add workbench composer chip and chat flow updates
|
|
47
|
+
|
|
48
|
+
## v0.8.5-rc.5
|
|
49
|
+
|
|
50
|
+
- TBD
|
|
51
|
+
|
|
52
|
+
## v0.8.5-rc.4
|
|
53
|
+
|
|
54
|
+
- chore(infra): run `deno task build_npm` for gambit during `bft precommit`
|
|
55
|
+
- fix(gambit): ignore dnt TS2345 diagnostics from vendored `@std/fs` and
|
|
56
|
+
`@std/toml` npm-compat sources
|
|
57
|
+
|
|
58
|
+
## v0.8.5-rc.3
|
|
59
|
+
|
|
60
|
+
- fix(gambit-release): support nested core path and cut 0.8.5-rc.2
|
|
61
|
+
- refactor(gambit-core): remove built-in exec tool from runtime
|
|
62
|
+
- fix(gambit-core): partition worker sandbox by runtime host
|
|
63
|
+
- test(gambit-core): add unsupported worker sandbox coverage
|
|
64
|
+
- docs(gambit-core): document worker sandbox host contract
|
|
65
|
+
- ci(gambit-core): gate npm compatibility in core CI
|
|
66
|
+
|
|
67
|
+
## v0.8.5-rc.2
|
|
68
|
+
|
|
69
|
+
- TBD
|
|
70
|
+
|
|
71
|
+
## v0.8.5-rc.1
|
|
72
|
+
|
|
73
|
+
- feat(gambit): remove `gambit init`; onboarding now routes through
|
|
74
|
+
`gambit serve`
|
|
75
|
+
- feat(gambit): add `createDefaultedRuntime` and defaulted `runDeck` wrapper
|
|
76
|
+
with CLI-equivalent provider/model routing for library callers
|
|
77
|
+
- refactor(gambit): route CLI runtime/provider setup through shared
|
|
78
|
+
`default_runtime` construction path
|
|
79
|
+
- feat(demo-runner): migrate demo test-deck prompt generation to Gambit default
|
|
80
|
+
runtime wrapper (no hardwired OpenRouter provider)
|
|
81
|
+
- docs(gambit): add migration guidance for `runDeck` wrapper and `runDeckCore`
|
|
82
|
+
replacement mapping
|
|
83
|
+
|
|
84
|
+
## v0.8.3
|
|
85
|
+
|
|
86
|
+
- fix(gambit): include CLI docs/reference files in binary builds
|
|
87
|
+
- chore(infra): run the Gambit compile check during `bft gambit:release`
|
|
88
|
+
|
|
89
|
+
## v0.8.2
|
|
90
|
+
|
|
91
|
+
- chore(gambit): release 0.8.1
|
|
92
|
+
- revert(gambit): back out Open Responses runtime
|
|
93
|
+
- fix(gambit): resolve gambit-core include paths
|
|
94
|
+
- docs(gambit): add ABOUT files and move public posts
|
|
95
|
+
- docs(gambit): split external docs and align readmes
|
|
96
|
+
- docs(gambit): add ABOUT/README pairs for doc hubs
|
|
97
|
+
- Phase 0: rename deck schema terms
|
|
98
|
+
- feat(gambit-core): add Open Responses v1 types
|
|
99
|
+
- feat(gambit): add OpenRouter responses adapter and flag
|
|
100
|
+
- test(gambit): add OpenRouter provider conformance coverage
|
|
101
|
+
- docs(gambit): document responses flag and Phase 2 progress
|
|
102
|
+
- test(gambit): fix lint in OpenRouter provider tests
|
|
103
|
+
- fix(gambit): preserve response parts and validate tool schemas
|
|
104
|
+
- feat(gambit): add responses mode for runtime/state
|
|
105
|
+
- fix(gambit): preserve optional tool args in responses schemas
|
|
106
|
+
- fix(gambit): avoid coercing non-type tool schemas
|
|
107
|
+
- fix(gambit): only normalize object tool schemas
|
|
108
|
+
- test(gambit): add responses CLI smoke coverage
|
|
109
|
+
- docs(gambit): expand phase 4 checklist
|
|
110
|
+
- docs(gambit): note phase 4 test-bot validation
|
|
111
|
+
- docs(gambit): note 0.8.2 release plan
|
|
112
|
+
- docs(gambit): expand phase 5 checklist
|
|
113
|
+
- chore(gambit): set 0.8.2-dev version
|
|
114
|
+
- chore(gambit-core): align version to 0.8.2-dev
|
|
115
|
+
- fix(gambit): widen context tool name set types
|
|
116
|
+
- [gambit] update simpsons explainer example
|
|
117
|
+
- [gambit] extract Test Bot page and shared helpers
|
|
118
|
+
- [gambit] test bot page updates
|
|
119
|
+
- [gambit] refactor headers/nav, add Button component
|
|
120
|
+
- fix(gambit-core): treat empty responses output as empty string
|
|
121
|
+
- chore(gambit): align grader models and schemas
|
|
122
|
+
- docs(gambit): align openresponses migration status
|
|
123
|
+
- refactor(gambit): move chat compat out of core
|
|
124
|
+
- refactor(gambit): move chat compat out of core
|
|
125
|
+
- fix(simulator-ui): stabilize test bot nav handlers
|
|
126
|
+
- chore(simulator-ui): bundle favicon for distribution
|
|
127
|
+
- refactor(simulator-ui): extract calibrate page
|
|
128
|
+
- feat(simulator-ui): standardize simulator page layout
|
|
129
|
+
- docs(gambit): defer phase 5 and move migration tracker
|
|
130
|
+
- docs(docs): align docs structure and links
|
|
131
|
+
- docs(gambit): add internal project and post docs
|
|
132
|
+
- docs reorg
|
|
133
|
+
- feat(gambit): wire init chat flow and init-only tools
|
|
134
|
+
- feat(simulator-ui): add icon system and grader UI polish
|
|
135
|
+
- refactor(simulator-ui): rename calibrate route to grade
|
|
136
|
+
- refactor(simulator-ui): rename test bot labels to test
|
|
137
|
+
- refactor(simulator-ui): drop copy ref button
|
|
138
|
+
- refactor(simulator-ui): drop reference sample overlays
|
|
139
|
+
- refactor(simulator-ui): simplify raw input details
|
|
140
|
+
- refactor(simulator-ui): remove session metadata display
|
|
141
|
+
- docs(gambit): update simulator links for test/grade
|
|
142
|
+
- feat(simulator-ui): make run header toggleable with icon cue
|
|
143
|
+
- fix(simulator-ui): normalize color tokens
|
|
144
|
+
- chore(simulator-ui): add "+" to positive scores
|
|
145
|
+
- feat(simulator-ui): add status badge component
|
|
146
|
+
- feat(simulator-ui): refine calibrate summary cards
|
|
147
|
+
- feat(simulator-ui): refine tool call display
|
|
148
|
+
- fix(simulator-ui): format json consistently
|
|
149
|
+
- nits(simulator-ui): small tweaks
|
|
150
|
+
- docs(gambit): document Gambit-first strategy shift
|
|
151
|
+
- feat(gambit): add ollama provider routing
|
|
152
|
+
- feat(gambit): auto-pull missing ollama models
|
|
153
|
+
- feat(gambit): add model availability check
|
|
154
|
+
- infra: add obsidian bft command and fix gambit check mocks
|
|
155
|
+
- fix(gambit): include handler decks in model check
|
|
156
|
+
- feat(gambit): add gambit.toml model aliases
|
|
157
|
+
- feat(gambit): default responses mode with chat fallback
|
|
158
|
+
- fix(gambit): publish scaffolds for jsr demo/init commands
|
|
159
|
+
|
|
12
160
|
## v0.8.1
|
|
13
161
|
|
|
14
162
|
- fix(gambit): include gambit-core cards/schemas in compiled binary
|
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# <img src="./gambit_1color_bg.png" alt="Gambit logo" height="50" />
|
|
2
2
|
|
|
3
|
-
Gambit
|
|
3
|
+
Gambit is an open-source, developer-first framework that helps you build\
|
|
4
|
+
reliable LLM workflows by composing small, typed “decks”\
|
|
4
5
|
with clear inputs/outputs and guardrails. Run decks locally, stream traces, and\
|
|
5
6
|
debug with a built-in UI.
|
|
6
7
|
|
|
@@ -21,15 +22,14 @@ npx @bolt-foundry/gambit demo
|
|
|
21
22
|
Downloads example files (hello decks plus the `examples/` gallery) and sets
|
|
22
23
|
environment variables.
|
|
23
24
|
|
|
24
|
-
To
|
|
25
|
+
To start onboarding with the simulator, run:
|
|
25
26
|
|
|
26
27
|
```
|
|
27
|
-
npx @bolt-foundry/gambit
|
|
28
|
+
npx @bolt-foundry/gambit serve gambit/hello.deck.md
|
|
29
|
+
open http://localhost:8000/debug
|
|
28
30
|
```
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
`schemas/`, `.gambit/`) with README guides so you can start authoring your own
|
|
32
|
-
workflows immediately.
|
|
32
|
+
Use the Build tab to draft your own workspace decks and scenarios.
|
|
33
33
|
|
|
34
34
|
Run an example in the terminal (`repl`):
|
|
35
35
|
|
|
@@ -99,10 +99,10 @@ Drop into a REPL (streams by default):
|
|
|
99
99
|
npx @bolt-foundry/gambit repl <deck>
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
Run a persona against a root deck (
|
|
102
|
+
Run a persona against a root deck (scenario):
|
|
103
103
|
|
|
104
104
|
```
|
|
105
|
-
npx @bolt-foundry/gambit
|
|
105
|
+
npx @bolt-foundry/gambit scenario <root-deck> --test-deck <persona-deck>
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
Grade a saved session:
|
|
@@ -123,6 +123,23 @@ Tracing and state:
|
|
|
123
123
|
`--verbose` to print events\
|
|
124
124
|
`--state <file>` to persist a session.
|
|
125
125
|
|
|
126
|
+
### Worker sandbox defaults
|
|
127
|
+
|
|
128
|
+
- Deck-executing CLI surfaces default to worker sandbox execution.
|
|
129
|
+
- Use `--no-worker-sandbox` (or `--legacy-exec`) to force legacy in-process
|
|
130
|
+
execution.
|
|
131
|
+
- `--worker-sandbox` explicitly forces worker execution on.
|
|
132
|
+
- `--sandbox` / `--no-sandbox` are deprecated aliases.
|
|
133
|
+
- `gambit.toml` equivalent:
|
|
134
|
+
```toml
|
|
135
|
+
[execution]
|
|
136
|
+
worker_sandbox = false # same as --no-worker-sandbox
|
|
137
|
+
# legacy_exec = true # equivalent rollback toggle
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
The npm launcher (`npx @bolt-foundry/gambit ...`) runs the Gambit CLI binary for
|
|
141
|
+
your platform, so these defaults and flags apply there as well.
|
|
142
|
+
|
|
126
143
|
## Using the Simulator
|
|
127
144
|
|
|
128
145
|
The simulator is the local Debug UI that streams runs and renders traces.
|
|
@@ -148,12 +165,13 @@ http://localhost:8000/
|
|
|
148
165
|
It also serves:
|
|
149
166
|
|
|
150
167
|
```
|
|
151
|
-
http://localhost:8000/test
|
|
152
|
-
http://localhost:8000/
|
|
168
|
+
http://localhost:8000/test
|
|
169
|
+
http://localhost:8000/grade
|
|
153
170
|
```
|
|
154
171
|
|
|
155
172
|
The Debug UI shows transcript lanes plus a trace/tools feed. If the deck has an\
|
|
156
|
-
`
|
|
173
|
+
`contextSchema`, the UI renders a schema-driven form with defaults and a raw
|
|
174
|
+
JSON\
|
|
157
175
|
tab. Local-first state is stored under `.gambit/` (sessions, traces, notes).
|
|
158
176
|
|
|
159
177
|
## Using the Library
|
|
@@ -166,11 +184,64 @@ Import the helpers from JSR:
|
|
|
166
184
|
import { defineDeck, defineCard } from "jsr:@bolt-foundry/gambit";
|
|
167
185
|
```
|
|
168
186
|
|
|
169
|
-
Define `
|
|
187
|
+
Define `contextSchema`/`responseSchema` with Zod to validate IO, and implement\
|
|
170
188
|
`run`/`execute` for compute decks. To call a child deck from code, use\
|
|
171
189
|
`ctx.spawnAndWait({ path, input })`. Emit structured trace events with\
|
|
172
190
|
`ctx.log(...)`.
|
|
173
191
|
|
|
192
|
+
### Runtime defaults for programmatic `runDeck`
|
|
193
|
+
|
|
194
|
+
`runDeck` from `@bolt-foundry/gambit` now uses CLI-equivalent provider/model
|
|
195
|
+
defaults (alias expansion, provider routing, fallback behavior).
|
|
196
|
+
|
|
197
|
+
Before (direct-provider setup in each caller):
|
|
198
|
+
|
|
199
|
+
```ts
|
|
200
|
+
import { createOpenRouterProvider, runDeck } from "jsr:@bolt-foundry/gambit";
|
|
201
|
+
|
|
202
|
+
const provider = createOpenRouterProvider({
|
|
203
|
+
apiKey: Deno.env.get("OPENROUTER_API_KEY")!,
|
|
204
|
+
});
|
|
205
|
+
await runDeck({
|
|
206
|
+
path: "./root.deck.md",
|
|
207
|
+
input: { message: "hi" },
|
|
208
|
+
modelProvider: provider,
|
|
209
|
+
});
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
After (defaulted wrapper):
|
|
213
|
+
|
|
214
|
+
```ts
|
|
215
|
+
import { runDeck } from "jsr:@bolt-foundry/gambit";
|
|
216
|
+
|
|
217
|
+
await runDeck({
|
|
218
|
+
path: "./root.deck.md",
|
|
219
|
+
input: { message: "hi" },
|
|
220
|
+
});
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Per-runtime override (shared runtime object):
|
|
224
|
+
|
|
225
|
+
```ts
|
|
226
|
+
import { createDefaultedRuntime, runDeck } from "jsr:@bolt-foundry/gambit";
|
|
227
|
+
|
|
228
|
+
const runtime = await createDefaultedRuntime({
|
|
229
|
+
fallbackProvider: "codex-cli",
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
await runDeck({
|
|
233
|
+
runtime,
|
|
234
|
+
path: "./root.deck.md",
|
|
235
|
+
input: { message: "hi" },
|
|
236
|
+
});
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Replacement mapping:
|
|
240
|
+
|
|
241
|
+
- Legacy direct core passthrough export: `runDeck` -> `runDeckCore`
|
|
242
|
+
- Defaulted wrapper export: `runDeck`
|
|
243
|
+
- Runtime builder: `createDefaultedRuntime`
|
|
244
|
+
|
|
174
245
|
---
|
|
175
246
|
|
|
176
247
|
## Author your first deck
|
|
@@ -204,8 +275,8 @@ import { z } from "zod";
|
|
|
204
275
|
|
|
205
276
|
export default defineDeck({
|
|
206
277
|
label: "echo",
|
|
207
|
-
|
|
208
|
-
|
|
278
|
+
contextSchema: z.object({ text: z.string() }),
|
|
279
|
+
responseSchema: z.object({ text: z.string(), length: z.number() }),
|
|
209
280
|
run(ctx) {
|
|
210
281
|
return { text: ctx.input.text, length: ctx.input.text.length };
|
|
211
282
|
},
|
|
@@ -224,7 +295,7 @@ npx @bolt-foundry/gambit run ./echo.deck.ts --context '{"text":"ping"}'
|
|
|
224
295
|
+++
|
|
225
296
|
label = "agent_with_time"
|
|
226
297
|
modelParams = { model = "openai/gpt-4o-mini", temperature = 0 }
|
|
227
|
-
[[
|
|
298
|
+
[[actions]]
|
|
228
299
|
name = "get_time"
|
|
229
300
|
path = "./get_time.deck.ts"
|
|
230
301
|
description = "Return the current ISO timestamp."
|
|
@@ -242,8 +313,8 @@ import { z } from "zod";
|
|
|
242
313
|
|
|
243
314
|
export default defineDeck({
|
|
244
315
|
label: "get_time",
|
|
245
|
-
|
|
246
|
-
|
|
316
|
+
contextSchema: z.object({}), // no args
|
|
317
|
+
responseSchema: z.object({ iso: z.string() }),
|
|
247
318
|
run() {
|
|
248
319
|
return { iso: new Date().toISOString() };
|
|
249
320
|
},
|
|
@@ -256,6 +327,27 @@ Run it:
|
|
|
256
327
|
npx @bolt-foundry/gambit run ./agent_with_time.deck.md --context '"hello"' --stream
|
|
257
328
|
```
|
|
258
329
|
|
|
330
|
+
### Legacy respond-flow demo (historical compatibility)
|
|
331
|
+
|
|
332
|
+
`packages/gambit/examples/respond_flow/` is kept as a legacy compatibility
|
|
333
|
+
example for historical transcript/grader behavior. New decks should return
|
|
334
|
+
schema-valid assistant output directly instead of calling `gambit_respond`.
|
|
335
|
+
|
|
336
|
+
```
|
|
337
|
+
cd packages/gambit
|
|
338
|
+
npx @bolt-foundry/gambit serve ./examples/respond_flow/decks/root.deck.ts --port 8000
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
Then:
|
|
342
|
+
|
|
343
|
+
1. Open `http://localhost:8000/test`, pick the **Escalation persona**, and run
|
|
344
|
+
it. Leave the “Use scenario deck input for init” toggle on to see persona
|
|
345
|
+
data seed the init form automatically.
|
|
346
|
+
2. Switch to the Debug tab to inspect the session; this scenario still emits
|
|
347
|
+
legacy `gambit_respond` payloads for compatibility testing.
|
|
348
|
+
3. Head to the Calibrate tab and run the **Respond payload grader** to validate
|
|
349
|
+
historical non-root respond-output handling.
|
|
350
|
+
|
|
259
351
|
## Deno
|
|
260
352
|
|
|
261
353
|
If you prefer Deno, use the Deno commands below.
|
|
@@ -267,12 +359,6 @@ export OPENROUTER_API_KEY=...
|
|
|
267
359
|
deno run -A jsr:@bolt-foundry/gambit/cli demo
|
|
268
360
|
```
|
|
269
361
|
|
|
270
|
-
Starter project:
|
|
271
|
-
|
|
272
|
-
```
|
|
273
|
-
deno run -A jsr:@bolt-foundry/gambit/cli init my-project
|
|
274
|
-
```
|
|
275
|
-
|
|
276
362
|
Run a deck:
|
|
277
363
|
|
|
278
364
|
```
|
package/esm/_dnt.polyfills.d.ts
CHANGED
|
@@ -97,5 +97,22 @@ interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyf
|
|
|
97
97
|
export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
|
|
98
98
|
export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
|
|
99
99
|
export declare let import_meta_ponyfill: ImportMetaPonyfill;
|
|
100
|
+
declare global {
|
|
101
|
+
interface Object {
|
|
102
|
+
/**
|
|
103
|
+
* Determines whether an object has a property with the specified name.
|
|
104
|
+
* @param o An object.
|
|
105
|
+
* @param v A property name.
|
|
106
|
+
*/
|
|
107
|
+
hasOwn(o: object, v: PropertyKey): boolean;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export {};
|
|
111
|
+
declare global {
|
|
112
|
+
interface ArrayConstructor {
|
|
113
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>): Promise<T[]>;
|
|
114
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
100
117
|
export {};
|
|
101
118
|
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAgC,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;;;;;;;WAcG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;;;;;;;;WAYG;QACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,GAAG,MAAM,CAAC;QACtE;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;;;;;;WAYG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;;;;;WAYG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,KAAK,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AACnD,UAAU,0BAA0B;IAClC,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACxD;AACD,UAAU,0BAA0B;IAClC,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;CACtC;AACD,UAAU,kBACR,SAAQ,0BAA0B,EAAE,0BAA0B;CAC/D;AAiBD,eAAO,IAAI,6BAA6B,EA2BnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,6BAA6B,EA4DnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,oBAAoB,EAoB1B,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAgC,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;;;;;;;WAcG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;;;;;;;;WAYG;QACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,GAAG,MAAM,CAAC;QACtE;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;;;;;;WAYG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;;;;;WAYG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,KAAK,UAAU,GAAG,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;AACnD,UAAU,0BAA0B;IAClC,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACxD;AACD,UAAU,0BAA0B;IAClC,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;CACtC;AACD,UAAU,kBACR,SAAQ,0BAA0B,EAAE,0BAA0B;CAC/D;AAiBD,eAAO,IAAI,6BAA6B,EA2BnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,6BAA6B,EA4DnC,0BAA0B,CAAC;AAMhC,eAAO,IAAI,oBAAoB,EAoB1B,kBAAkB,CAAC;AAgBxB,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,gBAAgB;QACxB,SAAS,CAAC,CAAC,EACP,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,GAC7F,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QAEhB,SAAS,CAAC,CAAC,EAAE,CAAC,EACV,mBAAmB,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAClE,KAAK,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,EAC/B,OAAO,CAAC,EAAE,GAAG,GACd,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;KAC1B;CACF;AAoID,OAAO,EAAE,CAAC"}
|
package/esm/_dnt.polyfills.js
CHANGED
|
@@ -125,3 +125,126 @@ export let import_meta_ponyfill = ((...args) => {
|
|
|
125
125
|
//@ts-ignore
|
|
126
126
|
return import_meta_ponyfill(...args);
|
|
127
127
|
});
|
|
128
|
+
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
129
|
+
if (!Object.hasOwn) {
|
|
130
|
+
Object.defineProperty(Object, "hasOwn", {
|
|
131
|
+
value: function (object, property) {
|
|
132
|
+
if (object == null) {
|
|
133
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
134
|
+
}
|
|
135
|
+
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
136
|
+
},
|
|
137
|
+
configurable: true,
|
|
138
|
+
enumerable: false,
|
|
139
|
+
writable: true,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// From https://github.com/es-shims/array-from-async/blob/4a5ff83947b861f35b380d5d4f20da2f07698638/index.mjs
|
|
143
|
+
// Tried to have dnt depend on the package instead, but it distributes as an
|
|
144
|
+
// ES module, so doesn't work with CommonJS.
|
|
145
|
+
//
|
|
146
|
+
// Code below:
|
|
147
|
+
//
|
|
148
|
+
// Copyright 2021 J. S. Choi
|
|
149
|
+
//
|
|
150
|
+
// Redistribution and use in source and binary forms, with or without
|
|
151
|
+
// modification, are permitted provided that the following conditions
|
|
152
|
+
// are met:
|
|
153
|
+
//
|
|
154
|
+
// 1. Redistributions of source code must retain the above copyright
|
|
155
|
+
// notice, this list of conditions and the following disclaimer.
|
|
156
|
+
//
|
|
157
|
+
// 2. Redistributions in binary form must reproduce the above copyright
|
|
158
|
+
// notice, this list of conditions and the following disclaimer in the
|
|
159
|
+
// documentation and/or other materials provided with the distribution.
|
|
160
|
+
//
|
|
161
|
+
// 3. Neither the name of the copyright holder nor the names of its
|
|
162
|
+
// contributors may be used to endorse or promote products derived from
|
|
163
|
+
// this software without specific prior written permission.
|
|
164
|
+
//
|
|
165
|
+
// **This software is provided by the copyright holders and contributors
|
|
166
|
+
// "as is" and any express or implied warranties, including, but not
|
|
167
|
+
// limited to, the implied warranties of merchantability and fitness for a
|
|
168
|
+
// particular purpose are disclaimed. In no event shall the copyright
|
|
169
|
+
// holder or contributors be liable for any direct, indirect, incidental,
|
|
170
|
+
// special, exemplary, or consequential damages (including, but not limited
|
|
171
|
+
// to, procurement of substitute goods or services; loss of use, data, or
|
|
172
|
+
// profits; or business interruption) however caused and on any theory of
|
|
173
|
+
// liability, whether in contract, strict liability, or tort (including
|
|
174
|
+
// negligence or otherwise) arising in any way out of the use of this
|
|
175
|
+
// software, even if advised of the possibility of such damage.**
|
|
176
|
+
const { MAX_SAFE_INTEGER } = Number;
|
|
177
|
+
const iteratorSymbol = Symbol.iterator;
|
|
178
|
+
const asyncIteratorSymbol = Symbol.asyncIterator;
|
|
179
|
+
const IntrinsicArray = Array;
|
|
180
|
+
const tooLongErrorMessage = 'Input is too long and exceeded Number.MAX_SAFE_INTEGER times.';
|
|
181
|
+
function isConstructor(obj) {
|
|
182
|
+
if (obj != null) {
|
|
183
|
+
const prox = new Proxy(obj, {
|
|
184
|
+
construct() {
|
|
185
|
+
return prox;
|
|
186
|
+
},
|
|
187
|
+
});
|
|
188
|
+
try {
|
|
189
|
+
new prox;
|
|
190
|
+
return true;
|
|
191
|
+
}
|
|
192
|
+
catch (err) {
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
async function fromAsync(items, mapfn, thisArg) {
|
|
201
|
+
const itemsAreIterable = (asyncIteratorSymbol in items ||
|
|
202
|
+
iteratorSymbol in items);
|
|
203
|
+
if (itemsAreIterable) {
|
|
204
|
+
const result = isConstructor(this)
|
|
205
|
+
? new this
|
|
206
|
+
: IntrinsicArray(0);
|
|
207
|
+
let i = 0;
|
|
208
|
+
for await (const v of items) {
|
|
209
|
+
if (i > MAX_SAFE_INTEGER) {
|
|
210
|
+
throw TypeError(tooLongErrorMessage);
|
|
211
|
+
}
|
|
212
|
+
else if (mapfn) {
|
|
213
|
+
result[i] = await mapfn.call(thisArg, v, i);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
result[i] = v;
|
|
217
|
+
}
|
|
218
|
+
i++;
|
|
219
|
+
}
|
|
220
|
+
result.length = i;
|
|
221
|
+
return result;
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
// In this case, the items are assumed to be an arraylike object with
|
|
225
|
+
// a length property and integer properties for each element.
|
|
226
|
+
const { length } = items;
|
|
227
|
+
const result = isConstructor(this)
|
|
228
|
+
? new this(length)
|
|
229
|
+
: IntrinsicArray(length);
|
|
230
|
+
let i = 0;
|
|
231
|
+
while (i < length) {
|
|
232
|
+
if (i > MAX_SAFE_INTEGER) {
|
|
233
|
+
throw TypeError(tooLongErrorMessage);
|
|
234
|
+
}
|
|
235
|
+
const v = await items[i];
|
|
236
|
+
if (mapfn) {
|
|
237
|
+
result[i] = await mapfn.call(thisArg, v, i);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
result[i] = v;
|
|
241
|
+
}
|
|
242
|
+
i++;
|
|
243
|
+
}
|
|
244
|
+
result.length = i;
|
|
245
|
+
return result;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
if (!Array.fromAsync) {
|
|
249
|
+
Array.fromAsync = fromAsync;
|
|
250
|
+
}
|