Skip to content

Commit f93d554

Browse files
committed
sync(bfmono): fix(gambit): disable test-bot init inheritance (+19 more) (bfmono@91c8ab646)
This PR is an automated gambitmono sync of bfmono Gambit packages. - Source: `packages/gambit/` - Core: `packages/gambit-core/` - bfmono rev: 91c8ab646 Changes: - 91c8ab646 fix(gambit): disable test-bot init inheritance - 3cb78f0e7 feat(gambit): restore model availability checks - 2ac9fe805 test(gambit): add opt-in live provider integration tests - 19f443033 feat(gambit): add deck startMode metadata - d8f7b0176 fix(gambit): improve simulator auto-bundling - 45bf70959 fix(gambit): honor openrouter fallback for google-prefixed models - a5be06d62 refactor(gambit): make gambit check provider-agnostic - b724212db feat(gambit): add google provider integration - db4550db6 feat(gambit): add provider router fallback config - 110433689 chore(gambit): cut 0.8.3 release - 3cc12a163 fix(gambit): update compile docs include - d17a4bdc3 chore(gambit): cut 0.8.2 release - 876085953 feat(gambit): improve init model fallback messaging - 5bda55166 feat(gambit): add model fallback resolution - bdc68aae6 feat(gambit): add gambit.toml model aliases - 8ed9e6d9c fix(gambit): include handler decks in model check - 5e10ebb0f infra: add obsidian bft command and fix gambit check mocks - 54a6bfc86 feat(gambit): add model availability check - 951e6c678 feat(gambit): auto-pull missing ollama models - ebc6ed21e feat(gambit): add ollama provider routing Do not edit this repo directly; make changes in bfmono and re-run the sync.
1 parent 0de1423 commit f93d554

34 files changed

Lines changed: 25295 additions & 521 deletions

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
+++
22
[release]
3-
since = "bdc68aae672ce89c7d50b913deb1703a9ce7d5df"
3+
since = "849762245925cce325c04da1d604088370ec3723"
44
+++
55

66
# Changelog
77

8-
## Unreleased (v0.8.3)
8+
## Unreleased (v0.8.4)
99

1010
- TBD
1111

12+
## v0.8.3
13+
14+
- fix(gambit): include CLI docs/reference files in binary builds
15+
- chore(infra): run the Gambit compile check during `bft gambit:release`
16+
1217
## v0.8.2
1318

1419
- chore(gambit): release 0.8.1

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
33
"name": "@bolt-foundry/gambit",
44
"description": "Agent harness framework for building, running, and verifying LLM workflows in Markdown and code.",
5-
"version": "0.8.2",
5+
"version": "0.8.3",
66
"license": "Apache-2.0",
77
"repository": {
88
"type": "git",

docs/external/reference/cli/commands/check.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
command = "check"
33
summary = "Validate deck model references"
44
usage = "gambit check <deck.(ts|md)>"
5-
flags = []
5+
flags = ["--online Check remote provider availability (requires API keys)."]
66
+++
77

88
Loads the deck tree, collects declared models, and checks that each model exists
9-
in the backing providers (`openrouter/` or `ollama/`). Unprefixed models resolve
10-
to OpenRouter.
9+
in the backing providers. Ollama models are validated locally by default. Remote
10+
providers (OpenRouter/Google) are only validated when `--online` is set.
11+
Unprefixed models resolve to the configured `providers.fallback` (default:
12+
OpenRouter).

docs/external/reference/cli/commands/serve.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ flags = [
88
"--port <n> Port for serve (default: 8000)",
99
"--responses Run runtime/state in Responses mode",
1010
"--watch Restart server on file changes (serve)",
11-
"--bundle Force auto-bundling (serve; default in dev)",
11+
"--bundle Force a simulator UI rebuild (serve; default in dev)",
1212
"--no-bundle Disable auto-bundling for simulator UI (serve)",
1313
"--sourcemap Generate external source maps (serve; default in dev)",
1414
"--no-sourcemap Disable source map generation (serve)",

docs/internal/posts/2026-01-24-model-aliases.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
alias is missing.
1616
- Demo/init scaffolds include a starter alias plus docs describing how to route
1717
Ollama/OpenRouter targets through the new layer.
18+
- `gambit.toml` now supports `[providers] fallback = "openrouter" | "none"` to
19+
control whether unprefixed models fall back to OpenRouter.
1820

1921
## Why
2022

@@ -38,3 +40,5 @@
3840
adding new decks.
3941
- Extend `gambit check` with richer reporting (e.g., list resolved aliases) if
4042
teams need more visibility.
43+
- Add opt-in live provider integration tests (set `GAMBIT_RUN_LIVE_TESTS=1` and
44+
provider API keys).

mod.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ export type { RenderDeckResult } from "@bolt-foundry/gambit-core";
4949
export { createOpenRouterProvider } from "./src/providers/openrouter.ts";
5050
/** Provider factory for Ollama-backed model calls. */
5151
export { createOllamaProvider } from "./src/providers/ollama.ts";
52+
/** Provider factory for Google Gemini-backed model calls. */
53+
export { createGoogleProvider } from "./src/providers/google.ts";
5254
/** Start the WebSocket simulator server for the Gambit UI. */
5355
export { startWebSocketSimulator } from "./src/server.ts";

packages/gambit-core/deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bolt-foundry/gambit-core",
3-
"version": "0.8.2",
3+
"version": "0.8.3",
44
"description": "Core runtime for Gambit decks.",
55
"license": "Apache-2.0",
66
"repository": {

packages/gambit-core/src/markdown.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ export async function loadMarkdownDeck(
505505
graderDecks: mergeDeckRefs(rootGraderDecks, embeddedGraderDecks),
506506
cards: allCards,
507507
label: deckMeta.label,
508+
startMode: deckMeta.startMode,
508509
modelParams: deckMeta.modelParams,
509510
guardrails: deckMeta.guardrails,
510511
contextSchema: mergedContextSchema,

packages/gambit-core/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export type HandlersConfig = {
7979

8080
export type BaseDefinition = {
8181
label?: Label;
82+
startMode?: "assistant" | "user";
8283
contextSchema?: ZodTypeAny;
8384
responseSchema?: ZodTypeAny;
8485
/**

scaffolds/init/gambit.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ graders = "graders"
55
tests = "tests"
66
schemas = "schemas"
77

8+
[providers]
9+
fallback = "openrouter"
10+
811
[models.aliases.default]
912
model = "openrouter/openai/gpt-4o-mini"
1013
description = "Workspace default model alias."

0 commit comments

Comments
 (0)