@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.
Files changed (55) hide show
  1. package/CHANGELOG.md +15 -3
  2. package/README.md +4 -4
  3. package/esm/mod.d.ts +22 -22
  4. package/esm/mod.d.ts.map +1 -1
  5. package/esm/mod.js +7 -7
  6. package/esm/src/server.d.ts +1 -1
  7. package/esm/src/server.d.ts.map +1 -1
  8. package/esm/src/server.js +2 -2
  9. package/esm/src/trace.d.ts +1 -1
  10. package/esm/src/trace.d.ts.map +1 -1
  11. package/package.json +2 -4
  12. package/script/mod.d.ts +22 -22
  13. package/script/mod.d.ts.map +1 -1
  14. package/script/mod.js +14 -14
  15. package/script/src/server.d.ts +1 -1
  16. package/script/src/server.d.ts.map +1 -1
  17. package/script/src/server.js +12 -12
  18. package/script/src/trace.d.ts +1 -1
  19. package/script/src/trace.d.ts.map +1 -1
  20. package/esm/packages/gambit-core/mod.d.ts +0 -50
  21. package/esm/packages/gambit-core/mod.d.ts.map +0 -1
  22. package/esm/packages/gambit-core/mod.js +0 -19
  23. package/esm/packages/gambit-core/src/definitions.d.ts +0 -11
  24. package/esm/packages/gambit-core/src/definitions.d.ts.map +0 -1
  25. package/esm/packages/gambit-core/src/definitions.js +0 -14
  26. package/esm/packages/gambit-core/src/openai_compat.d.ts +0 -63
  27. package/esm/packages/gambit-core/src/openai_compat.d.ts.map +0 -1
  28. package/esm/packages/gambit-core/src/openai_compat.js +0 -272
  29. package/esm/packages/gambit-core/src/providers/openrouter.d.ts +0 -8
  30. package/esm/packages/gambit-core/src/providers/openrouter.d.ts.map +0 -1
  31. package/esm/packages/gambit-core/src/providers/openrouter.js +0 -168
  32. package/esm/packages/gambit-core/src/render.d.ts +0 -51
  33. package/esm/packages/gambit-core/src/render.d.ts.map +0 -1
  34. package/esm/packages/gambit-core/src/render.js +0 -188
  35. package/esm/packages/gambit-core/src/schema.d.ts +0 -8
  36. package/esm/packages/gambit-core/src/schema.d.ts.map +0 -1
  37. package/esm/packages/gambit-core/src/schema.js +0 -45
  38. package/script/packages/gambit-core/mod.d.ts +0 -50
  39. package/script/packages/gambit-core/mod.d.ts.map +0 -1
  40. package/script/packages/gambit-core/mod.js +0 -29
  41. package/script/packages/gambit-core/src/definitions.d.ts +0 -11
  42. package/script/packages/gambit-core/src/definitions.d.ts.map +0 -1
  43. package/script/packages/gambit-core/src/definitions.js +0 -20
  44. package/script/packages/gambit-core/src/openai_compat.d.ts +0 -63
  45. package/script/packages/gambit-core/src/openai_compat.d.ts.map +0 -1
  46. package/script/packages/gambit-core/src/openai_compat.js +0 -276
  47. package/script/packages/gambit-core/src/providers/openrouter.d.ts +0 -8
  48. package/script/packages/gambit-core/src/providers/openrouter.d.ts.map +0 -1
  49. package/script/packages/gambit-core/src/providers/openrouter.js +0 -207
  50. package/script/packages/gambit-core/src/render.d.ts +0 -51
  51. package/script/packages/gambit-core/src/render.d.ts.map +0 -1
  52. package/script/packages/gambit-core/src/render.js +0 -192
  53. package/script/packages/gambit-core/src/schema.d.ts +0 -8
  54. package/script/packages/gambit-core/src/schema.d.ts.map +0 -1
  55. 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 = "b0ddcc2ba4e861e0879dc92cc713e8cde30d230f"
3
+ since = "225456917f75e92cc095af525201373c4be37944"
4
4
  +++
5
5
 
6
6
  # Changelog
7
7
 
8
- ## Unreleased (v0.6.1)
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 mirror layout and derive
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 mirrored into
4
- `github.com/bolt-foundry/gambit`. For now, that repo is a strict mirror (please
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 the public mirror.
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 "./packages/gambit-core/mod.js";
8
+ export { defineCard } from "@bolt-foundry/gambit-core";
9
9
  /** Define a deck, the primary unit of execution. */
10
- export { defineDeck } from "./packages/gambit-core/mod.js";
10
+ export { defineDeck } from "@bolt-foundry/gambit-core";
11
11
  /** Action deck definition shape. */
12
- export type { ActionDeckDefinition } from "./packages/gambit-core/mod.js";
12
+ export type { ActionDeckDefinition } from "@bolt-foundry/gambit-core";
13
13
  /** Card definition shape. */
14
- export type { CardDefinition } from "./packages/gambit-core/mod.js";
14
+ export type { CardDefinition } from "@bolt-foundry/gambit-core";
15
15
  /** Deck definition shape. */
16
- export type { DeckDefinition } from "./packages/gambit-core/mod.js";
16
+ export type { DeckDefinition } from "@bolt-foundry/gambit-core";
17
17
  /** Reference to another deck. */
18
- export type { DeckReferenceDefinition } from "./packages/gambit-core/mod.js";
18
+ export type { DeckReferenceDefinition } from "@bolt-foundry/gambit-core";
19
19
  /** Execution context passed to decks. */
20
- export type { ExecutionContext } from "./packages/gambit-core/mod.js";
20
+ export type { ExecutionContext } from "@bolt-foundry/gambit-core";
21
21
  /** Grader deck definition shape. */
22
- export type { GraderDeckDefinition } from "./packages/gambit-core/mod.js";
22
+ export type { GraderDeckDefinition } from "@bolt-foundry/gambit-core";
23
23
  /** Guardrails definition and hooks. */
24
- export type { Guardrails } from "./packages/gambit-core/mod.js";
24
+ export type { Guardrails } from "@bolt-foundry/gambit-core";
25
25
  /** JSON-serializable value type used throughout Gambit. */
26
- export type { JSONValue } from "./packages/gambit-core/mod.js";
26
+ export type { JSONValue } from "@bolt-foundry/gambit-core";
27
27
  /** Model provider interface for LLM backends. */
28
- export type { ModelProvider } from "./packages/gambit-core/mod.js";
28
+ export type { ModelProvider } from "@bolt-foundry/gambit-core";
29
29
  /** Test deck definition shape. */
30
- export type { TestDeckDefinition } from "./packages/gambit-core/mod.js";
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 "./packages/gambit-core/mod.js";
32
+ export { isGambitEndSignal } from "@bolt-foundry/gambit-core";
33
33
  /** Run a deck and return its execution result. */
34
- export { runDeck } from "./packages/gambit-core/mod.js";
34
+ export { runDeck } from "@bolt-foundry/gambit-core";
35
35
  /** Signal for explicitly ending a Gambit run. */
36
- export type { GambitEndSignal } from "./packages/gambit-core/mod.js";
36
+ export type { GambitEndSignal } from "@bolt-foundry/gambit-core";
37
37
  /** OpenAI Chat Completions compatibility helper for a deck. */
38
- export { chatCompletionsWithDeck } from "./packages/gambit-core/mod.js";
38
+ export { chatCompletionsWithDeck } from "@bolt-foundry/gambit-core";
39
39
  /** OpenAI-compatible request payload. */
40
- export type { ChatCompletionsRequest } from "./packages/gambit-core/mod.js";
40
+ export type { ChatCompletionsRequest } from "@bolt-foundry/gambit-core";
41
41
  /** OpenAI-compatible response payload. */
42
- export type { ChatCompletionsResponse } from "./packages/gambit-core/mod.js";
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 "./packages/gambit-core/mod.js";
44
+ export { renderDeck } from "@bolt-foundry/gambit-core";
45
45
  /** Options for deck rendering. */
46
- export type { RenderDeckOptions } from "./packages/gambit-core/mod.js";
46
+ export type { RenderDeckOptions } from "@bolt-foundry/gambit-core";
47
47
  /** Result data from rendering a deck. */
48
- export type { RenderDeckResult } from "./packages/gambit-core/mod.js";
48
+ export type { RenderDeckResult } from "@bolt-foundry/gambit-core";
49
49
  /** Provider factory for OpenRouter-backed model calls. */
50
- export { createOpenRouterProvider } from "./packages/gambit-core/mod.js";
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,+BAA+B,CAAC;AAC3D,oDAAoD;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,oCAAoC;AACpC,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,6BAA6B;AAC7B,YAAY,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,6BAA6B;AAC7B,YAAY,EAAE,cAAc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,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 "./packages/gambit-core/mod.js";
8
+ export { defineCard } from "@bolt-foundry/gambit-core";
9
9
  /** Define a deck, the primary unit of execution. */
10
- export { defineDeck } from "./packages/gambit-core/mod.js";
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 "./packages/gambit-core/mod.js";
12
+ export { isGambitEndSignal } from "@bolt-foundry/gambit-core";
13
13
  /** Run a deck and return its execution result. */
14
- export { runDeck } from "./packages/gambit-core/mod.js";
14
+ export { runDeck } from "@bolt-foundry/gambit-core";
15
15
  /** OpenAI Chat Completions compatibility helper for a deck. */
16
- export { chatCompletionsWithDeck } from "./packages/gambit-core/mod.js";
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 "./packages/gambit-core/mod.js";
18
+ export { renderDeck } from "@bolt-foundry/gambit-core";
19
19
  /** Provider factory for OpenRouter-backed model calls. */
20
- export { createOpenRouterProvider } from "./packages/gambit-core/mod.js";
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";
@@ -1,5 +1,5 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
- import type { ModelProvider } from "@bolt-foundry/gambit-core/internal/types";
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;AAiB5C,OAAO,KAAK,EAGV,aAAa,EAEd,MAAM,0CAA0C,CAAC;AA+ZlD;;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"}
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, } from "@bolt-foundry/gambit-core/internal/runtime";
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/internal/loader";
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 = (() => {
@@ -1,4 +1,4 @@
1
- import type { TraceEvent } from "@bolt-foundry/gambit-core/internal/types";
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,0CAA0C,CAAC;AAI3E,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
+ {"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.0",
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.0",
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 "./packages/gambit-core/mod.js";
8
+ export { defineCard } from "@bolt-foundry/gambit-core";
9
9
  /** Define a deck, the primary unit of execution. */
10
- export { defineDeck } from "./packages/gambit-core/mod.js";
10
+ export { defineDeck } from "@bolt-foundry/gambit-core";
11
11
  /** Action deck definition shape. */
12
- export type { ActionDeckDefinition } from "./packages/gambit-core/mod.js";
12
+ export type { ActionDeckDefinition } from "@bolt-foundry/gambit-core";
13
13
  /** Card definition shape. */
14
- export type { CardDefinition } from "./packages/gambit-core/mod.js";
14
+ export type { CardDefinition } from "@bolt-foundry/gambit-core";
15
15
  /** Deck definition shape. */
16
- export type { DeckDefinition } from "./packages/gambit-core/mod.js";
16
+ export type { DeckDefinition } from "@bolt-foundry/gambit-core";
17
17
  /** Reference to another deck. */
18
- export type { DeckReferenceDefinition } from "./packages/gambit-core/mod.js";
18
+ export type { DeckReferenceDefinition } from "@bolt-foundry/gambit-core";
19
19
  /** Execution context passed to decks. */
20
- export type { ExecutionContext } from "./packages/gambit-core/mod.js";
20
+ export type { ExecutionContext } from "@bolt-foundry/gambit-core";
21
21
  /** Grader deck definition shape. */
22
- export type { GraderDeckDefinition } from "./packages/gambit-core/mod.js";
22
+ export type { GraderDeckDefinition } from "@bolt-foundry/gambit-core";
23
23
  /** Guardrails definition and hooks. */
24
- export type { Guardrails } from "./packages/gambit-core/mod.js";
24
+ export type { Guardrails } from "@bolt-foundry/gambit-core";
25
25
  /** JSON-serializable value type used throughout Gambit. */
26
- export type { JSONValue } from "./packages/gambit-core/mod.js";
26
+ export type { JSONValue } from "@bolt-foundry/gambit-core";
27
27
  /** Model provider interface for LLM backends. */
28
- export type { ModelProvider } from "./packages/gambit-core/mod.js";
28
+ export type { ModelProvider } from "@bolt-foundry/gambit-core";
29
29
  /** Test deck definition shape. */
30
- export type { TestDeckDefinition } from "./packages/gambit-core/mod.js";
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 "./packages/gambit-core/mod.js";
32
+ export { isGambitEndSignal } from "@bolt-foundry/gambit-core";
33
33
  /** Run a deck and return its execution result. */
34
- export { runDeck } from "./packages/gambit-core/mod.js";
34
+ export { runDeck } from "@bolt-foundry/gambit-core";
35
35
  /** Signal for explicitly ending a Gambit run. */
36
- export type { GambitEndSignal } from "./packages/gambit-core/mod.js";
36
+ export type { GambitEndSignal } from "@bolt-foundry/gambit-core";
37
37
  /** OpenAI Chat Completions compatibility helper for a deck. */
38
- export { chatCompletionsWithDeck } from "./packages/gambit-core/mod.js";
38
+ export { chatCompletionsWithDeck } from "@bolt-foundry/gambit-core";
39
39
  /** OpenAI-compatible request payload. */
40
- export type { ChatCompletionsRequest } from "./packages/gambit-core/mod.js";
40
+ export type { ChatCompletionsRequest } from "@bolt-foundry/gambit-core";
41
41
  /** OpenAI-compatible response payload. */
42
- export type { ChatCompletionsResponse } from "./packages/gambit-core/mod.js";
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 "./packages/gambit-core/mod.js";
44
+ export { renderDeck } from "@bolt-foundry/gambit-core";
45
45
  /** Options for deck rendering. */
46
- export type { RenderDeckOptions } from "./packages/gambit-core/mod.js";
46
+ export type { RenderDeckOptions } from "@bolt-foundry/gambit-core";
47
47
  /** Result data from rendering a deck. */
48
- export type { RenderDeckResult } from "./packages/gambit-core/mod.js";
48
+ export type { RenderDeckResult } from "@bolt-foundry/gambit-core";
49
49
  /** Provider factory for OpenRouter-backed model calls. */
50
- export { createOpenRouterProvider } from "./packages/gambit-core/mod.js";
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
@@ -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,+BAA+B,CAAC;AAC3D,o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D;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 mod_js_1 = require("./packages/gambit-core/mod.js");
12
- Object.defineProperty(exports, "defineCard", { enumerable: true, get: function () { return mod_js_1.defineCard; } });
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 mod_js_2 = require("./packages/gambit-core/mod.js");
15
- Object.defineProperty(exports, "defineDeck", { enumerable: true, get: function () { return mod_js_2.defineDeck; } });
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 mod_js_3 = require("./packages/gambit-core/mod.js");
18
- Object.defineProperty(exports, "isGambitEndSignal", { enumerable: true, get: function () { return mod_js_3.isGambitEndSignal; } });
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 mod_js_4 = require("./packages/gambit-core/mod.js");
21
- Object.defineProperty(exports, "runDeck", { enumerable: true, get: function () { return mod_js_4.runDeck; } });
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 mod_js_5 = require("./packages/gambit-core/mod.js");
24
- Object.defineProperty(exports, "chatCompletionsWithDeck", { enumerable: true, get: function () { return mod_js_5.chatCompletionsWithDeck; } });
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 mod_js_6 = require("./packages/gambit-core/mod.js");
27
- Object.defineProperty(exports, "renderDeck", { enumerable: true, get: function () { return mod_js_6.renderDeck; } });
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 mod_js_7 = require("./packages/gambit-core/mod.js");
30
- Object.defineProperty(exports, "createOpenRouterProvider", { enumerable: true, get: function () { return mod_js_7.createOpenRouterProvider; } });
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; } });
@@ -1,5 +1,5 @@
1
1
  import * as dntShim from "../_dnt.shims.js";
2
- import type { ModelProvider } from "@bolt-foundry/gambit-core/internal/types";
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;AAiB5C,OAAO,KAAK,EAGV,aAAa,EAEd,MAAM,0CAA0C,CAAC;AA+ZlD;;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"}
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"}
@@ -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 runtime_1 = require("@bolt-foundry/gambit-core/internal/runtime");
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 loader_1 = require("@bolt-foundry/gambit-core/internal/loader");
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, loader_1.loadDeck)(deckPath);
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, runtime_1.isGambitEndSignal)(result)) {
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, runtime_1.runDeck)({
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, runtime_1.isGambitEndSignal)(initialResult)) {
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, runtime_1.runDeck)({
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, runtime_1.isGambitEndSignal)(rootResult)) {
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, loader_1.loadDeck)(resolvedDeckPath)
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, runtime_1.runDeck)({
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, runtime_1.runDeck)({
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, runtime_1.runDeck)({
2323
+ return await (0, gambit_core_1.runDeck)({
2324
2324
  path: args.path,
2325
2325
  input: "",
2326
2326
  inputProvided: true,
@@ -1,4 +1,4 @@
1
- import type { TraceEvent } from "@bolt-foundry/gambit-core/internal/types";
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,0CAA0C,CAAC;AAI3E,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
+ {"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
- }