@bolt-foundry/gambit 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -3
- package/README.md +4 -4
- package/esm/mod.d.ts +22 -22
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +7 -7
- package/esm/src/server.d.ts +1 -1
- package/esm/src/server.d.ts.map +1 -1
- package/esm/src/server.js +2 -2
- package/esm/src/trace.d.ts +1 -1
- package/esm/src/trace.d.ts.map +1 -1
- package/package.json +2 -4
- package/script/mod.d.ts +22 -22
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +14 -14
- package/script/src/server.d.ts +1 -1
- package/script/src/server.d.ts.map +1 -1
- package/script/src/server.js +12 -12
- package/script/src/trace.d.ts +1 -1
- package/script/src/trace.d.ts.map +1 -1
- package/esm/packages/gambit-core/mod.d.ts +0 -50
- package/esm/packages/gambit-core/mod.d.ts.map +0 -1
- package/esm/packages/gambit-core/mod.js +0 -19
- package/esm/packages/gambit-core/src/definitions.d.ts +0 -11
- package/esm/packages/gambit-core/src/definitions.d.ts.map +0 -1
- package/esm/packages/gambit-core/src/definitions.js +0 -14
- package/esm/packages/gambit-core/src/openai_compat.d.ts +0 -63
- package/esm/packages/gambit-core/src/openai_compat.d.ts.map +0 -1
- package/esm/packages/gambit-core/src/openai_compat.js +0 -272
- package/esm/packages/gambit-core/src/providers/openrouter.d.ts +0 -8
- package/esm/packages/gambit-core/src/providers/openrouter.d.ts.map +0 -1
- package/esm/packages/gambit-core/src/providers/openrouter.js +0 -168
- package/esm/packages/gambit-core/src/render.d.ts +0 -51
- package/esm/packages/gambit-core/src/render.d.ts.map +0 -1
- package/esm/packages/gambit-core/src/render.js +0 -188
- package/esm/packages/gambit-core/src/schema.d.ts +0 -8
- package/esm/packages/gambit-core/src/schema.d.ts.map +0 -1
- package/esm/packages/gambit-core/src/schema.js +0 -45
- package/script/packages/gambit-core/mod.d.ts +0 -50
- package/script/packages/gambit-core/mod.d.ts.map +0 -1
- package/script/packages/gambit-core/mod.js +0 -29
- package/script/packages/gambit-core/src/definitions.d.ts +0 -11
- package/script/packages/gambit-core/src/definitions.d.ts.map +0 -1
- package/script/packages/gambit-core/src/definitions.js +0 -20
- package/script/packages/gambit-core/src/openai_compat.d.ts +0 -63
- package/script/packages/gambit-core/src/openai_compat.d.ts.map +0 -1
- package/script/packages/gambit-core/src/openai_compat.js +0 -276
- package/script/packages/gambit-core/src/providers/openrouter.d.ts +0 -8
- package/script/packages/gambit-core/src/providers/openrouter.d.ts.map +0 -1
- package/script/packages/gambit-core/src/providers/openrouter.js +0 -207
- package/script/packages/gambit-core/src/render.d.ts +0 -51
- package/script/packages/gambit-core/src/render.d.ts.map +0 -1
- package/script/packages/gambit-core/src/render.js +0 -192
- package/script/packages/gambit-core/src/schema.d.ts +0 -8
- package/script/packages/gambit-core/src/schema.d.ts.map +0 -1
- package/script/packages/gambit-core/src/schema.js +0 -51
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
+++
|
|
2
2
|
[release]
|
|
3
|
-
since = "
|
|
3
|
+
since = "225456917f75e92cc095af525201373c4be37944"
|
|
4
4
|
+++
|
|
5
5
|
|
|
6
6
|
# Changelog
|
|
7
7
|
|
|
8
|
-
## Unreleased (v0.6.
|
|
8
|
+
## Unreleased (v0.6.3)
|
|
9
9
|
|
|
10
10
|
- TBD
|
|
11
11
|
|
|
12
|
+
## v0.6.2
|
|
13
|
+
|
|
14
|
+
### Release and packaging
|
|
15
|
+
|
|
16
|
+
- Bump gambit + gambit-core to 0.6.2.
|
|
17
|
+
|
|
18
|
+
## v0.6.1
|
|
19
|
+
|
|
20
|
+
### Release and packaging
|
|
21
|
+
|
|
22
|
+
- Bump gambit + gambit-core to 0.6.1.
|
|
23
|
+
|
|
12
24
|
## v0.6.0
|
|
13
25
|
|
|
14
26
|
### Release and packaging
|
|
@@ -17,7 +29,7 @@ since = "b0ddcc2ba4e861e0879dc92cc713e8cde30d230f"
|
|
|
17
29
|
verification.
|
|
18
30
|
- Normalize release binary asset names and checksum generation for predictable
|
|
19
31
|
npm downloads.
|
|
20
|
-
- Fix the npm build to resolve gambit-core in the
|
|
32
|
+
- Fix the npm build to resolve gambit-core in the gambitmono layout and derive
|
|
21
33
|
import-map targets from the detected path.
|
|
22
34
|
- Add `@deno/dnt` to the Gambit package and refresh release/npm docs.
|
|
23
35
|
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Gambit (draft README)
|
|
2
2
|
|
|
3
|
-
This package is developed in Bolt Foundry’s monorepo and
|
|
4
|
-
`github.com/bolt-foundry/gambit
|
|
5
|
-
do not land direct changes there).
|
|
3
|
+
This package is developed in Bolt Foundry’s monorepo and synced into gambitmono
|
|
4
|
+
(`github.com/bolt-foundry/gambit`). For now, gambitmono is a strict sync target
|
|
5
|
+
(please do not land direct changes there).
|
|
6
6
|
|
|
7
7
|
CI runs `.github/workflows/gambit-mirror.yml` on every `main` push that touches
|
|
8
8
|
this package, using `scripts/sync-gambit-mirror.sh` to open and auto-merge a PR
|
|
9
|
-
from the `bft-codebot` fork into
|
|
9
|
+
from the `bft-codebot` fork into gambitmono.
|
|
10
10
|
|
|
11
11
|
Gambit helps developers build the most accurate LLM apps by making it simple to
|
|
12
12
|
provide exactly the right amount of context at the right time.
|
package/esm/mod.d.ts
CHANGED
|
@@ -5,49 +5,49 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** Define a reusable card with shared behavior, tools, or guardrails. */
|
|
7
7
|
import "./_dnt.polyfills.js";
|
|
8
|
-
export { defineCard } from "
|
|
8
|
+
export { defineCard } from "@bolt-foundry/gambit-core";
|
|
9
9
|
/** Define a deck, the primary unit of execution. */
|
|
10
|
-
export { defineDeck } from "
|
|
10
|
+
export { defineDeck } from "@bolt-foundry/gambit-core";
|
|
11
11
|
/** Action deck definition shape. */
|
|
12
|
-
export type { ActionDeckDefinition } from "
|
|
12
|
+
export type { ActionDeckDefinition } from "@bolt-foundry/gambit-core";
|
|
13
13
|
/** Card definition shape. */
|
|
14
|
-
export type { CardDefinition } from "
|
|
14
|
+
export type { CardDefinition } from "@bolt-foundry/gambit-core";
|
|
15
15
|
/** Deck definition shape. */
|
|
16
|
-
export type { DeckDefinition } from "
|
|
16
|
+
export type { DeckDefinition } from "@bolt-foundry/gambit-core";
|
|
17
17
|
/** Reference to another deck. */
|
|
18
|
-
export type { DeckReferenceDefinition } from "
|
|
18
|
+
export type { DeckReferenceDefinition } from "@bolt-foundry/gambit-core";
|
|
19
19
|
/** Execution context passed to decks. */
|
|
20
|
-
export type { ExecutionContext } from "
|
|
20
|
+
export type { ExecutionContext } from "@bolt-foundry/gambit-core";
|
|
21
21
|
/** Grader deck definition shape. */
|
|
22
|
-
export type { GraderDeckDefinition } from "
|
|
22
|
+
export type { GraderDeckDefinition } from "@bolt-foundry/gambit-core";
|
|
23
23
|
/** Guardrails definition and hooks. */
|
|
24
|
-
export type { Guardrails } from "
|
|
24
|
+
export type { Guardrails } from "@bolt-foundry/gambit-core";
|
|
25
25
|
/** JSON-serializable value type used throughout Gambit. */
|
|
26
|
-
export type { JSONValue } from "
|
|
26
|
+
export type { JSONValue } from "@bolt-foundry/gambit-core";
|
|
27
27
|
/** Model provider interface for LLM backends. */
|
|
28
|
-
export type { ModelProvider } from "
|
|
28
|
+
export type { ModelProvider } from "@bolt-foundry/gambit-core";
|
|
29
29
|
/** Test deck definition shape. */
|
|
30
|
-
export type { TestDeckDefinition } from "
|
|
30
|
+
export type { TestDeckDefinition } from "@bolt-foundry/gambit-core";
|
|
31
31
|
/** Check if a value is an explicit end-of-run signal. */
|
|
32
|
-
export { isGambitEndSignal } from "
|
|
32
|
+
export { isGambitEndSignal } from "@bolt-foundry/gambit-core";
|
|
33
33
|
/** Run a deck and return its execution result. */
|
|
34
|
-
export { runDeck } from "
|
|
34
|
+
export { runDeck } from "@bolt-foundry/gambit-core";
|
|
35
35
|
/** Signal for explicitly ending a Gambit run. */
|
|
36
|
-
export type { GambitEndSignal } from "
|
|
36
|
+
export type { GambitEndSignal } from "@bolt-foundry/gambit-core";
|
|
37
37
|
/** OpenAI Chat Completions compatibility helper for a deck. */
|
|
38
|
-
export { chatCompletionsWithDeck } from "
|
|
38
|
+
export { chatCompletionsWithDeck } from "@bolt-foundry/gambit-core";
|
|
39
39
|
/** OpenAI-compatible request payload. */
|
|
40
|
-
export type { ChatCompletionsRequest } from "
|
|
40
|
+
export type { ChatCompletionsRequest } from "@bolt-foundry/gambit-core";
|
|
41
41
|
/** OpenAI-compatible response payload. */
|
|
42
|
-
export type { ChatCompletionsResponse } from "
|
|
42
|
+
export type { ChatCompletionsResponse } from "@bolt-foundry/gambit-core";
|
|
43
43
|
/** Render a deck to a human-readable outline or debug view. */
|
|
44
|
-
export { renderDeck } from "
|
|
44
|
+
export { renderDeck } from "@bolt-foundry/gambit-core";
|
|
45
45
|
/** Options for deck rendering. */
|
|
46
|
-
export type { RenderDeckOptions } from "
|
|
46
|
+
export type { RenderDeckOptions } from "@bolt-foundry/gambit-core";
|
|
47
47
|
/** Result data from rendering a deck. */
|
|
48
|
-
export type { RenderDeckResult } from "
|
|
48
|
+
export type { RenderDeckResult } from "@bolt-foundry/gambit-core";
|
|
49
49
|
/** Provider factory for OpenRouter-backed model calls. */
|
|
50
|
-
export { createOpenRouterProvider } from "
|
|
50
|
+
export { createOpenRouterProvider } from "@bolt-foundry/gambit-core";
|
|
51
51
|
/** Start the WebSocket simulator server for the Gambit UI. */
|
|
52
52
|
export { startWebSocketSimulator } from "./src/server.js";
|
|
53
53
|
//# sourceMappingURL=mod.d.ts.map
|
package/esm/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yEAAyE;AACzE,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yEAAyE;AACzE,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,oDAAoD;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,oCAAoC;AACpC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,6BAA6B;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,6BAA6B;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,iCAAiC;AACjC,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,yCAAyC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,oCAAoC;AACpC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,uCAAuC;AACvC,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,2DAA2D;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,iDAAiD;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,kCAAkC;AAClC,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,yDAAyD;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,kDAAkD;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,iDAAiD;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,+DAA+D;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,yCAAyC;AACzC,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,0CAA0C;AAC1C,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,+DAA+D;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,kCAAkC;AAClC,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,yCAAyC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,0DAA0D;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,8DAA8D;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/esm/mod.js
CHANGED
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** Define a reusable card with shared behavior, tools, or guardrails. */
|
|
7
7
|
import "./_dnt.polyfills.js";
|
|
8
|
-
export { defineCard } from "
|
|
8
|
+
export { defineCard } from "@bolt-foundry/gambit-core";
|
|
9
9
|
/** Define a deck, the primary unit of execution. */
|
|
10
|
-
export { defineDeck } from "
|
|
10
|
+
export { defineDeck } from "@bolt-foundry/gambit-core";
|
|
11
11
|
/** Check if a value is an explicit end-of-run signal. */
|
|
12
|
-
export { isGambitEndSignal } from "
|
|
12
|
+
export { isGambitEndSignal } from "@bolt-foundry/gambit-core";
|
|
13
13
|
/** Run a deck and return its execution result. */
|
|
14
|
-
export { runDeck } from "
|
|
14
|
+
export { runDeck } from "@bolt-foundry/gambit-core";
|
|
15
15
|
/** OpenAI Chat Completions compatibility helper for a deck. */
|
|
16
|
-
export { chatCompletionsWithDeck } from "
|
|
16
|
+
export { chatCompletionsWithDeck } from "@bolt-foundry/gambit-core";
|
|
17
17
|
/** Render a deck to a human-readable outline or debug view. */
|
|
18
|
-
export { renderDeck } from "
|
|
18
|
+
export { renderDeck } from "@bolt-foundry/gambit-core";
|
|
19
19
|
/** Provider factory for OpenRouter-backed model calls. */
|
|
20
|
-
export { createOpenRouterProvider } from "
|
|
20
|
+
export { createOpenRouterProvider } from "@bolt-foundry/gambit-core";
|
|
21
21
|
/** Start the WebSocket simulator server for the Gambit UI. */
|
|
22
22
|
export { startWebSocketSimulator } from "./src/server.js";
|
package/esm/src/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
|
2
|
-
import type { ModelProvider } from "@bolt-foundry/gambit-core
|
|
2
|
+
import type { ModelProvider } from "@bolt-foundry/gambit-core";
|
|
3
3
|
/**
|
|
4
4
|
* Start the WebSocket simulator server used by the Gambit debug UI.
|
|
5
5
|
*/
|
package/esm/src/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAW5C,OAAO,KAAK,EAGV,aAAa,EAEd,MAAM,2BAA2B,CAAC;AA+ZnC;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAunExC"}
|
package/esm/src/server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
|
2
2
|
import * as path from "../deps/jsr.io/@std/path/1.1.4/mod.js";
|
|
3
|
-
import { isGambitEndSignal, runDeck
|
|
3
|
+
import { isGambitEndSignal, runDeck } from "@bolt-foundry/gambit-core";
|
|
4
4
|
import { sanitizeNumber } from "./test_bot.js";
|
|
5
5
|
import { makeConsoleTracer } from "./trace.js";
|
|
6
|
-
import { loadDeck } from "@bolt-foundry/gambit-core
|
|
6
|
+
import { loadDeck } from "@bolt-foundry/gambit-core";
|
|
7
7
|
import { appendDurableStreamEvent, handleDurableStreamRequest, } from "./durable_streams.js";
|
|
8
8
|
const logger = console;
|
|
9
9
|
const moduleLocation = (() => {
|
package/esm/src/trace.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraceEvent } from "@bolt-foundry/gambit-core
|
|
1
|
+
import type { TraceEvent } from "@bolt-foundry/gambit-core";
|
|
2
2
|
export declare function makeJsonlTracer(filePath: string): (event: TraceEvent) => void;
|
|
3
3
|
export declare function makeConsoleTracer(): (event: TraceEvent) => void;
|
|
4
4
|
//# sourceMappingURL=trace.d.ts.map
|
package/esm/src/trace.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/src/trace.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/src/trace.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAI5D,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAQ7E;AAED,wBAAgB,iBAAiB,IAAI,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAmI/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolt-foundry/gambit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Agent harness framework for building, running, and verifying LLM workflows in Markdown and code.",
|
|
5
5
|
"homepage": "https://github.com/bolt-foundry/gambit",
|
|
6
6
|
"repository": {
|
|
@@ -24,10 +24,8 @@
|
|
|
24
24
|
"gambit": "bin/gambit.cjs"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@bolt-foundry/gambit-core": "^0.6.
|
|
28
|
-
"openai": "^4.78.1",
|
|
27
|
+
"@bolt-foundry/gambit-core": "^0.6.2",
|
|
29
28
|
"zod": "^3.23.8",
|
|
30
|
-
"zod-to-json-schema": "^3.23.0",
|
|
31
29
|
"@deno/shim-deno": "~0.18.0"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
package/script/mod.d.ts
CHANGED
|
@@ -5,49 +5,49 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** Define a reusable card with shared behavior, tools, or guardrails. */
|
|
7
7
|
import "./_dnt.polyfills.js";
|
|
8
|
-
export { defineCard } from "
|
|
8
|
+
export { defineCard } from "@bolt-foundry/gambit-core";
|
|
9
9
|
/** Define a deck, the primary unit of execution. */
|
|
10
|
-
export { defineDeck } from "
|
|
10
|
+
export { defineDeck } from "@bolt-foundry/gambit-core";
|
|
11
11
|
/** Action deck definition shape. */
|
|
12
|
-
export type { ActionDeckDefinition } from "
|
|
12
|
+
export type { ActionDeckDefinition } from "@bolt-foundry/gambit-core";
|
|
13
13
|
/** Card definition shape. */
|
|
14
|
-
export type { CardDefinition } from "
|
|
14
|
+
export type { CardDefinition } from "@bolt-foundry/gambit-core";
|
|
15
15
|
/** Deck definition shape. */
|
|
16
|
-
export type { DeckDefinition } from "
|
|
16
|
+
export type { DeckDefinition } from "@bolt-foundry/gambit-core";
|
|
17
17
|
/** Reference to another deck. */
|
|
18
|
-
export type { DeckReferenceDefinition } from "
|
|
18
|
+
export type { DeckReferenceDefinition } from "@bolt-foundry/gambit-core";
|
|
19
19
|
/** Execution context passed to decks. */
|
|
20
|
-
export type { ExecutionContext } from "
|
|
20
|
+
export type { ExecutionContext } from "@bolt-foundry/gambit-core";
|
|
21
21
|
/** Grader deck definition shape. */
|
|
22
|
-
export type { GraderDeckDefinition } from "
|
|
22
|
+
export type { GraderDeckDefinition } from "@bolt-foundry/gambit-core";
|
|
23
23
|
/** Guardrails definition and hooks. */
|
|
24
|
-
export type { Guardrails } from "
|
|
24
|
+
export type { Guardrails } from "@bolt-foundry/gambit-core";
|
|
25
25
|
/** JSON-serializable value type used throughout Gambit. */
|
|
26
|
-
export type { JSONValue } from "
|
|
26
|
+
export type { JSONValue } from "@bolt-foundry/gambit-core";
|
|
27
27
|
/** Model provider interface for LLM backends. */
|
|
28
|
-
export type { ModelProvider } from "
|
|
28
|
+
export type { ModelProvider } from "@bolt-foundry/gambit-core";
|
|
29
29
|
/** Test deck definition shape. */
|
|
30
|
-
export type { TestDeckDefinition } from "
|
|
30
|
+
export type { TestDeckDefinition } from "@bolt-foundry/gambit-core";
|
|
31
31
|
/** Check if a value is an explicit end-of-run signal. */
|
|
32
|
-
export { isGambitEndSignal } from "
|
|
32
|
+
export { isGambitEndSignal } from "@bolt-foundry/gambit-core";
|
|
33
33
|
/** Run a deck and return its execution result. */
|
|
34
|
-
export { runDeck } from "
|
|
34
|
+
export { runDeck } from "@bolt-foundry/gambit-core";
|
|
35
35
|
/** Signal for explicitly ending a Gambit run. */
|
|
36
|
-
export type { GambitEndSignal } from "
|
|
36
|
+
export type { GambitEndSignal } from "@bolt-foundry/gambit-core";
|
|
37
37
|
/** OpenAI Chat Completions compatibility helper for a deck. */
|
|
38
|
-
export { chatCompletionsWithDeck } from "
|
|
38
|
+
export { chatCompletionsWithDeck } from "@bolt-foundry/gambit-core";
|
|
39
39
|
/** OpenAI-compatible request payload. */
|
|
40
|
-
export type { ChatCompletionsRequest } from "
|
|
40
|
+
export type { ChatCompletionsRequest } from "@bolt-foundry/gambit-core";
|
|
41
41
|
/** OpenAI-compatible response payload. */
|
|
42
|
-
export type { ChatCompletionsResponse } from "
|
|
42
|
+
export type { ChatCompletionsResponse } from "@bolt-foundry/gambit-core";
|
|
43
43
|
/** Render a deck to a human-readable outline or debug view. */
|
|
44
|
-
export { renderDeck } from "
|
|
44
|
+
export { renderDeck } from "@bolt-foundry/gambit-core";
|
|
45
45
|
/** Options for deck rendering. */
|
|
46
|
-
export type { RenderDeckOptions } from "
|
|
46
|
+
export type { RenderDeckOptions } from "@bolt-foundry/gambit-core";
|
|
47
47
|
/** Result data from rendering a deck. */
|
|
48
|
-
export type { RenderDeckResult } from "
|
|
48
|
+
export type { RenderDeckResult } from "@bolt-foundry/gambit-core";
|
|
49
49
|
/** Provider factory for OpenRouter-backed model calls. */
|
|
50
|
-
export { createOpenRouterProvider } from "
|
|
50
|
+
export { createOpenRouterProvider } from "@bolt-foundry/gambit-core";
|
|
51
51
|
/** Start the WebSocket simulator server for the Gambit UI. */
|
|
52
52
|
export { startWebSocketSimulator } from "./src/server.js";
|
|
53
53
|
//# sourceMappingURL=mod.d.ts.map
|
package/script/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yEAAyE;AACzE,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yEAAyE;AACzE,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,oDAAoD;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,oCAAoC;AACpC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,6BAA6B;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,6BAA6B;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,iCAAiC;AACjC,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,yCAAyC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,oCAAoC;AACpC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,uCAAuC;AACvC,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,2DAA2D;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,iDAAiD;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,kCAAkC;AAClC,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,yDAAyD;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,kDAAkD;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,iDAAiD;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,+DAA+D;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,yCAAyC;AACzC,YAAY,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,0CAA0C;AAC1C,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,+DAA+D;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,kCAAkC;AAClC,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,yCAAyC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,0DAA0D;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,8DAA8D;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/script/mod.js
CHANGED
|
@@ -8,26 +8,26 @@ exports.startWebSocketSimulator = exports.createOpenRouterProvider = exports.ren
|
|
|
8
8
|
*/
|
|
9
9
|
/** Define a reusable card with shared behavior, tools, or guardrails. */
|
|
10
10
|
require("./_dnt.polyfills.js");
|
|
11
|
-
var
|
|
12
|
-
Object.defineProperty(exports, "defineCard", { enumerable: true, get: function () { return
|
|
11
|
+
var gambit_core_1 = require("@bolt-foundry/gambit-core");
|
|
12
|
+
Object.defineProperty(exports, "defineCard", { enumerable: true, get: function () { return gambit_core_1.defineCard; } });
|
|
13
13
|
/** Define a deck, the primary unit of execution. */
|
|
14
|
-
var
|
|
15
|
-
Object.defineProperty(exports, "defineDeck", { enumerable: true, get: function () { return
|
|
14
|
+
var gambit_core_2 = require("@bolt-foundry/gambit-core");
|
|
15
|
+
Object.defineProperty(exports, "defineDeck", { enumerable: true, get: function () { return gambit_core_2.defineDeck; } });
|
|
16
16
|
/** Check if a value is an explicit end-of-run signal. */
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "isGambitEndSignal", { enumerable: true, get: function () { return
|
|
17
|
+
var gambit_core_3 = require("@bolt-foundry/gambit-core");
|
|
18
|
+
Object.defineProperty(exports, "isGambitEndSignal", { enumerable: true, get: function () { return gambit_core_3.isGambitEndSignal; } });
|
|
19
19
|
/** Run a deck and return its execution result. */
|
|
20
|
-
var
|
|
21
|
-
Object.defineProperty(exports, "runDeck", { enumerable: true, get: function () { return
|
|
20
|
+
var gambit_core_4 = require("@bolt-foundry/gambit-core");
|
|
21
|
+
Object.defineProperty(exports, "runDeck", { enumerable: true, get: function () { return gambit_core_4.runDeck; } });
|
|
22
22
|
/** OpenAI Chat Completions compatibility helper for a deck. */
|
|
23
|
-
var
|
|
24
|
-
Object.defineProperty(exports, "chatCompletionsWithDeck", { enumerable: true, get: function () { return
|
|
23
|
+
var gambit_core_5 = require("@bolt-foundry/gambit-core");
|
|
24
|
+
Object.defineProperty(exports, "chatCompletionsWithDeck", { enumerable: true, get: function () { return gambit_core_5.chatCompletionsWithDeck; } });
|
|
25
25
|
/** Render a deck to a human-readable outline or debug view. */
|
|
26
|
-
var
|
|
27
|
-
Object.defineProperty(exports, "renderDeck", { enumerable: true, get: function () { return
|
|
26
|
+
var gambit_core_6 = require("@bolt-foundry/gambit-core");
|
|
27
|
+
Object.defineProperty(exports, "renderDeck", { enumerable: true, get: function () { return gambit_core_6.renderDeck; } });
|
|
28
28
|
/** Provider factory for OpenRouter-backed model calls. */
|
|
29
|
-
var
|
|
30
|
-
Object.defineProperty(exports, "createOpenRouterProvider", { enumerable: true, get: function () { return
|
|
29
|
+
var gambit_core_7 = require("@bolt-foundry/gambit-core");
|
|
30
|
+
Object.defineProperty(exports, "createOpenRouterProvider", { enumerable: true, get: function () { return gambit_core_7.createOpenRouterProvider; } });
|
|
31
31
|
/** Start the WebSocket simulator server for the Gambit UI. */
|
|
32
32
|
var server_js_1 = require("./src/server.js");
|
|
33
33
|
Object.defineProperty(exports, "startWebSocketSimulator", { enumerable: true, get: function () { return server_js_1.startWebSocketSimulator; } });
|
package/script/src/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
|
2
|
-
import type { ModelProvider } from "@bolt-foundry/gambit-core
|
|
2
|
+
import type { ModelProvider } from "@bolt-foundry/gambit-core";
|
|
3
3
|
/**
|
|
4
4
|
* Start the WebSocket simulator server used by the Gambit debug UI.
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAW5C,OAAO,KAAK,EAGV,aAAa,EAEd,MAAM,2BAA2B,CAAC;AA+ZnC;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAunExC"}
|
package/script/src/server.js
CHANGED
|
@@ -36,10 +36,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.startWebSocketSimulator = startWebSocketSimulator;
|
|
37
37
|
const dntShim = __importStar(require("../_dnt.shims.js"));
|
|
38
38
|
const path = __importStar(require("../deps/jsr.io/@std/path/1.1.4/mod.js"));
|
|
39
|
-
const
|
|
39
|
+
const gambit_core_1 = require("@bolt-foundry/gambit-core");
|
|
40
40
|
const test_bot_js_1 = require("./test_bot.js");
|
|
41
41
|
const trace_js_1 = require("./trace.js");
|
|
42
|
-
const
|
|
42
|
+
const gambit_core_2 = require("@bolt-foundry/gambit-core");
|
|
43
43
|
const durable_streams_js_1 = require("./durable_streams.js");
|
|
44
44
|
const logger = console;
|
|
45
45
|
const moduleLocation = (() => {
|
|
@@ -110,7 +110,7 @@ function resolveDefaultValue(raw) {
|
|
|
110
110
|
}
|
|
111
111
|
async function describeDeckInputSchemaFromPath(deckPath) {
|
|
112
112
|
try {
|
|
113
|
-
const deck = await (0,
|
|
113
|
+
const deck = await (0, gambit_core_2.loadDeck)(deckPath);
|
|
114
114
|
return describeZodSchema(deck.inputSchema);
|
|
115
115
|
}
|
|
116
116
|
catch (err) {
|
|
@@ -796,7 +796,7 @@ function startWebSocketSimulator(opts) {
|
|
|
796
796
|
stream: Boolean(streamOpts?.onStreamText),
|
|
797
797
|
onStreamText: streamOpts?.onStreamText,
|
|
798
798
|
});
|
|
799
|
-
if ((0,
|
|
799
|
+
if ((0, gambit_core_1.isGambitEndSignal)(result)) {
|
|
800
800
|
sessionEnded = true;
|
|
801
801
|
return "";
|
|
802
802
|
}
|
|
@@ -806,7 +806,7 @@ function startWebSocketSimulator(opts) {
|
|
|
806
806
|
const loop = async () => {
|
|
807
807
|
try {
|
|
808
808
|
if (!controller.signal.aborted) {
|
|
809
|
-
const initialResult = await (0,
|
|
809
|
+
const initialResult = await (0, gambit_core_1.runDeck)({
|
|
810
810
|
path: resolvedDeckPath,
|
|
811
811
|
input: deckInput,
|
|
812
812
|
inputProvided: hasDeckInput,
|
|
@@ -836,7 +836,7 @@ function startWebSocketSimulator(opts) {
|
|
|
836
836
|
appendFromState(enriched);
|
|
837
837
|
},
|
|
838
838
|
});
|
|
839
|
-
if ((0,
|
|
839
|
+
if ((0, gambit_core_1.isGambitEndSignal)(initialResult)) {
|
|
840
840
|
sessionEnded = true;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
@@ -865,7 +865,7 @@ function startWebSocketSimulator(opts) {
|
|
|
865
865
|
});
|
|
866
866
|
if (!userMessage)
|
|
867
867
|
break;
|
|
868
|
-
const rootResult = await (0,
|
|
868
|
+
const rootResult = await (0, gambit_core_1.runDeck)({
|
|
869
869
|
path: resolvedDeckPath,
|
|
870
870
|
input: deckInput,
|
|
871
871
|
inputProvided: hasDeckInput,
|
|
@@ -903,7 +903,7 @@ function startWebSocketSimulator(opts) {
|
|
|
903
903
|
ts: Date.now(),
|
|
904
904
|
}),
|
|
905
905
|
});
|
|
906
|
-
if ((0,
|
|
906
|
+
if ((0, gambit_core_1.isGambitEndSignal)(rootResult)) {
|
|
907
907
|
sessionEnded = true;
|
|
908
908
|
break;
|
|
909
909
|
}
|
|
@@ -943,7 +943,7 @@ function startWebSocketSimulator(opts) {
|
|
|
943
943
|
broadcastTestBot({ type: "testBotStatus", run });
|
|
944
944
|
return run;
|
|
945
945
|
};
|
|
946
|
-
const deckLoadPromise = (0,
|
|
946
|
+
const deckLoadPromise = (0, gambit_core_2.loadDeck)(resolvedDeckPath)
|
|
947
947
|
.then((deck) => {
|
|
948
948
|
resolvedDeckPath = deck.path;
|
|
949
949
|
deckSlug = deckSlugFromPath(resolvedDeckPath);
|
|
@@ -1593,7 +1593,7 @@ function startWebSocketSimulator(opts) {
|
|
|
1593
1593
|
}
|
|
1594
1594
|
simulatorRunning = true;
|
|
1595
1595
|
try {
|
|
1596
|
-
const result = await (0,
|
|
1596
|
+
const result = await (0, gambit_core_1.runDeck)({
|
|
1597
1597
|
path: resolvedDeckPath,
|
|
1598
1598
|
input,
|
|
1599
1599
|
inputProvided,
|
|
@@ -2305,7 +2305,7 @@ function shouldRetryWithStringInput(error) {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
async function runDeckWithFallback(args) {
|
|
2307
2307
|
try {
|
|
2308
|
-
return await (0,
|
|
2308
|
+
return await (0, gambit_core_1.runDeck)({
|
|
2309
2309
|
path: args.path,
|
|
2310
2310
|
input: args.input,
|
|
2311
2311
|
inputProvided: args.inputProvided,
|
|
@@ -2320,7 +2320,7 @@ async function runDeckWithFallback(args) {
|
|
|
2320
2320
|
}
|
|
2321
2321
|
catch (error) {
|
|
2322
2322
|
if (args.input === undefined && shouldRetryWithStringInput(error)) {
|
|
2323
|
-
return await (0,
|
|
2323
|
+
return await (0, gambit_core_1.runDeck)({
|
|
2324
2324
|
path: args.path,
|
|
2325
2325
|
input: "",
|
|
2326
2326
|
inputProvided: true,
|
package/script/src/trace.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TraceEvent } from "@bolt-foundry/gambit-core
|
|
1
|
+
import type { TraceEvent } from "@bolt-foundry/gambit-core";
|
|
2
2
|
export declare function makeJsonlTracer(filePath: string): (event: TraceEvent) => void;
|
|
3
3
|
export declare function makeConsoleTracer(): (event: TraceEvent) => void;
|
|
4
4
|
//# sourceMappingURL=trace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/src/trace.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/src/trace.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAI5D,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAQ7E;AAED,wBAAgB,iBAAiB,IAAI,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAmI/D"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gambit core exports for authoring and running decks/cards with runtime helpers.
|
|
3
|
-
*
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
/** Define a reusable card with shared behavior, tools, or guardrails. */
|
|
7
|
-
export { defineCard } from "./src/definitions.js";
|
|
8
|
-
/** Define a deck, the primary unit of execution. */
|
|
9
|
-
export { defineDeck } from "./src/definitions.js";
|
|
10
|
-
/** Action deck definition shape. */
|
|
11
|
-
export type { ActionDeckDefinition } from "@bolt-foundry/gambit-core/internal/types";
|
|
12
|
-
/** Card definition shape. */
|
|
13
|
-
export type { CardDefinition } from "@bolt-foundry/gambit-core/internal/types";
|
|
14
|
-
/** Deck definition shape. */
|
|
15
|
-
export type { DeckDefinition } from "@bolt-foundry/gambit-core/internal/types";
|
|
16
|
-
/** Reference to another deck. */
|
|
17
|
-
export type { DeckReferenceDefinition } from "@bolt-foundry/gambit-core/internal/types";
|
|
18
|
-
/** Execution context passed to decks. */
|
|
19
|
-
export type { ExecutionContext } from "@bolt-foundry/gambit-core/internal/types";
|
|
20
|
-
/** Grader deck definition shape. */
|
|
21
|
-
export type { GraderDeckDefinition } from "@bolt-foundry/gambit-core/internal/types";
|
|
22
|
-
/** Guardrails definition and hooks. */
|
|
23
|
-
export type { Guardrails } from "@bolt-foundry/gambit-core/internal/types";
|
|
24
|
-
/** JSON-serializable value type used throughout Gambit. */
|
|
25
|
-
export type { JSONValue } from "@bolt-foundry/gambit-core/internal/types";
|
|
26
|
-
/** Model provider interface for LLM backends. */
|
|
27
|
-
export type { ModelProvider } from "@bolt-foundry/gambit-core/internal/types";
|
|
28
|
-
/** Test deck definition shape. */
|
|
29
|
-
export type { TestDeckDefinition } from "@bolt-foundry/gambit-core/internal/types";
|
|
30
|
-
/** Check if a value is an explicit end-of-run signal. */
|
|
31
|
-
export { isGambitEndSignal } from "@bolt-foundry/gambit-core/internal/runtime";
|
|
32
|
-
/** Run a deck and return its execution result. */
|
|
33
|
-
export { runDeck } from "@bolt-foundry/gambit-core/internal/runtime";
|
|
34
|
-
/** Signal for explicitly ending a Gambit run. */
|
|
35
|
-
export type { GambitEndSignal } from "@bolt-foundry/gambit-core/internal/runtime";
|
|
36
|
-
/** OpenAI Chat Completions compatibility helper for a deck. */
|
|
37
|
-
export { chatCompletionsWithDeck } from "./src/openai_compat.js";
|
|
38
|
-
/** OpenAI-compatible request payload. */
|
|
39
|
-
export type { ChatCompletionsRequest } from "./src/openai_compat.js";
|
|
40
|
-
/** OpenAI-compatible response payload. */
|
|
41
|
-
export type { ChatCompletionsResponse } from "./src/openai_compat.js";
|
|
42
|
-
/** Render a deck to a human-readable outline or debug view. */
|
|
43
|
-
export { renderDeck } from "./src/render.js";
|
|
44
|
-
/** Options for deck rendering. */
|
|
45
|
-
export type { RenderDeckOptions } from "./src/render.js";
|
|
46
|
-
/** Result data from rendering a deck. */
|
|
47
|
-
export type { RenderDeckResult } from "./src/render.js";
|
|
48
|
-
/** Provider factory for OpenRouter-backed model calls. */
|
|
49
|
-
export { createOpenRouterProvider } from "./src/providers/openrouter.js";
|
|
50
|
-
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/packages/gambit-core/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yEAAyE;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,oDAAoD;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,oCAAoC;AACpC,YAAY,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,6BAA6B;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,6BAA6B;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/E,iCAAiC;AACjC,YAAY,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACxF,yCAAyC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AACjF,oCAAoC;AACpC,YAAY,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,uCAAuC;AACvC,YAAY,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAC3E,2DAA2D;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAC1E,iDAAiD;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC9E,kCAAkC;AAClC,YAAY,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,yDAAyD;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,kDAAkD;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,4CAA4C,CAAC;AACrE,iDAAiD;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAClF,+DAA+D;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,yCAAyC;AACzC,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,0CAA0C;AAC1C,YAAY,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACtE,+DAA+D;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,kCAAkC;AAClC,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,yCAAyC;AACzC,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,0DAA0D;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Gambit core exports for authoring and running decks/cards with runtime helpers.
|
|
3
|
-
*
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
/** Define a reusable card with shared behavior, tools, or guardrails. */
|
|
7
|
-
export { defineCard } from "./src/definitions.js";
|
|
8
|
-
/** Define a deck, the primary unit of execution. */
|
|
9
|
-
export { defineDeck } from "./src/definitions.js";
|
|
10
|
-
/** Check if a value is an explicit end-of-run signal. */
|
|
11
|
-
export { isGambitEndSignal } from "@bolt-foundry/gambit-core/internal/runtime";
|
|
12
|
-
/** Run a deck and return its execution result. */
|
|
13
|
-
export { runDeck } from "@bolt-foundry/gambit-core/internal/runtime";
|
|
14
|
-
/** OpenAI Chat Completions compatibility helper for a deck. */
|
|
15
|
-
export { chatCompletionsWithDeck } from "./src/openai_compat.js";
|
|
16
|
-
/** Render a deck to a human-readable outline or debug view. */
|
|
17
|
-
export { renderDeck } from "./src/render.js";
|
|
18
|
-
/** Provider factory for OpenRouter-backed model calls. */
|
|
19
|
-
export { createOpenRouterProvider } from "./src/providers/openrouter.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CardDefinition, DeckDefinition } from "@bolt-foundry/gambit-core/internal/types";
|
|
2
|
-
import type { z } from "zod";
|
|
3
|
-
export declare function defineDeck<InputSchema extends z.ZodTypeAny, OutputSchema extends z.ZodTypeAny | undefined = undefined>(def: Omit<DeckDefinition<z.infer<InputSchema>>, "kind" | "inputSchema" | "outputSchema"> & {
|
|
4
|
-
inputSchema: InputSchema;
|
|
5
|
-
outputSchema?: OutputSchema;
|
|
6
|
-
}): DeckDefinition<z.infer<InputSchema>>;
|
|
7
|
-
export declare function defineDeck(def: Omit<DeckDefinition, "kind">): DeckDefinition;
|
|
8
|
-
export declare function defineCard(def: Omit<CardDefinition, "kind">): CardDefinition;
|
|
9
|
-
export declare function isDeckDefinition(value: unknown): value is DeckDefinition;
|
|
10
|
-
export declare function isCardDefinition(value: unknown): value is CardDefinition;
|
|
11
|
-
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../src/packages/gambit-core/src/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAC/F,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,wBAAgB,UAAU,CACxB,WAAW,SAAS,CAAC,CAAC,UAAU,EAChC,YAAY,SAAS,CAAC,CAAC,UAAU,GAAG,SAAS,GAAG,SAAS,EAEzD,GAAG,EACC,IAAI,CACJ,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,EACpC,MAAM,GAAG,aAAa,GAAG,cAAc,CACxC,GACC;IACA,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,GACF,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACxC,wBAAgB,UAAU,CACxB,GAAG,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAChC,cAAc,CAAC;AAOlB,wBAAgB,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG,cAAc,CAE5E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAKxE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAKxE"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function defineDeck(def) {
|
|
2
|
-
return { kind: "gambit.deck", ...def };
|
|
3
|
-
}
|
|
4
|
-
export function defineCard(def) {
|
|
5
|
-
return { kind: "gambit.card", ...def };
|
|
6
|
-
}
|
|
7
|
-
export function isDeckDefinition(value) {
|
|
8
|
-
return Boolean(value && typeof value === "object" &&
|
|
9
|
-
value.kind === "gambit.deck");
|
|
10
|
-
}
|
|
11
|
-
export function isCardDefinition(value) {
|
|
12
|
-
return Boolean(value && typeof value === "object" &&
|
|
13
|
-
value.kind === "gambit.card");
|
|
14
|
-
}
|