Skip to content

Commit 5de85ce

Browse files
committed
sync(bfmono): fix(gambit): honor openrouter fallback for google-prefixed models (+19 more) (bfmono@45bf70959)
This PR is an automated gambitmono sync of bfmono Gambit packages. - Source: `packages/gambit/` - Core: `packages/gambit-core/` - bfmono rev: 45bf70959 Changes: - 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 - 3f7bf00e7 docs(gambit): document Gambit-first strategy shift - 2cefee730 nits(simulator-ui): small tweaks - 2ae91ed78 fix(simulator-ui): format json consistently - f38dd2df8 feat(simulator-ui): refine tool call display - e1c41537b feat(simulator-ui): refine calibrate summary cards Do not edit this repo directly; make changes in bfmono and re-run the sync.
1 parent 0de1423 commit 5de85ce

File tree

19 files changed

+24899
-329
lines changed

19 files changed

+24899
-329
lines changed

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/internal/posts/2026-01-24-model-aliases.md

Lines changed: 2 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

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": {

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."

scripts/compile.ts

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,38 @@ const coreRel = normalizePath(path.relative(packageRoot, coreDir));
3434
const coreCards = normalizePath(path.join(coreRel, "cards"));
3535
const coreSchemas = normalizePath(path.join(coreRel, "schemas"));
3636

37-
const baseArgs = [
38-
"compile",
39-
"-A",
40-
"--include",
41-
"deno.jsonc",
42-
"--include",
37+
const docIncludeCandidates = [
4338
"docs/cli/commands",
44-
"--include",
39+
"docs/external/reference/cli/commands",
40+
];
41+
42+
const docIncludes: string[] = [];
43+
for (const relPath of docIncludeCandidates) {
44+
try {
45+
await Deno.stat(path.join(packageRoot, relPath));
46+
docIncludes.push(relPath);
47+
} catch (err) {
48+
if (err instanceof Deno.errors.NotFound) continue;
49+
throw err;
50+
}
51+
}
52+
53+
const includePaths = [
54+
"deno.jsonc",
55+
...docIncludes,
4556
coreCards,
46-
"--include",
4757
coreSchemas,
48-
"--include",
4958
"scaffolds",
50-
"--include",
5159
"simulator-ui/dist",
5260
];
5361

62+
const baseArgs = includePaths.flatMap((includePath) => [
63+
"--include",
64+
includePath,
65+
]);
66+
67+
baseArgs.unshift("compile", "-A");
68+
5469
const extraArgs = Deno.args.filter((arg) => arg !== "--");
5570
const hasOutput = extraArgs.some((arg, idx) =>
5671
arg === "--output" || arg === "-o" || arg.startsWith("--output=") ||

0 commit comments

Comments
 (0)