Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/gambit-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 (
Expand Down Expand Up @@ -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 = [
Expand All @@ -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",
Expand Down Expand Up @@ -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 (
Expand Down Expand Up @@ -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 = [
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/`,
Expand All @@ -35,15 +35,15 @@ 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.

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
```

Expand Down Expand Up @@ -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 <command>
npx @molt-foundry/gambit <command>
```

Run a deck once:

```
npx @bolt-foundry/gambit run <deck> --context <json|string> --message <json|string>
npx @molt-foundry/gambit run <deck> --context <json|string> --message <json|string>
```

> `--context` replaces the old `--init` flag. The CLI still accepts `--init` as
Expand All @@ -97,25 +97,25 @@ npx @bolt-foundry/gambit run <deck> --context <json|string> --message <json|stri
Drop into a REPL (streams by default):

```
npx @bolt-foundry/gambit repl <deck>
npx @molt-foundry/gambit repl <deck>
```

Run a persona against a root deck (test bot):

```
npx @bolt-foundry/gambit test-bot <root-deck> --test-deck <persona-deck>
npx @molt-foundry/gambit test-bot <root-deck> --test-deck <persona-deck>
```

Grade a saved session:

```
npx @bolt-foundry/gambit grade <grader-deck> --state <file>
npx @molt-foundry/gambit grade <grader-deck> --state <file>
```

Start the Debug UI server:

```
npx @bolt-foundry/gambit serve <deck> --port 8000
npx @molt-foundry/gambit serve <deck> --port 8000
```

Tracing and state: 
Expand All @@ -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 <command>
npx @molt-foundry/gambit <command>
```

Start it:

```
npx @bolt-foundry/gambit serve <deck> --port 8000
npx @molt-foundry/gambit serve <deck> --port 8000
```

Then open:
Expand Down Expand Up @@ -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\
Expand Down Expand Up @@ -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({
Expand All @@ -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`
Expand All @@ -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({
Expand All @@ -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)
Expand All @@ -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:
Expand All @@ -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 <deck> --context <json|string> --message <json|string>
deno run -A jsr:@molt-foundry/gambit/cli run <deck> --context <json|string> --message <json|string>
```

Start the Debug UI:

```
deno run -A jsr:@bolt-foundry/gambit/cli serve <deck> --port 8000
deno run -A jsr:@molt-foundry/gambit/cli serve <deck> --port 8000
```
4 changes: 2 additions & 2 deletions bin/gambit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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 ||
Expand Down
10 changes: 5 additions & 5 deletions deno.jsonc
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -39,7 +39,7 @@
"recommended"
],
"exclude": [
"bolt-foundry/no-parent-directory-traversal",
"molt-foundry/no-parent-directory-traversal",
"no-external-import",
"no-unversioned-import"
],
Expand Down Expand Up @@ -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",
Expand All @@ -89,7 +89,7 @@
]
},
"deploy": {
"org": "boltfoundry",
"org": "moltfoundry",
"app": "gambit-demo"
}
}
6 changes: 3 additions & 3 deletions docs/external/getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/external/guides/authoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion docs/external/reference/openai-compat.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")!,
Expand Down
Loading