@bolt-foundry/gambit 0.8.5-rc.6 → 0.8.5
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 +57 -2
- package/README.md +16 -7
- package/esm/_dnt.polyfills.d.ts +7 -7
- package/esm/_dnt.polyfills.d.ts.map +1 -1
- package/esm/_dnt.polyfills.js +14 -13
- package/esm/deps/jsr.io/@std/path/1.1.4/constants.d.ts +1 -1
- package/esm/gambit/simulator-ui/dist/bundle.js +2464 -380
- package/esm/gambit/simulator-ui/dist/bundle.js.map +4 -4
- package/esm/src/providers/codex.d.ts.map +1 -1
- package/esm/src/providers/codex.js +5 -1
- package/esm/src/providers/ollama.d.ts.map +1 -1
- package/esm/src/providers/ollama.js +57 -0
- package/esm/src/providers/openrouter.d.ts.map +1 -1
- package/esm/src/providers/openrouter.js +75 -1
- package/esm/src/server.d.ts.map +1 -1
- package/esm/src/server.js +346 -32
- package/esm/src/server_session_store.d.ts.map +1 -1
- package/esm/src/server_session_store.js +7 -4
- package/esm/src/server_types.d.ts +1 -0
- package/esm/src/server_types.d.ts.map +1 -1
- package/esm/src/server_ui_routes.d.ts.map +1 -1
- package/esm/src/server_ui_routes.js +3 -0
- package/esm/src/workspace.d.ts.map +1 -1
- package/esm/src/workspace.js +0 -2
- package/esm/src/workspace_contract.d.ts +1 -1
- package/esm/src/workspace_contract.d.ts.map +1 -1
- package/esm/src/workspace_contract.js +2 -1
- package/package.json +2 -2
- package/script/_dnt.polyfills.d.ts +7 -7
- package/script/_dnt.polyfills.d.ts.map +1 -1
- package/script/_dnt.polyfills.js +14 -13
- package/script/deps/jsr.io/@std/path/1.1.4/constants.d.ts +1 -1
- package/script/gambit/simulator-ui/dist/bundle.js +2464 -380
- package/script/gambit/simulator-ui/dist/bundle.js.map +4 -4
- package/script/src/providers/codex.d.ts.map +1 -1
- package/script/src/providers/codex.js +5 -1
- package/script/src/providers/ollama.d.ts.map +1 -1
- package/script/src/providers/ollama.js +57 -0
- package/script/src/providers/openrouter.d.ts.map +1 -1
- package/script/src/providers/openrouter.js +75 -1
- package/script/src/server.d.ts.map +1 -1
- package/script/src/server.js +346 -32
- package/script/src/server_session_store.d.ts.map +1 -1
- package/script/src/server_session_store.js +7 -4
- package/script/src/server_types.d.ts +1 -0
- package/script/src/server_types.d.ts.map +1 -1
- package/script/src/server_ui_routes.d.ts.map +1 -1
- package/script/src/server_ui_routes.js +3 -0
- package/script/src/workspace.d.ts.map +1 -1
- package/script/src/workspace.js +0 -2
- package/script/src/workspace_contract.d.ts +1 -1
- package/script/src/workspace_contract.d.ts.map +1 -1
- package/script/src/workspace_contract.js +2 -1
|
@@ -8,6 +8,9 @@ export const handleUiRoutes = async (deps) => {
|
|
|
8
8
|
url.pathname.startsWith("/simulate") ||
|
|
9
9
|
url.pathname.startsWith("/debug") ||
|
|
10
10
|
url.pathname.startsWith("/build") ||
|
|
11
|
+
url.pathname.startsWith("/test") ||
|
|
12
|
+
url.pathname.startsWith("/grade") ||
|
|
13
|
+
url.pathname.startsWith("/verify") ||
|
|
11
14
|
url.pathname.startsWith("/editor") ||
|
|
12
15
|
url.pathname.startsWith("/docs")) {
|
|
13
16
|
const hasBundle = await canServeReactBundle();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/src/workspace.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/src/workspace.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ,CAAC;AAyHF,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,CAAC,CA4BhC;AAED,wBAAsB,uBAAuB,CAC3C,IAAI,EAAE,wBAAwB,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAkC5B"}
|
package/esm/src/workspace.js
CHANGED
|
@@ -89,8 +89,6 @@ responseSchema = "gambit://schemas/graders/grader_output.zod.ts"
|
|
|
89
89
|
model = ["ollama/hf.co/LiquidAI/LFM2-1.2B-Tool-GGUF:latest", "openrouter/openai/gpt-5.1-chat"]
|
|
90
90
|
+++
|
|
91
91
|
|
|
92
|
-

|
|
93
|
-
|
|
94
92
|
You are grading the assistant's response for clarity and helpfulness.
|
|
95
93
|
|
|
96
94
|
Score 1 if the assistant is clear and directly answers the user.
|
|
@@ -2,7 +2,7 @@ export declare const WORKSPACE_STATE_SCHEMA_VERSION = "workspace-state.v1";
|
|
|
2
2
|
export declare const WORKSPACE_ROUTE_BASE = "/workspaces";
|
|
3
3
|
export declare const WORKSPACE_API_BASE = "/api/workspace";
|
|
4
4
|
export declare const WORKSPACES_API_BASE = "/api/workspaces";
|
|
5
|
-
export type WorkspaceRouteTab = "debug" | "build" | "test" | "grade";
|
|
5
|
+
export type WorkspaceRouteTab = "debug" | "build" | "test" | "grade" | "verify";
|
|
6
6
|
export declare const WORKSPACE_ROUTE_TABS: Array<WorkspaceRouteTab>;
|
|
7
7
|
export type WorkspaceRoute = {
|
|
8
8
|
workspaceId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace_contract.d.ts","sourceRoot":"","sources":["../../src/src/workspace_contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AAEnE,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD,MAAM,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"workspace_contract.d.ts","sourceRoot":"","sources":["../../src/src/workspace_contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AAEnE,eAAO,MAAM,oBAAoB,gBAAgB,CAAC;AAClD,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,OAAO,GACP,MAAM,GACN,OAAO,GACP,QAAQ,CAAC;AAEb,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,iBAAiB,CAMzD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,GAAG,EAAE,iBAAiB,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B;IACA,IAAI,EAAE,cAAc,CAA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AO,CAAA;CAAE,GAC1D;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GAC3D,oBAAoB,CAAC;AAEzB,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,KAAK,iBAAiB,EACtB,cAAc,MAAM,GAAG,IAAI,EAC3B,OAAO;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,KACxB,MAOF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,KACf,cAAc,GAAG,IAsBnB,CAAC;AAEF,eAAO,MAAM,oBAAoB,0BAA2B,CAAC;AAa7D,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,MAAM,GAAG,SAMX,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAC7C,QAAQ,eAAe,KACtB,MAAM,GAAG,SAQX,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,EACnB,cAAc,MAAM,GAAG,IAAI,KAC1B,MAOF,CAAC"}
|
|
@@ -7,6 +7,7 @@ export const WORKSPACE_ROUTE_TABS = [
|
|
|
7
7
|
"build",
|
|
8
8
|
"test",
|
|
9
9
|
"grade",
|
|
10
|
+
"verify",
|
|
10
11
|
];
|
|
11
12
|
export const buildWorkspacePath = (tab, workspaceId, opts) => {
|
|
12
13
|
const encoded = workspaceId ? encodeURIComponent(workspaceId) : "new";
|
|
@@ -19,7 +20,7 @@ export const buildWorkspacePath = (tab, workspaceId, opts) => {
|
|
|
19
20
|
return `${base}/${encodeURIComponent(runId)}`;
|
|
20
21
|
};
|
|
21
22
|
export const parseWorkspaceRoute = (pathname) => {
|
|
22
|
-
const match = pathname.match(/^\/workspaces\/([^/]+)\/(debug|build|test|grade)(?:\/([^/]+))?$/);
|
|
23
|
+
const match = pathname.match(/^\/workspaces\/([^/]+)\/(debug|build|test|grade|verify)(?:\/([^/]+))?$/);
|
|
23
24
|
if (!match)
|
|
24
25
|
return null;
|
|
25
26
|
const rawId = decodeURIComponent(match[1]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolt-foundry/gambit",
|
|
3
|
-
"version": "0.8.5
|
|
3
|
+
"version": "0.8.5",
|
|
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,7 +24,7 @@
|
|
|
24
24
|
"gambit": "bin/gambit.cjs"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@bolt-foundry/gambit-core": "^0.8.5
|
|
27
|
+
"@bolt-foundry/gambit-core": "^0.8.5",
|
|
28
28
|
"openai": "^4.78.1",
|
|
29
29
|
"zod": "^3.23.8",
|
|
30
30
|
"@deno/shim-deno": "~0.18.0"
|
|
@@ -97,13 +97,6 @@ interface ImportMetaPonyfill extends ImportMetaPonyfillCommonjs, ImportMetaPonyf
|
|
|
97
97
|
export declare let import_meta_ponyfill_commonjs: ImportMetaPonyfillCommonjs;
|
|
98
98
|
export declare let import_meta_ponyfill_esmodule: ImportMetaPonyfillEsmodule;
|
|
99
99
|
export declare let import_meta_ponyfill: ImportMetaPonyfill;
|
|
100
|
-
declare global {
|
|
101
|
-
interface ArrayConstructor {
|
|
102
|
-
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>): Promise<T[]>;
|
|
103
|
-
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
export {};
|
|
107
100
|
declare global {
|
|
108
101
|
interface Object {
|
|
109
102
|
/**
|
|
@@ -115,4 +108,11 @@ declare global {
|
|
|
115
108
|
}
|
|
116
109
|
}
|
|
117
110
|
export {};
|
|
111
|
+
declare global {
|
|
112
|
+
interface ArrayConstructor {
|
|
113
|
+
fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | Promise<T>> | ArrayLike<T | Promise<T>>): Promise<T[]>;
|
|
114
|
+
fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
118
118
|
//# sourceMappingURL=_dnt.polyfills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.polyfills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAgC,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;AAGlE,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB;;;;;;;;;;;;;;WAcG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;;;;;;;;;;;WAYG;QACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,GAAG,MAAM,CAAC;QACtE;;;;;;;;WAQG;QACH,IAAI,EAAE,OAAO,CAAC;QAEd;;;;;;;;;;;;WAYG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;;;;;;;;;;WAYG;QACH,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AO,EAAE,CAAC"}
|
package/script/_dnt.polyfills.js
CHANGED
|
@@ -128,6 +128,20 @@ exports.import_meta_ponyfill = ((...args) => {
|
|
|
128
128
|
//@ts-ignore
|
|
129
129
|
return (0, exports.import_meta_ponyfill)(...args);
|
|
130
130
|
});
|
|
131
|
+
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
132
|
+
if (!Object.hasOwn) {
|
|
133
|
+
Object.defineProperty(Object, "hasOwn", {
|
|
134
|
+
value: function (object, property) {
|
|
135
|
+
if (object == null) {
|
|
136
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
137
|
+
}
|
|
138
|
+
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
139
|
+
},
|
|
140
|
+
configurable: true,
|
|
141
|
+
enumerable: false,
|
|
142
|
+
writable: true,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
131
145
|
// From https://github.com/es-shims/array-from-async/blob/4a5ff83947b861f35b380d5d4f20da2f07698638/index.mjs
|
|
132
146
|
// Tried to have dnt depend on the package instead, but it distributes as an
|
|
133
147
|
// ES module, so doesn't work with CommonJS.
|
|
@@ -237,16 +251,3 @@ async function fromAsync(items, mapfn, thisArg) {
|
|
|
237
251
|
if (!Array.fromAsync) {
|
|
238
252
|
Array.fromAsync = fromAsync;
|
|
239
253
|
}
|
|
240
|
-
if (!Object.hasOwn) {
|
|
241
|
-
Object.defineProperty(Object, "hasOwn", {
|
|
242
|
-
value: function (object, property) {
|
|
243
|
-
if (object == null) {
|
|
244
|
-
throw new TypeError("Cannot convert undefined or null to object");
|
|
245
|
-
}
|
|
246
|
-
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
247
|
-
},
|
|
248
|
-
configurable: true,
|
|
249
|
-
enumerable: false,
|
|
250
|
-
writable: true,
|
|
251
|
-
});
|
|
252
|
-
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The character used to separate entries in the PATH environment variable.
|
|
3
3
|
* On Windows, this is `;`. On all other platforms, this is `:`.
|
|
4
4
|
*/
|
|
5
|
-
export declare const DELIMITER: "
|
|
5
|
+
export declare const DELIMITER: ":" | ";";
|
|
6
6
|
/**
|
|
7
7
|
* The character used to separate components of a file path.
|
|
8
8
|
* On Windows, this is `\`. On all other platforms, this is `/`.
|