From 5e76d8d2d27613d81d6b4859a79265853141de32 Mon Sep 17 00:00:00 2001 From: Robert Balicki Date: Sat, 31 Jan 2026 17:14:36 -0500 Subject: [PATCH] branding exercise --- .github/workflows/ci.yml | 2 +- .github/workflows/e2e-manual.yml | 2 +- .github/workflows/gambit-publish.yml | 28 +++++------ .github/workflows/release-binaries.yml | 2 +- AGENTS.md | 2 +- README.md | 46 +++++++++---------- bin/gambit.cjs | 4 +- deno.jsonc | 10 ++-- docs/external/getting-started/README.md | 6 +-- docs/external/guides/authoring.md | 2 +- docs/external/reference/openai-compat.md | 2 +- .../dev/simpsons_explainer_notest/README.md | 2 +- .../dev/simpsons_explainer_user/README.md | 2 +- .../simpsons_explainer_user_notest/README.md | 2 +- mod.ts | 36 +++++++-------- packages/gambit-core/README.md | 30 ++++++------ packages/gambit-core/deno.json | 6 +-- packages/gambit-core/scripts/build_npm.ts | 6 +-- scaffolds/demo/deno.json | 2 +- .../agent_with_multi_actions/README.md | 6 +-- .../actions/decks/basic_math.deck.ts | 2 +- .../actions/decks/echo_input.deck.ts | 2 +- .../actions/decks/get_time.deck.ts | 2 +- .../actions/decks/random_number.deck.ts | 2 +- .../advanced/agent_with_typescript/README.md | 6 +-- .../agent_with_typescript/get_time.deck.ts | 2 +- .../examples/advanced/arena_chatbot/README.md | 6 +-- .../advanced/cli_cold_emailer/README.md | 4 +- .../log_revision_plan.deck.ts | 2 +- .../cli_cold_emailer/lookup_profile.deck.ts | 2 +- .../cli_cold_emailer/send_email.deck.ts | 2 +- .../advanced/cli_handlers_md/README.md | 4 +- .../actions/decks/flaky_action.deck.ts | 2 +- .../actions/decks/slow_action.deck.ts | 2 +- .../advanced/cli_handlers_ts/README.md | 4 +- .../actions/decks/flaky_action.deck.ts | 2 +- .../actions/decks/slow_action.deck.ts | 2 +- .../cli_handlers_ts/handlers/on_busy.ts | 2 +- .../cli_handlers_ts/handlers/on_error.ts | 2 +- .../cli_handlers_ts/handlers/on_idle.ts | 2 +- .../advanced/cli_internal_monolog/README.md | 4 +- .../cli_internal_monolog/lookup_fact.deck.ts | 2 +- .../advanced/patient_swapper/README.md | 4 +- .../patient_swapper/find_patient_id.deck.ts | 2 +- .../patient_swapper/followup_task.deck.ts | 2 +- .../update_patient_field.deck.ts | 2 +- .../advanced/pokemon_advice/root.deck.ts | 2 +- .../pokemon_advice/schema_form.deck.ts | 2 +- .../advanced/simpsons_explainer/README.md | 4 +- .../advanced/voice_front_desk/README.md | 6 +-- .../actions/acquire_new_patient.deck.ts | 2 +- .../actions/appointment_lookup.deck.ts | 2 +- .../actions/billing_support.deck.ts | 2 +- .../actions/confirm_appointment.deck.ts | 2 +- .../actions/frontdesk_faq.deck.ts | 2 +- .../actions/insurance_check.deck.ts | 2 +- .../actions/log_message.deck.ts | 2 +- .../actions/patient_lookup.deck.ts | 2 +- .../actions/refill_ops.deck.ts | 2 +- .../actions/results_lookup.deck.ts | 2 +- .../actions/scheduling_ops.deck.ts | 2 +- .../actions/transfer_request.deck.ts | 2 +- .../decks/error_simulator.deck.ts | 2 +- .../actions/load_faq_dataset.deck.ts | 2 +- scaffolds/demo/package.json | 2 +- scaffolds/init/README.md | 4 +- scaffolds/init/decks/README.md | 2 +- scaffolds/init/deno.json | 2 +- scaffolds/init/package.json | 6 +-- scaffolds/init/tests/README.md | 2 +- scripts/build_npm.ts | 10 ++-- simulator-ui/demo/gambit-ui-demo-timeline.ts | 2 +- simulator-ui/src/DocsPage.tsx | 4 +- src/cli.ts | 18 ++++---- src/cli_utils.ts | 6 +-- src/commands/check.ts | 2 +- src/commands/export.ts | 6 +-- src/commands/grade.ts | 10 ++-- src/commands/init.ts | 4 +- src/commands/run.responses.test.ts | 2 +- src/commands/run.ts | 10 ++-- src/commands/scaffold_utils.ts | 2 +- src/commands/serve.ts | 2 +- src/commands/test_bot.ts | 28 +++++------ src/decks/actions/bot_exists.deck.ts | 2 +- src/decks/actions/bot_mkdir.deck.ts | 2 +- src/decks/actions/bot_read.deck.ts | 2 +- src/decks/actions/bot_write.deck.ts | 2 +- src/decks/actions/init_exists.deck.ts | 2 +- src/decks/actions/init_mkdir.deck.ts | 2 +- src/decks/actions/init_write.deck.ts | 2 +- src/openai_compat.test.ts | 2 +- src/openai_compat.ts | 4 +- src/providers/google.ts | 2 +- src/providers/ollama.test.ts | 4 +- src/providers/ollama.ts | 4 +- src/providers/openrouter.ts | 4 +- src/providers/router.test.ts | 2 +- src/providers/router.ts | 2 +- src/server.test.ts | 16 +++---- src/server.ts | 8 ++-- src/trace.ts | 2 +- src/tui.ts | 12 ++--- 103 files changed, 255 insertions(+), 255 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e351e0fe3..efe7b1b85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: const suffix = key === "." ? "" : key.startsWith("./") ? key.slice(1) : key; - const spec = `@bolt-foundry/gambit-core${suffix}`; + const spec = `@molt-foundry/gambit-core${suffix}`; const rel = value.startsWith("./") ? value.slice(2) : value; localImports[spec] = `./packages/gambit-core/${rel}`; } diff --git a/.github/workflows/e2e-manual.yml b/.github/workflows/e2e-manual.yml index 7753b3bae..d49a58df7 100644 --- a/.github/workflows/e2e-manual.yml +++ b/.github/workflows/e2e-manual.yml @@ -68,7 +68,7 @@ jobs: const suffix = key === "." ? "" : key.startsWith("./") ? key.slice(1) : key; - const spec = `@bolt-foundry/gambit-core${suffix}`; + const spec = `@molt-foundry/gambit-core${suffix}`; const rel = value.startsWith("./") ? value.slice(2) : value; localImports[spec] = `./packages/gambit-core/${rel}`; } diff --git a/.github/workflows/gambit-publish.yml b/.github/workflows/gambit-publish.yml index d48e2ed3b..40d595985 100644 --- a/.github/workflows/gambit-publish.yml +++ b/.github/workflows/gambit-publish.yml @@ -73,7 +73,7 @@ jobs: const suffix = key === "." ? "" : key.startsWith("./") ? key.slice(1) : key; - const spec = `@bolt-foundry/gambit-core${suffix}`; + const spec = `@molt-foundry/gambit-core${suffix}`; const rel = value.startsWith("./") ? value.slice(2) : value; localImports[spec] = `./packages/gambit-core/${rel}`; } @@ -122,7 +122,7 @@ jobs: if (!gambitName) throw new Error(`${gambitPath} missing name`); if (!coreName) throw new Error("packages/gambit-core/deno.json missing name"); const imports = gambit.imports ?? {}; - const prefix = "jsr:@bolt-foundry/gambit-core@"; + const prefix = "jsr:@molt-foundry/gambit-core@"; for (const value of Object.values(imports)) { if (typeof value !== "string") continue; if (!value.startsWith(prefix)) continue; @@ -296,8 +296,8 @@ jobs: const gambit = parse(await Deno.readTextFile(gambitPath)); gambit.version = version; const imports = gambit.imports ?? {}; - const prefix = "jsr:@bolt-foundry/gambit-core@"; - const coreKey = "@bolt-foundry/gambit-core"; + const prefix = "jsr:@molt-foundry/gambit-core@"; + const coreKey = "@molt-foundry/gambit-core"; const updated = {}; for (const [key, value] of Object.entries(imports)) { if ( @@ -339,8 +339,8 @@ jobs: })(); const init = JSON.parse(await Deno.readTextFile(initPath)); init.dependencies ??= {}; - init.dependencies["@bolt-foundry/gambit-core"] = - `npm:@bolt-foundry/gambit-core@${version}`; + init.dependencies["@molt-foundry/gambit-core"] = + `npm:@molt-foundry/gambit-core@${version}`; await Deno.writeTextFile(initPath, JSON.stringify(init, null, 2) + "\n"); const initDenoPathCandidates = [ @@ -362,8 +362,8 @@ jobs: if (!initDenoPath) throw new Deno.errors.NotFound(); const initDeno = JSON.parse(await Deno.readTextFile(initDenoPath)); initDeno.imports ??= {}; - initDeno.imports["@bolt-foundry/gambit-core"] = - `jsr:@bolt-foundry/gambit-core@${version}`; + initDeno.imports["@molt-foundry/gambit-core"] = + `jsr:@molt-foundry/gambit-core@${version}`; await Deno.writeTextFile( initDenoPath, JSON.stringify(initDeno, null, 2) + "\n", @@ -489,8 +489,8 @@ jobs: const gambit = parse(await Deno.readTextFile(gambitPath)); gambit.version = version; const imports = gambit.imports ?? {}; - const prefix = "jsr:@bolt-foundry/gambit-core@"; - const coreKey = "@bolt-foundry/gambit-core"; + const prefix = "jsr:@molt-foundry/gambit-core@"; + const coreKey = "@molt-foundry/gambit-core"; const updated = {}; for (const [key, value] of Object.entries(imports)) { if ( @@ -532,8 +532,8 @@ jobs: })(); const init = JSON.parse(await Deno.readTextFile(initPath)); init.dependencies ??= {}; - init.dependencies["@bolt-foundry/gambit-core"] = - `npm:@bolt-foundry/gambit-core@${version}`; + init.dependencies["@molt-foundry/gambit-core"] = + `npm:@molt-foundry/gambit-core@${version}`; await Deno.writeTextFile(initPath, JSON.stringify(init, null, 2) + "\n"); const initDenoPathCandidates = [ @@ -555,8 +555,8 @@ jobs: if (!initDenoPath) throw new Deno.errors.NotFound(); const initDeno = JSON.parse(await Deno.readTextFile(initDenoPath)); initDeno.imports ??= {}; - initDeno.imports["@bolt-foundry/gambit-core"] = - `jsr:@bolt-foundry/gambit-core@${version}`; + initDeno.imports["@molt-foundry/gambit-core"] = + `jsr:@molt-foundry/gambit-core@${version}`; await Deno.writeTextFile( initDenoPath, JSON.stringify(initDeno, null, 2) + "\n", diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml index 823217151..5a013e2ec 100644 --- a/.github/workflows/release-binaries.yml +++ b/.github/workflows/release-binaries.yml @@ -103,7 +103,7 @@ jobs: const suffix = key === "." ? "" : key.startsWith("./") ? key.slice(1) : key; - const spec = `@bolt-foundry/gambit-core${suffix}`; + const spec = `@molt-foundry/gambit-core${suffix}`; const rel = value.startsWith("./") ? value.slice(2) : value; localImports[spec] = `./packages/gambit-core/${rel}`; } diff --git a/AGENTS.md b/AGENTS.md index f554ffc2e..ae4f33f58 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,5 @@ You are Codebot, a helpful assistant that works with developers working on the -project github.com/bolt-foundry/gambit to navigate and contribute to our +project github.com/molt-foundry/gambit to navigate and contribute to our codebase. Gambit is an open source AI assistant orchestration and authoring framework diff --git a/README.md b/README.md index c17a015a7..cdf1945cb 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Run the CLI directly with npx (no install): ``` export OPENROUTER_API_KEY=... -npx @bolt-foundry/gambit demo +npx @molt-foundry/gambit demo ``` Downloads example files (hello decks plus the `examples/` gallery) and sets @@ -25,7 +25,7 @@ environment variables. To scaffold a starter project that you can customize, run: ``` -npx @bolt-foundry/gambit init my-project +npx @molt-foundry/gambit init my-project ``` This creates a structured skeleton (`decks/`, `actions/`, `graders/`, `tests/`, @@ -35,7 +35,7 @@ workflows immediately. Run an example in the terminal (`repl`): ``` -npx @bolt-foundry/gambit repl gambit/hello.deck.md +npx @molt-foundry/gambit repl gambit/hello.deck.md ``` This example just says "hello" and repeats your message back to you. @@ -43,7 +43,7 @@ This example just says "hello" and repeats your message back to you. Run an example in the browser (`serve`): ``` -npx @bolt-foundry/gambit serve gambit/hello.deck.md +npx @molt-foundry/gambit serve gambit/hello.deck.md open http://localhost:8000/debug ``` @@ -82,13 +82,13 @@ Use the CLI to run decks locally, stream output, and capture traces/state. Run with npx (no install): ``` -npx @bolt-foundry/gambit +npx @molt-foundry/gambit ``` Run a deck once: ``` -npx @bolt-foundry/gambit run --context --message +npx @molt-foundry/gambit run --context --message ``` > `--context` replaces the old `--init` flag. The CLI still accepts `--init` as @@ -97,25 +97,25 @@ npx @bolt-foundry/gambit run --context --message +npx @molt-foundry/gambit repl ``` Run a persona against a root deck (test bot): ``` -npx @bolt-foundry/gambit test-bot --test-deck +npx @molt-foundry/gambit test-bot --test-deck ``` Grade a saved session: ``` -npx @bolt-foundry/gambit grade --state +npx @molt-foundry/gambit grade --state ``` Start the Debug UI server: ``` -npx @bolt-foundry/gambit serve --port 8000 +npx @molt-foundry/gambit serve --port 8000 ``` Tracing and state:  @@ -131,13 +131,13 @@ The simulator is the local Debug UI that streams runs and renders traces. Run with npx (no install): ``` -npx @bolt-foundry/gambit +npx @molt-foundry/gambit ``` Start it: ``` -npx @bolt-foundry/gambit serve --port 8000 +npx @molt-foundry/gambit serve --port 8000 ``` Then open: @@ -165,7 +165,7 @@ Use the library when you want TypeScript decks/cards or custom compute steps. Import the helpers from JSR: ``` -import { defineDeck, defineCard } from "jsr:@bolt-foundry/gambit"; +import { defineDeck, defineCard } from "jsr:@molt-foundry/gambit"; ``` Define `contextSchema`/`responseSchema` with Zod to validate IO, and implement\ @@ -194,14 +194,14 @@ You are a concise assistant. Greet the user and echo the input. Run it: ``` -npx @bolt-foundry/gambit run ./hello_world.deck.md --context '"Gambit"' --stream +npx @molt-foundry/gambit run ./hello_world.deck.md --context '"Gambit"' --stream ``` ### Compute deck in TypeScript (no model call): `echo.deck.ts` ```typescript // echo.deck.ts -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "zod"; export default defineDeck({ @@ -217,7 +217,7 @@ export default defineDeck({ Run it: ``` -npx @bolt-foundry/gambit run ./echo.deck.ts --context '{"text":"ping"}' +npx @molt-foundry/gambit run ./echo.deck.ts --context '{"text":"ping"}' ``` ### Deck with a child action (calls a TypeScript tool): `agent_with_time.deck.md` @@ -239,7 +239,7 @@ And the child action: `get_time.deck.ts` ```typescript // get_time.deck.ts -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "zod"; export default defineDeck({ @@ -255,7 +255,7 @@ export default defineDeck({ Run it: ``` -npx @bolt-foundry/gambit run ./agent_with_time.deck.md --context '"hello"' --stream +npx @molt-foundry/gambit run ./agent_with_time.deck.md --context '"hello"' --stream ``` ### Respond flow demo (non-root decks + grading) @@ -265,7 +265,7 @@ payloads → graders? Use the example in `packages/gambit/examples/respond_flow/ ``` cd packages/gambit -npx @bolt-foundry/gambit serve ./examples/respond_flow/decks/root.deck.ts --port 8000 +npx @molt-foundry/gambit serve ./examples/respond_flow/decks/root.deck.ts --port 8000 ``` Then: @@ -286,23 +286,23 @@ Quickstart: ``` export OPENROUTER_API_KEY=... -deno run -A jsr:@bolt-foundry/gambit/cli demo +deno run -A jsr:@molt-foundry/gambit/cli demo ``` Starter project: ``` -deno run -A jsr:@bolt-foundry/gambit/cli init my-project +deno run -A jsr:@molt-foundry/gambit/cli init my-project ``` Run a deck: ``` -deno run -A jsr:@bolt-foundry/gambit/cli run --context --message +deno run -A jsr:@molt-foundry/gambit/cli run --context --message ``` Start the Debug UI: ``` -deno run -A jsr:@bolt-foundry/gambit/cli serve --port 8000 +deno run -A jsr:@molt-foundry/gambit/cli serve --port 8000 ``` diff --git a/bin/gambit.cjs b/bin/gambit.cjs index 467cc9afe..11c5ab286 100644 --- a/bin/gambit.cjs +++ b/bin/gambit.cjs @@ -56,7 +56,7 @@ const getPlatformAsset = () => { const getCacheDir = (version) => { const cacheRoot = process.env.XDG_CACHE_HOME || (process.env.HOME ? path.join(process.env.HOME, ".cache") : os.tmpdir()); - return path.join(cacheRoot, "bolt-foundry", "gambit", version); + return path.join(cacheRoot, "molt-foundry", "gambit", version); }; const request = (url, redirectCount = 0) => @@ -173,7 +173,7 @@ const main = async () => { } const baseUrl = process.env.GAMBIT_BINARY_BASE_URL || - `https://github.com/bolt-foundry/gambit/releases/download/v${version}`; + `https://github.com/molt-foundry/gambit/releases/download/v${version}`; const binaryUrl = process.env.GAMBIT_BINARY_URL || `${baseUrl}/${assetName}.gz`; const checksumUrl = process.env.GAMBIT_BINARY_CHECKSUM_URL || diff --git a/deno.jsonc b/deno.jsonc index 2049e42d7..31effccb9 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,12 +1,12 @@ { "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", - "name": "@bolt-foundry/gambit", + "name": "@molt-foundry/gambit", "description": "Agent harness framework for building, running, and verifying LLM workflows in Markdown and code.", "version": "0.8.3", "license": "Apache-2.0", "repository": { "type": "git", - "url": "git+https://github.com/bolt-foundry/gambit.git" + "url": "git+https://github.com/molt-foundry/gambit.git" }, "exports": { ".": "./mod.ts", @@ -39,7 +39,7 @@ "recommended" ], "exclude": [ - "bolt-foundry/no-parent-directory-traversal", + "molt-foundry/no-parent-directory-traversal", "no-external-import", "no-unversioned-import" ], @@ -67,7 +67,7 @@ "@std/front_matter": "jsr:@std/front_matter@^0.224.4", "@std/tar": "jsr:@std/tar@^0.1.9", "@std/toml": "jsr:@std/toml@^1.0.9", - "@bolt-foundry/gambit-core": "./packages/gambit-core/mod.ts", + "@molt-foundry/gambit-core": "./packages/gambit-core/mod.ts", "playwright-core": "npm:playwright-core@^1.57.0", // dev "zod": "npm:zod@^3.23.8", "zod-to-json-schema": "npm:zod-to-json-schema@^3.23.0", @@ -89,7 +89,7 @@ ] }, "deploy": { - "org": "boltfoundry", + "org": "moltfoundry", "app": "gambit-demo" } } diff --git a/docs/external/getting-started/README.md b/docs/external/getting-started/README.md index b469daff8..4784ef357 100644 --- a/docs/external/getting-started/README.md +++ b/docs/external/getting-started/README.md @@ -5,11 +5,11 @@ Use this page to get a fast, developer-first path from install to first run. ## Quickstart path 1. Run the demo to generate example decks and configs: - - `npx @bolt-foundry/gambit demo` + - `npx @molt-foundry/gambit demo` 2. Run a deck in the terminal: - - `npx @bolt-foundry/gambit run gambit/hello.deck.md --context '"Gambit"'` + - `npx @molt-foundry/gambit run gambit/hello.deck.md --context '"Gambit"'` 3. Open the debug UI to inspect traces: - - `npx @bolt-foundry/gambit serve gambit/hello.deck.md --port 8000` + - `npx @molt-foundry/gambit serve gambit/hello.deck.md --port 8000` - Visit `http://localhost:8000/debug` ## Learn by doing diff --git a/docs/external/guides/authoring.md b/docs/external/guides/authoring.md index 8abb02643..72ed8d024 100644 --- a/docs/external/guides/authoring.md +++ b/docs/external/guides/authoring.md @@ -47,7 +47,7 @@ Rules: TypeScript compute deck (`.deck.ts`): ```ts -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "zod"; export default defineDeck({ diff --git a/docs/external/reference/openai-compat.md b/docs/external/reference/openai-compat.md index 88582293c..5e60599f9 100644 --- a/docs/external/reference/openai-compat.md +++ b/docs/external/reference/openai-compat.md @@ -19,7 +19,7 @@ Use `chatCompletionsWithDeck`: import { chatCompletionsWithDeck, createOpenRouterProvider, -} from "jsr:@bolt-foundry/gambit"; +} from "jsr:@molt-foundry/gambit"; const provider = createOpenRouterProvider({ apiKey: Deno.env.get("OPENROUTER_API_KEY")!, diff --git a/examples/dev/simpsons_explainer_notest/README.md b/examples/dev/simpsons_explainer_notest/README.md index 471f07d56..aa7e8db2c 100644 --- a/examples/dev/simpsons_explainer_notest/README.md +++ b/examples/dev/simpsons_explainer_notest/README.md @@ -18,7 +18,7 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit@^0.8.3/cli serve root.deck.md +deno run -A jsr:@molt-foundry/gambit@^0.8.3/cli serve root.deck.md ``` ## Start the assistant (UI) diff --git a/examples/dev/simpsons_explainer_user/README.md b/examples/dev/simpsons_explainer_user/README.md index 33415b5e2..bfd2ed1c1 100644 --- a/examples/dev/simpsons_explainer_user/README.md +++ b/examples/dev/simpsons_explainer_user/README.md @@ -18,7 +18,7 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit@^0.8.3/cli serve root.deck.md +deno run -A jsr:@molt-foundry/gambit@^0.8.3/cli serve root.deck.md ``` ## Run a test bot (UI) diff --git a/examples/dev/simpsons_explainer_user_notest/README.md b/examples/dev/simpsons_explainer_user_notest/README.md index 26bf3588d..eed13b1d4 100644 --- a/examples/dev/simpsons_explainer_user_notest/README.md +++ b/examples/dev/simpsons_explainer_user_notest/README.md @@ -19,7 +19,7 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit@^0.8.3/cli serve root.deck.md +deno run -A jsr:@molt-foundry/gambit@^0.8.3/cli serve root.deck.md ``` ## Start the assistant (UI) diff --git a/mod.ts b/mod.ts index bfea422c7..a9a442992 100644 --- a/mod.ts +++ b/mod.ts @@ -4,35 +4,35 @@ * @module */ /** Define a reusable card with shared behavior, tools, or guardrails. */ -export { defineCard } from "@bolt-foundry/gambit-core"; +export { defineCard } from "@molt-foundry/gambit-core"; /** Define a deck, the primary unit of execution. */ -export { defineDeck } from "@bolt-foundry/gambit-core"; +export { defineDeck } from "@molt-foundry/gambit-core"; /** Action deck definition shape. */ -export type { ActionDeckDefinition } from "@bolt-foundry/gambit-core"; +export type { ActionDeckDefinition } from "@molt-foundry/gambit-core"; /** Card definition shape. */ -export type { CardDefinition } from "@bolt-foundry/gambit-core"; +export type { CardDefinition } from "@molt-foundry/gambit-core"; /** Deck definition shape. */ -export type { DeckDefinition } from "@bolt-foundry/gambit-core"; +export type { DeckDefinition } from "@molt-foundry/gambit-core"; /** Reference to another deck. */ -export type { DeckReferenceDefinition } from "@bolt-foundry/gambit-core"; +export type { DeckReferenceDefinition } from "@molt-foundry/gambit-core"; /** Execution context passed to decks. */ -export type { ExecutionContext } from "@bolt-foundry/gambit-core"; +export type { ExecutionContext } from "@molt-foundry/gambit-core"; /** Grader deck definition shape. */ -export type { GraderDeckDefinition } from "@bolt-foundry/gambit-core"; +export type { GraderDeckDefinition } from "@molt-foundry/gambit-core"; /** Guardrails definition and hooks. */ -export type { Guardrails } from "@bolt-foundry/gambit-core"; +export type { Guardrails } from "@molt-foundry/gambit-core"; /** JSON-serializable value type used throughout Gambit. */ -export type { JSONValue } from "@bolt-foundry/gambit-core"; +export type { JSONValue } from "@molt-foundry/gambit-core"; /** Model provider interface for LLM backends. */ -export type { ModelProvider } from "@bolt-foundry/gambit-core"; +export type { ModelProvider } from "@molt-foundry/gambit-core"; /** Test deck definition shape. */ -export type { TestDeckDefinition } from "@bolt-foundry/gambit-core"; +export type { TestDeckDefinition } from "@molt-foundry/gambit-core"; /** Check if a value is an explicit end-of-run signal. */ -export { isGambitEndSignal } from "@bolt-foundry/gambit-core"; +export { isGambitEndSignal } from "@molt-foundry/gambit-core"; /** Run a deck and return its execution result. */ -export { runDeck } from "@bolt-foundry/gambit-core"; +export { runDeck } from "@molt-foundry/gambit-core"; /** Signal for explicitly ending a Gambit run. */ -export type { GambitEndSignal } from "@bolt-foundry/gambit-core"; +export type { GambitEndSignal } from "@molt-foundry/gambit-core"; /** OpenAI Chat Completions compatibility helper for a deck. */ export { chatCompletionsWithDeck } from "./src/openai_compat.ts"; /** OpenAI-compatible request payload. */ @@ -40,11 +40,11 @@ export type { ChatCompletionsRequest } from "./src/openai_compat.ts"; /** OpenAI-compatible response payload. */ export type { ChatCompletionsResponse } from "./src/openai_compat.ts"; /** Render a deck to a human-readable outline or debug view. */ -export { renderDeck } from "@bolt-foundry/gambit-core"; +export { renderDeck } from "@molt-foundry/gambit-core"; /** Options for deck rendering. */ -export type { RenderDeckOptions } from "@bolt-foundry/gambit-core"; +export type { RenderDeckOptions } from "@molt-foundry/gambit-core"; /** Result data from rendering a deck. */ -export type { RenderDeckResult } from "@bolt-foundry/gambit-core"; +export type { RenderDeckResult } from "@molt-foundry/gambit-core"; /** Provider factory for OpenRouter-backed model calls. */ export { createOpenRouterProvider } from "./src/providers/openrouter.ts"; /** Provider factory for Ollama-backed model calls. */ diff --git a/packages/gambit-core/README.md b/packages/gambit-core/README.md index f149ff342..c6148917e 100644 --- a/packages/gambit-core/README.md +++ b/packages/gambit-core/README.md @@ -1,21 +1,21 @@ -# @bolt-foundry/gambit-core +# @molt-foundry/gambit-core Core runtime, definitions, and utilities for building Gambit decks outside of the CLI. It includes the loader for Markdown/TypeScript decks, guardrail-aware execution, and helpers for persisting local run state. The -[`@bolt-foundry/gambit`](../gambit/README.md) package re-exports these APIs plus +[`@molt-foundry/gambit`](../gambit/README.md) package re-exports these APIs plus the CLI, but `gambit-core` stays focused on the authoring/runtime pieces that can live in any host. > **Gambit vs. Gambit Core** > -> `@bolt-foundry/gambit-core` is the lightweight runtime + authoring toolkit +> `@molt-foundry/gambit-core` is the lightweight runtime + authoring toolkit > (deck definitions, loaders, runtime, provider helpers). -> [`@bolt-foundry/gambit`](../gambit/README.md) bundles those same exports +> [`@molt-foundry/gambit`](../gambit/README.md) bundles those same exports > **plus** the CLI, simulator server, and higher-level developer experience. If > you need just the runtime inside another application or service, depend on > `gambit-core`. If you also want the CLI commands (`run`, `serve`, `repl`, -> etc.) stick with [`@bolt-foundry/gambit`](../gambit/README.md), which already +> etc.) stick with [`@molt-foundry/gambit`](../gambit/README.md), which already > depends on this package. ## Highlights @@ -37,22 +37,22 @@ can live in any host. ### Deno ``` -deno add jsr:@bolt-foundry/gambit-core +deno add jsr:@molt-foundry/gambit-core ``` Import directly from JSR: ``` -import { defineDeck, runDeck } from "jsr:@bolt-foundry/gambit-core"; +import { defineDeck, runDeck } from "jsr:@molt-foundry/gambit-core"; ``` ### Node.js / bundlers ``` -npm install @bolt-foundry/gambit-core +npm install @molt-foundry/gambit-core ``` -All exports are ESM and align with what the CLI package (`@bolt-foundry/gambit`) +All exports are ESM and align with what the CLI package (`@molt-foundry/gambit`) surfaces. Use any runtime that supports modern ES modules (Node 18+, Bun, Deno, etc.). @@ -81,7 +81,7 @@ when scripting tooling or writing custom providers. ``` // hello.deck.ts -import { defineDeck } from "jsr:@bolt-foundry/gambit-core"; +import { defineDeck } from "jsr:@molt-foundry/gambit-core"; import { z } from "zod"; export default defineDeck({ @@ -102,7 +102,7 @@ You are a helpful assistant that greets the user by name. Cards look similar: ``` -import { defineCard } from "jsr:@bolt-foundry/gambit-core"; +import { defineCard } from "jsr:@molt-foundry/gambit-core"; import { z } from "zod"; export default defineCard({ @@ -116,11 +116,11 @@ export default defineCard({ The runtime loads the deck (Markdown or TS) and steps through each pass. Provide any `ModelProvider` implementation; the OpenRouter adapter lives in -`@bolt-foundry/gambit`. +`@molt-foundry/gambit`. ``` -import { runDeck } from "jsr:@bolt-foundry/gambit-core"; -import { createOpenRouterProvider } from "jsr:@bolt-foundry/gambit"; +import { runDeck } from "jsr:@molt-foundry/gambit-core"; +import { createOpenRouterProvider } from "jsr:@molt-foundry/gambit"; const provider = createOpenRouterProvider({ apiKey: Deno.env.get("OPENROUTER_API_KEY")!, @@ -189,7 +189,7 @@ text for built-in tools like `gambit_context`, `gambit_respond`, and - **Request rendering**: [`renderDeck`](src/render.ts) merges an existing Chat Completions request with the deck’s system prompt and tool schema, so you can debug what will actually reach the model or feed it into another orchestrator. -- **Model providers**: adapters live in `@bolt-foundry/gambit` (see +- **Model providers**: adapters live in `@molt-foundry/gambit` (see `packages/gambit/src/providers/openrouter.ts`). Implement your own provider by conforming to the `responses()` signature in `ModelProvider`. - **Constants**: diff --git a/packages/gambit-core/deno.json b/packages/gambit-core/deno.json index 595f255ad..255f968a0 100644 --- a/packages/gambit-core/deno.json +++ b/packages/gambit-core/deno.json @@ -1,11 +1,11 @@ { - "name": "@bolt-foundry/gambit-core", + "name": "@molt-foundry/gambit-core", "version": "0.8.3", "description": "Core runtime for Gambit decks.", "license": "Apache-2.0", "repository": { "type": "git", - "url": "git+https://github.com/bolt-foundry/gambit.git" + "url": "git+https://github.com/molt-foundry/gambit.git" }, "exports": { ".": "./mod.ts" @@ -22,7 +22,7 @@ "recommended" ], "exclude": [ - "bolt-foundry/no-parent-directory-traversal" + "molt-foundry/no-parent-directory-traversal" ] } }, diff --git a/packages/gambit-core/scripts/build_npm.ts b/packages/gambit-core/scripts/build_npm.ts index a7fcb7c24..b97cedac9 100644 --- a/packages/gambit-core/scripts/build_npm.ts +++ b/packages/gambit-core/scripts/build_npm.ts @@ -62,10 +62,10 @@ await build({ license: pkg.license ?? "Apache-2.0", repository: { type: "git", - url: "git+https://github.com/bolt-foundry/gambit.git", + url: "git+https://github.com/molt-foundry/gambit.git", }, - bugs: { url: "https://github.com/bolt-foundry/gambit/issues" }, - homepage: "https://github.com/bolt-foundry/gambit", + bugs: { url: "https://github.com/molt-foundry/gambit/issues" }, + homepage: "https://github.com/molt-foundry/gambit", }, compilerOptions: { lib: ["ESNext"], diff --git a/scaffolds/demo/deno.json b/scaffolds/demo/deno.json index 0b51e0c6a..f4ccf9b41 100644 --- a/scaffolds/demo/deno.json +++ b/scaffolds/demo/deno.json @@ -1,5 +1,5 @@ { "imports": { - "@bolt-foundry/gambit-core": "../../gambit-core/mod.ts" + "@molt-foundry/gambit-core": "../../gambit-core/mod.ts" } } diff --git a/scaffolds/demo/examples/advanced/agent_with_multi_actions/README.md b/scaffolds/demo/examples/advanced/agent_with_multi_actions/README.md index 071dc429f..9d13667d3 100644 --- a/scaffolds/demo/examples/advanced/agent_with_multi_actions/README.md +++ b/scaffolds/demo/examples/advanced/agent_with_multi_actions/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -20,13 +20,13 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit/cli serve ./agent_with_multi_actions.deck.md +deno run -A jsr:@molt-foundry/gambit/cli serve ./agent_with_multi_actions.deck.md ``` ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./agent_with_multi_actions.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./agent_with_multi_actions.deck.md \ --message '"translate bonjour to English"' --stream ``` diff --git a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/basic_math.deck.ts b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/basic_math.deck.ts index aa675353c..fc2adf385 100644 --- a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/basic_math.deck.ts +++ b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/basic_math.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const opEnum = z.enum(["add", "subtract", "multiply", "divide"]); diff --git a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/echo_input.deck.ts b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/echo_input.deck.ts index 932be655f..b9cd0aa38 100644 --- a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/echo_input.deck.ts +++ b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/echo_input.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/get_time.deck.ts b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/get_time.deck.ts index 5a9e338b5..ba3550c4b 100644 --- a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/get_time.deck.ts +++ b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/get_time.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/random_number.deck.ts b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/random_number.deck.ts index bb6db1196..bf39d0148 100644 --- a/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/random_number.deck.ts +++ b/scaffolds/demo/examples/advanced/agent_with_multi_actions/actions/decks/random_number.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/agent_with_typescript/README.md b/scaffolds/demo/examples/advanced/agent_with_typescript/README.md index c4d6be110..a47e35fb5 100644 --- a/scaffolds/demo/examples/advanced/agent_with_typescript/README.md +++ b/scaffolds/demo/examples/advanced/agent_with_typescript/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -20,13 +20,13 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit/cli serve ./agent_with_typescript.deck.md +deno run -A jsr:@molt-foundry/gambit/cli serve ./agent_with_typescript.deck.md ``` ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./agent_with_typescript.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./agent_with_typescript.deck.md \ --message '"hi"' --stream ``` diff --git a/scaffolds/demo/examples/advanced/agent_with_typescript/get_time.deck.ts b/scaffolds/demo/examples/advanced/agent_with_typescript/get_time.deck.ts index 5a9e338b5..ba3550c4b 100644 --- a/scaffolds/demo/examples/advanced/agent_with_typescript/get_time.deck.ts +++ b/scaffolds/demo/examples/advanced/agent_with_typescript/get_time.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/arena_chatbot/README.md b/scaffolds/demo/examples/advanced/arena_chatbot/README.md index 7aac8bbcc..5c9295135 100644 --- a/scaffolds/demo/examples/advanced/arena_chatbot/README.md +++ b/scaffolds/demo/examples/advanced/arena_chatbot/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -20,13 +20,13 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit/cli serve ./active.deck.md +deno run -A jsr:@molt-foundry/gambit/cli serve ./active.deck.md ``` ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./active.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./active.deck.md \ --message '"Tell me one tip about Pikachu"' --stream ``` diff --git a/scaffolds/demo/examples/advanced/cli_cold_emailer/README.md b/scaffolds/demo/examples/advanced/cli_cold_emailer/README.md index 9fcd302ec..fdda71f2c 100644 --- a/scaffolds/demo/examples/advanced/cli_cold_emailer/README.md +++ b/scaffolds/demo/examples/advanced/cli_cold_emailer/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -18,7 +18,7 @@ export OPENROUTER_API_KEY="your-key-here" ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./cold_emailer.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./cold_emailer.deck.md \ --context "$(cat ./sample_input.json)" --stream ``` diff --git a/scaffolds/demo/examples/advanced/cli_cold_emailer/log_revision_plan.deck.ts b/scaffolds/demo/examples/advanced/cli_cold_emailer/log_revision_plan.deck.ts index b0fc39509..5374bf53e 100644 --- a/scaffolds/demo/examples/advanced/cli_cold_emailer/log_revision_plan.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_cold_emailer/log_revision_plan.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/cli_cold_emailer/lookup_profile.deck.ts b/scaffolds/demo/examples/advanced/cli_cold_emailer/lookup_profile.deck.ts index 7f9695a84..4210c2b13 100644 --- a/scaffolds/demo/examples/advanced/cli_cold_emailer/lookup_profile.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_cold_emailer/lookup_profile.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; type Profile = { diff --git a/scaffolds/demo/examples/advanced/cli_cold_emailer/send_email.deck.ts b/scaffolds/demo/examples/advanced/cli_cold_emailer/send_email.deck.ts index 54781b782..bf730c60a 100644 --- a/scaffolds/demo/examples/advanced/cli_cold_emailer/send_email.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_cold_emailer/send_email.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/cli_handlers_md/README.md b/scaffolds/demo/examples/advanced/cli_handlers_md/README.md index bd7032deb..7d37cb4c6 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_md/README.md +++ b/scaffolds/demo/examples/advanced/cli_handlers_md/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -18,7 +18,7 @@ export OPENROUTER_API_KEY="your-key-here" ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./handlers_md.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./handlers_md.deck.md \ --message '"please wait a moment"' --stream ``` diff --git a/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/flaky_action.deck.ts b/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/flaky_action.deck.ts index 5e88caf66..0c75a2132 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/flaky_action.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/flaky_action.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/slow_action.deck.ts b/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/slow_action.deck.ts index d7aff73f3..3ecb5fe9d 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/slow_action.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_handlers_md/actions/decks/slow_action.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/cli_handlers_ts/README.md b/scaffolds/demo/examples/advanced/cli_handlers_ts/README.md index 724bdff85..ea1eac1fc 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_ts/README.md +++ b/scaffolds/demo/examples/advanced/cli_handlers_ts/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -18,7 +18,7 @@ export OPENROUTER_API_KEY="your-key-here" ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./handlers_ts.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./handlers_ts.deck.md \ --message '"please wait a moment"' --stream ``` diff --git a/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/flaky_action.deck.ts b/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/flaky_action.deck.ts index ff5ce865f..26582b339 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/flaky_action.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/flaky_action.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/slow_action.deck.ts b/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/slow_action.deck.ts index 1b90290ac..5eabb6ad8 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/slow_action.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_handlers_ts/actions/decks/slow_action.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_busy.ts b/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_busy.ts index 94933adb1..bea291f9e 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_busy.ts +++ b/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_busy.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const sourceSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_error.ts b/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_error.ts index 9da3eab63..f96a6911e 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_error.ts +++ b/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_error.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const sourceSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_idle.ts b/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_idle.ts index af256d2c3..d2adddc4f 100644 --- a/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_idle.ts +++ b/scaffolds/demo/examples/advanced/cli_handlers_ts/handlers/on_idle.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/cli_internal_monolog/README.md b/scaffolds/demo/examples/advanced/cli_internal_monolog/README.md index 6f23ec3bb..3deb06a9c 100644 --- a/scaffolds/demo/examples/advanced/cli_internal_monolog/README.md +++ b/scaffolds/demo/examples/advanced/cli_internal_monolog/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -18,7 +18,7 @@ export OPENROUTER_API_KEY="your-key-here" ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./internal_monolog_parent.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./internal_monolog_parent.deck.md \ --message '"What is the capital of France?"' --stream ``` diff --git a/scaffolds/demo/examples/advanced/cli_internal_monolog/lookup_fact.deck.ts b/scaffolds/demo/examples/advanced/cli_internal_monolog/lookup_fact.deck.ts index c696fd132..354b95578 100644 --- a/scaffolds/demo/examples/advanced/cli_internal_monolog/lookup_fact.deck.ts +++ b/scaffolds/demo/examples/advanced/cli_internal_monolog/lookup_fact.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/patient_swapper/README.md b/scaffolds/demo/examples/advanced/patient_swapper/README.md index e4253dce2..b7ffb41c4 100644 --- a/scaffolds/demo/examples/advanced/patient_swapper/README.md +++ b/scaffolds/demo/examples/advanced/patient_swapper/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -18,7 +18,7 @@ export OPENROUTER_API_KEY="your-key-here" ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./patient_swapper.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./patient_swapper.deck.md \ --context "$(cat ./sample_input.json)" --stream ``` diff --git a/scaffolds/demo/examples/advanced/patient_swapper/find_patient_id.deck.ts b/scaffolds/demo/examples/advanced/patient_swapper/find_patient_id.deck.ts index ee0032525..42000be7e 100644 --- a/scaffolds/demo/examples/advanced/patient_swapper/find_patient_id.deck.ts +++ b/scaffolds/demo/examples/advanced/patient_swapper/find_patient_id.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { lookupSchema } from "./schemas/patient_swapper_input.zod.ts"; diff --git a/scaffolds/demo/examples/advanced/patient_swapper/followup_task.deck.ts b/scaffolds/demo/examples/advanced/patient_swapper/followup_task.deck.ts index b7bad16e7..3cbbeea26 100644 --- a/scaffolds/demo/examples/advanced/patient_swapper/followup_task.deck.ts +++ b/scaffolds/demo/examples/advanced/patient_swapper/followup_task.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/patient_swapper/update_patient_field.deck.ts b/scaffolds/demo/examples/advanced/patient_swapper/update_patient_field.deck.ts index 3c1c0c83b..4e5f0d5e0 100644 --- a/scaffolds/demo/examples/advanced/patient_swapper/update_patient_field.deck.ts +++ b/scaffolds/demo/examples/advanced/patient_swapper/update_patient_field.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; function escapeSql(value: string): string { diff --git a/scaffolds/demo/examples/advanced/pokemon_advice/root.deck.ts b/scaffolds/demo/examples/advanced/pokemon_advice/root.deck.ts index 1440d121d..b093b0914 100644 --- a/scaffolds/demo/examples/advanced/pokemon_advice/root.deck.ts +++ b/scaffolds/demo/examples/advanced/pokemon_advice/root.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/pokemon_advice/schema_form.deck.ts b/scaffolds/demo/examples/advanced/pokemon_advice/schema_form.deck.ts index 5d8e76b44..e109536c3 100644 --- a/scaffolds/demo/examples/advanced/pokemon_advice/schema_form.deck.ts +++ b/scaffolds/demo/examples/advanced/pokemon_advice/schema_form.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/advanced/simpsons_explainer/README.md b/scaffolds/demo/examples/advanced/simpsons_explainer/README.md index b357a1a33..a30ef2bd1 100644 --- a/scaffolds/demo/examples/advanced/simpsons_explainer/README.md +++ b/scaffolds/demo/examples/advanced/simpsons_explainer/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -20,7 +20,7 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit@^0.5.3-dev/cli serve demo.deck.md +deno run -A jsr:@molt-foundry/gambit@^0.5.3-dev/cli serve demo.deck.md ``` ## Run a test bot (UI) diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/README.md b/scaffolds/demo/examples/advanced/voice_front_desk/README.md index b3a072c92..e0d6c4cc4 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/README.md +++ b/scaffolds/demo/examples/advanced/voice_front_desk/README.md @@ -2,7 +2,7 @@ This folder is self-contained and can run outside the bfmono repo as long as Deno is installed and the machine has internet access (to fetch -`jsr:@bolt-foundry/gambit`). +`jsr:@molt-foundry/gambit`). ## Prereqs @@ -20,13 +20,13 @@ export OPENROUTER_API_KEY="your-key-here" From this folder: ```bash -deno run -A jsr:@bolt-foundry/gambit/cli serve ./decks/root.deck.md +deno run -A jsr:@molt-foundry/gambit/cli serve ./decks/root.deck.md ``` ## Run in the CLI ```bash -deno run -A jsr:@bolt-foundry/gambit/cli run ./decks/root.deck.md \ +deno run -A jsr:@molt-foundry/gambit/cli run ./decks/root.deck.md \ --context "$(cat ./sample_input.json)" \ --message '"Hi, this is Nina. I need to move my physical."' --stream ``` diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/acquire_new_patient.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/acquire_new_patient.deck.ts index 8387a1bd3..23b2b56a0 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/acquire_new_patient.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/acquire_new_patient.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contactSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/appointment_lookup.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/appointment_lookup.deck.ts index 8ba5ddc7d..2196268fb 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/appointment_lookup.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/appointment_lookup.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/billing_support.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/billing_support.deck.ts index 1a36a7ec3..a18b7411a 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/billing_support.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/billing_support.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/confirm_appointment.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/confirm_appointment.deck.ts index 7a0f8b90b..6739faa25 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/confirm_appointment.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/confirm_appointment.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/frontdesk_faq.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/frontdesk_faq.deck.ts index 00fd05cd2..fca8c3cfe 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/frontdesk_faq.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/frontdesk_faq.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/insurance_check.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/insurance_check.deck.ts index f29d43aed..dc0343f7c 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/insurance_check.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/insurance_check.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const insuranceDetails = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/log_message.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/log_message.deck.ts index ee03f6461..b14846652 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/log_message.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/log_message.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import logMessageInput from "../schemas/log_message_input.zod.ts"; import logMessageOutput from "../schemas/log_message_output.zod.ts"; diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/patient_lookup.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/patient_lookup.deck.ts index 1539cfac6..3d44f62e3 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/patient_lookup.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/patient_lookup.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/refill_ops.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/refill_ops.deck.ts index f37c08ea9..663cc5267 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/refill_ops.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/refill_ops.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/results_lookup.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/results_lookup.deck.ts index 465d2ea17..aae1c354d 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/results_lookup.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/results_lookup.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/scheduling_ops.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/scheduling_ops.deck.ts index d8819b58e..08b93c76f 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/scheduling_ops.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/scheduling_ops.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import lookupScheduleInput from "../schemas/lookup_schedule_input.zod.ts"; import lookupScheduleOutput from "../schemas/lookup_schedule_output.zod.ts"; diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/actions/transfer_request.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/actions/transfer_request.deck.ts index 4e7e70934..e9e6b6b70 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/actions/transfer_request.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/actions/transfer_request.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({ diff --git a/scaffolds/demo/examples/advanced/voice_front_desk/decks/error_simulator.deck.ts b/scaffolds/demo/examples/advanced/voice_front_desk/decks/error_simulator.deck.ts index 5fc10e0cb..09ad54bb4 100644 --- a/scaffolds/demo/examples/advanced/voice_front_desk/decks/error_simulator.deck.ts +++ b/scaffolds/demo/examples/advanced/voice_front_desk/decks/error_simulator.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; export default defineDeck({ diff --git a/scaffolds/demo/examples/faq-bot-example/actions/load_faq_dataset.deck.ts b/scaffolds/demo/examples/faq-bot-example/actions/load_faq_dataset.deck.ts index 6694eee68..0dafc166b 100644 --- a/scaffolds/demo/examples/faq-bot-example/actions/load_faq_dataset.deck.ts +++ b/scaffolds/demo/examples/faq-bot-example/actions/load_faq_dataset.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; const contextSchema = z.object({}); diff --git a/scaffolds/demo/package.json b/scaffolds/demo/package.json index ce3efc255..b5f1a2b84 100644 --- a/scaffolds/demo/package.json +++ b/scaffolds/demo/package.json @@ -2,7 +2,7 @@ "name": "gambit-init", "private": true, "dependencies": { - "@bolt-foundry/gambit-core": "npm:@bolt-foundry/gambit-core@^0.6.7", + "@molt-foundry/gambit-core": "npm:@molt-foundry/gambit-core@^0.6.7", "zod": "^3.23.8" } } diff --git a/scaffolds/init/README.md b/scaffolds/init/README.md index fc66ea749..7ea2c963c 100644 --- a/scaffolds/init/README.md +++ b/scaffolds/init/README.md @@ -16,13 +16,13 @@ workspace with opinionated folders, ready for your own decks/actions/graders. 3. Run it in the terminal (or use `npm run repl -- decks/my_first.deck.md`): ``` - npx @bolt-foundry/gambit repl decks/my_first.deck.md + npx @molt-foundry/gambit repl decks/my_first.deck.md ``` 4. Explore the debug UI (`npm run serve -- decks/my_first.deck.md` works too): ``` - npx @bolt-foundry/gambit serve decks/my_first.deck.md + npx @molt-foundry/gambit serve decks/my_first.deck.md open http://localhost:8000/debug ``` diff --git a/scaffolds/init/decks/README.md b/scaffolds/init/decks/README.md index ed1039647..5589a4f51 100644 --- a/scaffolds/init/decks/README.md +++ b/scaffolds/init/decks/README.md @@ -11,4 +11,4 @@ Suggested next steps: 1. Tweak `root.deck.md` or duplicate it into a new file (e.g. `decks/my_first.deck.md`) to experiment. 2. Reference supporting actions in `../actions/` and schemas in `../schemas/`. -3. Run it via `npx @bolt-foundry/gambit repl decks/my_first.deck.md`. +3. Run it via `npx @molt-foundry/gambit repl decks/my_first.deck.md`. diff --git a/scaffolds/init/deno.json b/scaffolds/init/deno.json index 0b51e0c6a..f4ccf9b41 100644 --- a/scaffolds/init/deno.json +++ b/scaffolds/init/deno.json @@ -1,5 +1,5 @@ { "imports": { - "@bolt-foundry/gambit-core": "../../gambit-core/mod.ts" + "@molt-foundry/gambit-core": "../../gambit-core/mod.ts" } } diff --git a/scaffolds/init/package.json b/scaffolds/init/package.json index f86685dd8..d3d8078ec 100644 --- a/scaffolds/init/package.json +++ b/scaffolds/init/package.json @@ -2,9 +2,9 @@ "name": "gambit-starter", "private": true, "scripts": { - "repl": "npx @bolt-foundry/gambit repl", - "serve": "npx @bolt-foundry/gambit serve", - "test": "npx @bolt-foundry/gambit test-bot" + "repl": "npx @molt-foundry/gambit repl", + "serve": "npx @molt-foundry/gambit serve", + "test": "npx @molt-foundry/gambit test-bot" }, "dependencies": {} } diff --git a/scaffolds/init/tests/README.md b/scaffolds/init/tests/README.md index 2f8ba5b57..605449893 100644 --- a/scaffolds/init/tests/README.md +++ b/scaffolds/init/tests/README.md @@ -9,5 +9,5 @@ Typical flow: 1. Write a persona file (e.g. `tests/new_patient.deck.md`) that exercises a deck. 2. Run - `npx @bolt-foundry/gambit test-bot decks/ --test-deck tests/`. + `npx @molt-foundry/gambit test-bot decks/ --test-deck tests/`. 3. Capture regressions before shipping changes. diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index dd53ce289..045ede904 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -92,7 +92,7 @@ const coreConfig = parse(await Deno.readTextFile(coreConfigPath)) as { version?: string; exports?: Record; }; -const corePackageName = coreConfig.name ?? "@bolt-foundry/gambit-core"; +const corePackageName = coreConfig.name ?? "@molt-foundry/gambit-core"; const coreVersion = coreConfig.version ?? ""; const coreLocalOverride = Deno.env.get("GAMBIT_CORE_NPM_PATH"); let coreVersionRange = coreVersion ? `^${coreVersion}` : undefined; @@ -148,7 +148,7 @@ await Deno.writeTextFile( JSON.stringify({ ...denoConfig, imports: mergedImports }, null, 2), ); -const specPattern = /["'`](@bolt-foundry\/gambit-core[^"'`]*)["'`]/g; +const specPattern = /["'`](@molt-foundry\/gambit-core[^"'`]*)["'`]/g; const sourceExtensions = [".ts", ".tsx", ".mts", ".cts"]; const testSuffixes = [".test.ts", ".test.tsx", ".spec.ts", ".spec.tsx"]; @@ -255,10 +255,10 @@ try { }, repository: { type: "git", - url: "git+https://github.com/bolt-foundry/gambit.git", + url: "git+https://github.com/molt-foundry/gambit.git", }, - bugs: { url: "https://github.com/bolt-foundry/gambit/issues" }, - homepage: "https://github.com/bolt-foundry/gambit", + bugs: { url: "https://github.com/molt-foundry/gambit/issues" }, + homepage: "https://github.com/molt-foundry/gambit", }, }); } finally { diff --git a/simulator-ui/demo/gambit-ui-demo-timeline.ts b/simulator-ui/demo/gambit-ui-demo-timeline.ts index 6178e44ce..19ac30355 100644 --- a/simulator-ui/demo/gambit-ui-demo-timeline.ts +++ b/simulator-ui/demo/gambit-ui-demo-timeline.ts @@ -198,7 +198,7 @@ const beatClose: DemoTimelineStep[] = [ }, { type: "voiceover", - text: "For more on Gambit, check out our GitHub, or visit boltfoundry.com.", + text: "For more on Gambit, check out our GitHub, or visit moltfoundry.com.", showSubtitles: true, }, ]; diff --git a/simulator-ui/src/DocsPage.tsx b/simulator-ui/src/DocsPage.tsx index ff60d2266..76b18bc00 100644 --- a/simulator-ui/src/DocsPage.tsx +++ b/simulator-ui/src/DocsPage.tsx @@ -2,9 +2,9 @@ import Button from "./gds/Button.tsx"; import { GambitLogo } from "./GambitLogo.tsx"; const GAMBIT_PACKAGE_README = - "https://github.com/bolt-foundry/gambit/blob/main/README.md"; + "https://github.com/molt-foundry/gambit/blob/main/README.md"; const GAMBIT_CLI_DOC = - "https://github.com/bolt-foundry/gambit/blob/main/docs/cli.md"; + "https://github.com/molt-foundry/gambit/blob/main/docs/cli.md"; const DEFAULT_TEST_PATH = "/sessions/new/test"; const DEFAULT_DEBUG_PATH = "/sessions/new/debug"; const DEFAULT_GRADE_PATH = "/grade"; diff --git a/src/cli.ts b/src/cli.ts index 53e4ae851..a4d337111 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -558,7 +558,7 @@ async function main() { const resolution = modelAliasResolver(model); return Boolean(resolution.applied || resolution.missingAlias); }; - const provider: import("@bolt-foundry/gambit-core").ModelProvider = { + const provider: import("@molt-foundry/gambit-core").ModelProvider = { resolveModel: async (input) => await resolveModelSelection( input.model, @@ -566,10 +566,10 @@ async function main() { input.deckPath, ), responses: async (input: { - request: import("@bolt-foundry/gambit-core").CreateResponseRequest; - state?: import("@bolt-foundry/gambit-core").SavedState; + request: import("@molt-foundry/gambit-core").CreateResponseRequest; + state?: import("@molt-foundry/gambit-core").SavedState; onStreamEvent?: ( - event: import("@bolt-foundry/gambit-core").ResponseEvent, + event: import("@molt-foundry/gambit-core").ResponseEvent, ) => void; }) => { const applied = shouldResolveModel(input.request.model) @@ -603,10 +603,10 @@ async function main() { }, chat: async (input: { model: string; - messages: Array; - tools?: Array; + messages: Array; + tools?: Array; stream?: boolean; - state?: import("@bolt-foundry/gambit-core").SavedState; + state?: import("@molt-foundry/gambit-core").SavedState; onStreamText?: (chunk: string) => void; params?: Record; }) => { @@ -631,14 +631,14 @@ async function main() { const tracerFns: Array< ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => void > = []; if (args.trace) tracerFns.push(makeJsonlTracer(args.trace)); if (args.verbose) tracerFns.push(makeConsoleTracer()); const tracer = tracerFns.length ? ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => tracerFns.forEach((fn) => fn(event)) : undefined; diff --git a/src/cli_utils.ts b/src/cli_utils.ts index a1815b05a..ec2ec9d2d 100644 --- a/src/cli_utils.ts +++ b/src/cli_utils.ts @@ -2,9 +2,9 @@ import * as path from "@std/path"; import { GAMBIT_TOOL_CONTEXT, GAMBIT_TOOL_INIT, -} from "@bolt-foundry/gambit-core"; -import type { ModelMessage } from "@bolt-foundry/gambit-core"; -import type { SavedState } from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; +import type { ModelMessage } from "@molt-foundry/gambit-core"; +import type { SavedState } from "@molt-foundry/gambit-core"; export function parsePortValue( value: unknown, diff --git a/src/commands/check.ts b/src/commands/check.ts index ce2fa5d39..541c1204f 100644 --- a/src/commands/check.ts +++ b/src/commands/check.ts @@ -1,5 +1,5 @@ import * as path from "@std/path"; -import { loadDeck } from "@bolt-foundry/gambit-core"; +import { loadDeck } from "@molt-foundry/gambit-core"; import type { ModelAliasResolver } from "../project_config.ts"; import { GOOGLE_PREFIX } from "../providers/google.ts"; import { fetchOllamaTags, OLLAMA_PREFIX } from "../providers/ollama.ts"; diff --git a/src/commands/export.ts b/src/commands/export.ts index b6021e57c..a65f1d067 100644 --- a/src/commands/export.ts +++ b/src/commands/export.ts @@ -2,13 +2,13 @@ import * as path from "@std/path"; import { walk } from "@std/fs"; import { extract } from "@std/front-matter/any"; import { TarStream } from "@std/tar/tar-stream"; -import { loadDeck } from "@bolt-foundry/gambit-core"; -import { loadState } from "@bolt-foundry/gambit-core"; +import { loadDeck } from "@molt-foundry/gambit-core"; +import { loadState } from "@molt-foundry/gambit-core"; import type { HandlersConfig, ModelMessage, TraceEvent, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; import { extractContextInput, findLastAssistantMessage, diff --git a/src/commands/grade.ts b/src/commands/grade.ts index 5f40ac6fe..da754ad1f 100644 --- a/src/commands/grade.ts +++ b/src/commands/grade.ts @@ -1,8 +1,8 @@ import * as path from "@std/path"; import type { ZodTypeAny } from "zod"; -import { loadDeck } from "@bolt-foundry/gambit-core"; -import { loadState, saveState } from "@bolt-foundry/gambit-core"; -import type { ModelProvider, TraceEvent } from "@bolt-foundry/gambit-core"; +import { loadDeck } from "@molt-foundry/gambit-core"; +import { loadState, saveState } from "@molt-foundry/gambit-core"; +import type { ModelProvider, TraceEvent } from "@molt-foundry/gambit-core"; import { runDeckWithFallback } from "./test_bot.ts"; const logger = console; @@ -124,7 +124,7 @@ function schemaHasField( } function upsertRun( - state: import("@bolt-foundry/gambit-core").SavedState, + state: import("@molt-foundry/gambit-core").SavedState, entry: GradingRunRecord, ) { const current = state ?? { runId: randomId("run"), messages: [] }; @@ -155,7 +155,7 @@ export async function runGraderAgainstState(opts: { model?: string; modelForce?: string; trace?: ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => void; responsesMode?: boolean; }) { diff --git a/src/commands/init.ts b/src/commands/init.ts index 62b645dab..9c7320a81 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -1,7 +1,7 @@ import { load as loadDotenv } from "@std/dotenv"; import * as path from "@std/path"; import { startTui } from "../tui.ts"; -import { loadDeck } from "@bolt-foundry/gambit-core"; +import { loadDeck } from "@molt-foundry/gambit-core"; import { createOllamaProvider, fetchOllamaTags, @@ -174,7 +174,7 @@ function buildInitProvider(opts: { openRouterProvider: ReturnType | null; ollamaProvider: ReturnType; ollamaBaseURL?: string; -}): import("@bolt-foundry/gambit-core").ModelProvider { +}): import("@molt-foundry/gambit-core").ModelProvider { const openRouterProvider = opts.openRouterProvider; const openRouterResponses = openRouterProvider?.responses; const resolveModelChoice = async ( diff --git a/src/commands/run.responses.test.ts b/src/commands/run.responses.test.ts index a0e811788..67b765d96 100644 --- a/src/commands/run.responses.test.ts +++ b/src/commands/run.responses.test.ts @@ -1,6 +1,6 @@ import { assertEquals } from "@std/assert"; import * as path from "@std/path"; -import type { ModelProvider } from "@bolt-foundry/gambit-core"; +import type { ModelProvider } from "@molt-foundry/gambit-core"; import { handleRunCommand } from "./run.ts"; function deckPath(): string { diff --git a/src/commands/run.ts b/src/commands/run.ts index d9bc70062..19a634c52 100644 --- a/src/commands/run.ts +++ b/src/commands/run.ts @@ -1,6 +1,6 @@ -import { isGambitEndSignal, runDeck } from "@bolt-foundry/gambit-core"; -import { loadState, saveState } from "@bolt-foundry/gambit-core"; -import type { ModelProvider } from "@bolt-foundry/gambit-core"; +import { isGambitEndSignal, runDeck } from "@molt-foundry/gambit-core"; +import { loadState, saveState } from "@molt-foundry/gambit-core"; +import type { ModelProvider } from "@molt-foundry/gambit-core"; import { enrichStateMeta } from "../cli_utils.ts"; const logger = console; @@ -14,7 +14,7 @@ export async function handleRunCommand(opts: { model?: string; modelForce?: string; trace?: ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => void; stream?: boolean; statePath?: string; @@ -22,7 +22,7 @@ export async function handleRunCommand(opts: { }) { const state = opts.statePath ? loadState(opts.statePath) : undefined; const onStateUpdate = opts.statePath - ? (s: import("@bolt-foundry/gambit-core").SavedState) => { + ? (s: import("@molt-foundry/gambit-core").SavedState) => { saveState(opts.statePath!, enrichStateMeta(s, opts.deckPath)); } : undefined; diff --git a/src/commands/scaffold_utils.ts b/src/commands/scaffold_utils.ts index 9d977786c..80027794c 100644 --- a/src/commands/scaffold_utils.ts +++ b/src/commands/scaffold_utils.ts @@ -157,7 +157,7 @@ export function formatEnvLine(key: string, value: string): string { export function resolveInvokePrefix(): string { const npmCommand = Deno.env.get("npm_command")?.toLowerCase(); if (npmCommand === "exec" || npmCommand === "npx") { - return "npx @bolt-foundry/gambit"; + return "npx @molt-foundry/gambit"; } const execBase = path.basename(Deno.execPath()).toLowerCase(); diff --git a/src/commands/serve.ts b/src/commands/serve.ts index dcb8abd20..2235092fc 100644 --- a/src/commands/serve.ts +++ b/src/commands/serve.ts @@ -1,6 +1,6 @@ import * as path from "@std/path"; import { startWebSocketSimulator } from "../server.ts"; -import type { ModelProvider } from "@bolt-foundry/gambit-core"; +import type { ModelProvider } from "@molt-foundry/gambit-core"; import { parsePortValue } from "../cli_utils.ts"; const logger = console; diff --git a/src/commands/test_bot.ts b/src/commands/test_bot.ts index f7f965f3b..dd57126a3 100644 --- a/src/commands/test_bot.ts +++ b/src/commands/test_bot.ts @@ -1,7 +1,7 @@ -import { isGambitEndSignal, runDeck } from "@bolt-foundry/gambit-core"; -import { loadState, saveState } from "@bolt-foundry/gambit-core"; -import type { ModelProvider, TraceEvent } from "@bolt-foundry/gambit-core"; -import { loadDeck } from "@bolt-foundry/gambit-core"; +import { isGambitEndSignal, runDeck } from "@molt-foundry/gambit-core"; +import { loadState, saveState } from "@molt-foundry/gambit-core"; +import type { ModelProvider, TraceEvent } from "@molt-foundry/gambit-core"; +import { loadDeck } from "@molt-foundry/gambit-core"; import type { ZodTypeAny } from "zod"; import { defaultTestBotStatePath, @@ -397,16 +397,16 @@ export async function runDeckWithFallback(args: { modelProvider: ModelProvider; defaultModel?: string; modelOverride?: string; - state?: import("@bolt-foundry/gambit-core").SavedState; + state?: import("@molt-foundry/gambit-core").SavedState; allowRootStringInput?: boolean; initialUserMessage?: string; onStateUpdate?: ( - state: import("@bolt-foundry/gambit-core").SavedState, + state: import("@molt-foundry/gambit-core").SavedState, ) => void; stream?: boolean; onStreamText?: (chunk: string) => void; trace?: ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => void; responsesMode?: boolean; }): Promise { @@ -467,24 +467,24 @@ export async function runTestBotLoop(opts: { responsesMode?: boolean; }): Promise { let rootState: - | import("@bolt-foundry/gambit-core").SavedState + | import("@molt-foundry/gambit-core").SavedState | undefined = undefined; let botState: - | import("@bolt-foundry/gambit-core").SavedState + | import("@molt-foundry/gambit-core").SavedState | undefined = undefined; const statePath = opts.statePath ?? defaultTestBotStatePath(opts.rootDeckPath); const capturedTraces: Array< - import("@bolt-foundry/gambit-core").TraceEvent + import("@molt-foundry/gambit-core").TraceEvent > = []; const traceWrapper = ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => { capturedTraces.push(event); opts.trace?.(event); }; const saveStateToDisk = ( - state: import("@bolt-foundry/gambit-core").SavedState, + state: import("@molt-foundry/gambit-core").SavedState, ) => { const enriched = enrichStateMeta( { ...state, traces: capturedTraces }, @@ -504,7 +504,7 @@ export async function runTestBotLoop(opts: { let initFillMeta: TestBotInitFill | undefined; const updateRootState = ( - state: import("@bolt-foundry/gambit-core").SavedState, + state: import("@molt-foundry/gambit-core").SavedState, ) => { const enriched = enrichStateMeta( { @@ -639,7 +639,7 @@ export async function runTestBotLoop(opts: { result: { applied: initFillMeta.applied, provided: initFillMeta.provided, - } as unknown as import("@bolt-foundry/gambit-core").JSONValue, + } as unknown as import("@molt-foundry/gambit-core").JSONValue, }); } } catch (err) { diff --git a/src/decks/actions/bot_exists.deck.ts b/src/decks/actions/bot_exists.deck.ts index e567ea511..f399caa03 100644 --- a/src/decks/actions/bot_exists.deck.ts +++ b/src/decks/actions/bot_exists.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { resolveBotPath } from "./bot_fs.ts"; diff --git a/src/decks/actions/bot_mkdir.deck.ts b/src/decks/actions/bot_mkdir.deck.ts index 3fae2bf51..9078d18ad 100644 --- a/src/decks/actions/bot_mkdir.deck.ts +++ b/src/decks/actions/bot_mkdir.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { resolveBotPath } from "./bot_fs.ts"; diff --git a/src/decks/actions/bot_read.deck.ts b/src/decks/actions/bot_read.deck.ts index 6759935b5..e45493e35 100644 --- a/src/decks/actions/bot_read.deck.ts +++ b/src/decks/actions/bot_read.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { resolveBotPath } from "./bot_fs.ts"; diff --git a/src/decks/actions/bot_write.deck.ts b/src/decks/actions/bot_write.deck.ts index fe0be53e6..868fa543b 100644 --- a/src/decks/actions/bot_write.deck.ts +++ b/src/decks/actions/bot_write.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { resolveBotPath } from "./bot_fs.ts"; diff --git a/src/decks/actions/init_exists.deck.ts b/src/decks/actions/init_exists.deck.ts index 103243ac7..9e970f68f 100644 --- a/src/decks/actions/init_exists.deck.ts +++ b/src/decks/actions/init_exists.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { resolveInitPath } from "./init_fs.ts"; diff --git a/src/decks/actions/init_mkdir.deck.ts b/src/decks/actions/init_mkdir.deck.ts index 1298e7729..ae565e4fb 100644 --- a/src/decks/actions/init_mkdir.deck.ts +++ b/src/decks/actions/init_mkdir.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { resolveInitPath } from "./init_fs.ts"; diff --git a/src/decks/actions/init_write.deck.ts b/src/decks/actions/init_write.deck.ts index 1b1f8c785..b3494629e 100644 --- a/src/decks/actions/init_write.deck.ts +++ b/src/decks/actions/init_write.deck.ts @@ -1,4 +1,4 @@ -import { defineDeck } from "jsr:@bolt-foundry/gambit"; +import { defineDeck } from "jsr:@molt-foundry/gambit"; import { z } from "npm:zod"; import { resolveInitPath } from "./init_fs.ts"; diff --git a/src/openai_compat.test.ts b/src/openai_compat.test.ts index 98628868c..3f29ee8b9 100644 --- a/src/openai_compat.test.ts +++ b/src/openai_compat.test.ts @@ -2,7 +2,7 @@ import { assert, assertEquals, assertRejects } from "@std/assert"; import * as path from "@std/path"; import { chatCompletionsWithDeck } from "../mod.ts"; import { logger as openaiLogger } from "./openai_compat.ts"; -import type { ModelProvider, ToolDefinition } from "@bolt-foundry/gambit-core"; +import type { ModelProvider, ToolDefinition } from "@molt-foundry/gambit-core"; function modImportPath() { const here = path.dirname(path.fromFileUrl(import.meta.url)); diff --git a/src/openai_compat.ts b/src/openai_compat.ts index 54b9bb397..a9c41cf26 100644 --- a/src/openai_compat.ts +++ b/src/openai_compat.ts @@ -5,14 +5,14 @@ import { RESERVED_TOOL_PREFIX, runDeck, toJsonSchema, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; import type { Guardrails, LoadedDeck, ModelMessage, ModelProvider, ToolDefinition, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; export const logger = console; diff --git a/src/providers/google.ts b/src/providers/google.ts index 55e3a9d11..bc60ab2d0 100644 --- a/src/providers/google.ts +++ b/src/providers/google.ts @@ -7,7 +7,7 @@ import type { ResponseItem, ResponseMessageItem, ResponseToolChoice, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; export const GOOGLE_PREFIX = "google/"; const DEFAULT_GOOGLE_BASE_URL = diff --git a/src/providers/ollama.test.ts b/src/providers/ollama.test.ts index 2d1d33700..80bdb2aaf 100644 --- a/src/providers/ollama.test.ts +++ b/src/providers/ollama.test.ts @@ -43,12 +43,12 @@ Deno.test("fetchOllamaTags preserves baseURL path prefix", async () => { }); }); try { - await fetchOllamaTags("https://host.boltfoundry.bflocal:8017/ollama/v1"); + await fetchOllamaTags("https://host.moltfoundry.bflocal:8017/ollama/v1"); } finally { restore(); } assertEquals( seen, - "https://host.boltfoundry.bflocal:8017/ollama/api/tags", + "https://host.moltfoundry.bflocal:8017/ollama/api/tags", ); }); diff --git a/src/providers/ollama.ts b/src/providers/ollama.ts index 8920d835b..b919679f1 100644 --- a/src/providers/ollama.ts +++ b/src/providers/ollama.ts @@ -11,11 +11,11 @@ import type { ResponseTextContent, ResponseToolDefinition, ResponseUsage, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; import { GAMBIT_TOOL_CONTEXT, GAMBIT_TOOL_INIT, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; const logger = console; export const OLLAMA_PREFIX = "ollama/"; diff --git a/src/providers/openrouter.ts b/src/providers/openrouter.ts index 7e4edf658..f4bf1e47c 100644 --- a/src/providers/openrouter.ts +++ b/src/providers/openrouter.ts @@ -11,11 +11,11 @@ import type { ResponseTextContent, ResponseToolDefinition, ResponseUsage, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; import { GAMBIT_TOOL_CONTEXT, GAMBIT_TOOL_INIT, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; const logger = console; export const OPENROUTER_PREFIX = "openrouter/"; diff --git a/src/providers/router.test.ts b/src/providers/router.test.ts index 3a075669a..1465749c2 100644 --- a/src/providers/router.test.ts +++ b/src/providers/router.test.ts @@ -1,5 +1,5 @@ import { assertEquals, assertThrows } from "@std/assert"; -import type { ModelProvider } from "@bolt-foundry/gambit-core"; +import type { ModelProvider } from "@molt-foundry/gambit-core"; import { createProviderRouter } from "./router.ts"; const stubProvider = (label: string): ModelProvider => ({ diff --git a/src/providers/router.ts b/src/providers/router.ts index c7de7258e..ea20a99bf 100644 --- a/src/providers/router.ts +++ b/src/providers/router.ts @@ -1,4 +1,4 @@ -import type { ModelProvider } from "@bolt-foundry/gambit-core"; +import type { ModelProvider } from "@molt-foundry/gambit-core"; export type ProviderKey = "openrouter" | "ollama" | "google"; diff --git a/src/server.test.ts b/src/server.test.ts index 0ee1cef8f..48f42e618 100644 --- a/src/server.test.ts +++ b/src/server.test.ts @@ -1,7 +1,7 @@ import { assert, assertEquals } from "@std/assert"; import * as path from "@std/path"; import { startWebSocketSimulator } from "./server.ts"; -import type { ModelProvider } from "@bolt-foundry/gambit-core"; +import type { ModelProvider } from "@molt-foundry/gambit-core"; function modImportPath() { const here = path.dirname(path.fromFileUrl(import.meta.url)); @@ -469,9 +469,9 @@ Deno.test("simulator preserves state and user input", async () => { const calls: Array<{ messages: Array< - import("@bolt-foundry/gambit-core").ModelMessage + import("@molt-foundry/gambit-core").ModelMessage >; - state?: import("@bolt-foundry/gambit-core").SavedState; + state?: import("@molt-foundry/gambit-core").SavedState; }> = []; const provider: ModelProvider = { @@ -560,9 +560,9 @@ Deno.test("simulator treats follow-up input as a user message when state exists" const calls: Array<{ messages: Array< - import("@bolt-foundry/gambit-core").ModelMessage + import("@molt-foundry/gambit-core").ModelMessage >; - state?: import("@bolt-foundry/gambit-core").SavedState; + state?: import("@molt-foundry/gambit-core").SavedState; }> = []; const provider: ModelProvider = { @@ -680,9 +680,9 @@ Deno.test("simulator falls back when provider state lacks messages", async () => const calls: Array<{ messages: Array< - import("@bolt-foundry/gambit-core").ModelMessage + import("@molt-foundry/gambit-core").ModelMessage >; - state?: import("@bolt-foundry/gambit-core").SavedState; + state?: import("@molt-foundry/gambit-core").SavedState; }> = []; const provider: ModelProvider = { @@ -697,7 +697,7 @@ Deno.test("simulator falls back when provider state lacks messages", async () => // Simulate a provider that returns a minimal state without messages. updatedState: { runId: input.state?.runId ?? "missing-messages", - } as unknown as import("@bolt-foundry/gambit-core").SavedState, + } as unknown as import("@molt-foundry/gambit-core").SavedState, }); }, }; diff --git a/src/server.ts b/src/server.ts index dba5471d1..8e23ebf8c 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,22 +1,22 @@ import * as path from "@std/path"; import { existsSync } from "@std/fs"; import { parse } from "@std/jsonc"; -import { isGambitEndSignal, runDeck } from "@bolt-foundry/gambit-core"; +import { isGambitEndSignal, runDeck } from "@molt-foundry/gambit-core"; import { sanitizeNumber } from "./test_bot.ts"; import { makeConsoleTracer } from "./trace.ts"; import { defaultSessionRoot } from "./cli_utils.ts"; -import { loadDeck } from "@bolt-foundry/gambit-core"; +import { loadDeck } from "@molt-foundry/gambit-core"; import { appendDurableStreamEvent, handleDurableStreamRequest, } from "./durable_streams.ts"; -import type { FeedbackEntry, SavedState } from "@bolt-foundry/gambit-core"; +import type { FeedbackEntry, SavedState } from "@molt-foundry/gambit-core"; import type { LoadedDeck, ModelMessage, ModelProvider, TraceEvent, -} from "@bolt-foundry/gambit-core"; +} from "@molt-foundry/gambit-core"; import type { ZodTypeAny } from "zod"; const GAMBIT_TOOL_RESPOND = "gambit_respond"; diff --git a/src/trace.ts b/src/trace.ts index 15cd8957c..778afbe17 100644 --- a/src/trace.ts +++ b/src/trace.ts @@ -1,5 +1,5 @@ import * as path from "@std/path"; -import type { TraceEvent } from "@bolt-foundry/gambit-core"; +import type { TraceEvent } from "@molt-foundry/gambit-core"; const logger = console; diff --git a/src/tui.ts b/src/tui.ts index 636e7dd2a..11e6eabd3 100644 --- a/src/tui.ts +++ b/src/tui.ts @@ -1,5 +1,5 @@ -import { isGambitEndSignal, runDeck } from "@bolt-foundry/gambit-core"; -import type { SavedState } from "@bolt-foundry/gambit-core"; +import { isGambitEndSignal, runDeck } from "@molt-foundry/gambit-core"; +import type { SavedState } from "@molt-foundry/gambit-core"; import * as path from "@std/path"; const encoder = new TextEncoder(); @@ -35,12 +35,12 @@ export async function startTui(opts: { deckPath: string; model: string | undefined; modelForce: string | undefined; - modelProvider: import("@bolt-foundry/gambit-core").ModelProvider; + modelProvider: import("@molt-foundry/gambit-core").ModelProvider; trace?: ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => void; toolResultMessage?: ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => string | null; verbose?: boolean; initialSystemMessage?: string; @@ -142,7 +142,7 @@ export async function startTui(opts: { }; const traceEvent = ( - event: import("@bolt-foundry/gambit-core").TraceEvent, + event: import("@molt-foundry/gambit-core").TraceEvent, ) => { if (event.type === "tool.call") { const key = `${event.actionCallId}:${event.name}`;