@workbench-ai/workbench 0.0.51 → 0.0.52
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/dist/benchmark-fingerprint.d.ts +1 -3
- package/dist/benchmark-fingerprint.d.ts.map +1 -1
- package/dist/benchmark-fingerprint.js +19 -87
- package/dist/command-model.d.ts.map +1 -1
- package/dist/command-model.js +5 -3
- package/dist/dev-open/client.js +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +97 -77
- package/dist/local-archive.d.ts +1 -1
- package/dist/local-archive.d.ts.map +1 -1
- package/dist/local-archive.js +111 -18
- package/dist/project-source.d.ts +1 -0
- package/dist/project-source.d.ts.map +1 -1
- package/dist/project-source.js +23 -1
- package/package.json +4 -4
package/dist/project-source.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createHash, randomUUID } from "node:crypto";
|
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { BENCHMARK_SPEC_FILE, CANDIDATE_SPEC_FILE, buildWorkbenchProjectSourceFiles, engineResolveInvocationForSpec, normalizeSurfaceFiles, parseWorkbenchSourceFiles, resolveWorkbenchResolvedSourceYaml, serializeWorkbenchResolvedSourceYaml, validateWorkbenchResolvedSourceYaml, } from "@workbench-ai/workbench-core";
|
|
6
|
-
import { assertWorkbenchAdapterOperationSupport, assertWorkbenchAdapterOperationResultOk, collectWorkbenchAdapterInvocations, readWorkbenchAdapterOperationResult, workbenchAdapterOperationCommand, workbenchAdapterOperationResultPath, } from "@workbench-ai/workbench-protocol";
|
|
6
|
+
import { assertWorkbenchAdapterOperationSupport, assertWorkbenchAdapterOperationResultOk, collectWorkbenchAdapterInvocations, readWorkbenchAdapterOperationResult, WORKBENCH_ADAPTER_RESULT_FILE, WORKBENCH_ADAPTER_RESULT_PROTOCOL, workbenchAdapterOperationCommand, workbenchAdapterOperationResultPath, } from "@workbench-ai/workbench-protocol";
|
|
7
7
|
import { readSnapshotFiles, WorkspaceSnapshotError, } from "./workspace-snapshot.js";
|
|
8
8
|
import { defaultAdapterManifests, composeRuntimeDockerfileWithAdapters, resolveDefaultWorkbenchAdapter, resolveProjectAdapterSource, resolveWorkbenchAdaptersForProject, } from "./adapter-project.js";
|
|
9
9
|
import { createAdapterCommandEnv } from "./adapter-command-env.js";
|
|
@@ -136,6 +136,28 @@ export async function readLocalAuthoredProjectSource(source, options = {}) {
|
|
|
136
136
|
],
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
+
export function hostedEngineResolveFiles(source) {
|
|
140
|
+
return [
|
|
141
|
+
...source.engineResolveFiles,
|
|
142
|
+
{
|
|
143
|
+
path: WORKBENCH_ADAPTER_RESULT_FILE,
|
|
144
|
+
content: `${JSON.stringify({
|
|
145
|
+
protocol: WORKBENCH_ADAPTER_RESULT_PROTOCOL,
|
|
146
|
+
operation: "engine.resolve",
|
|
147
|
+
ok: true,
|
|
148
|
+
value: {
|
|
149
|
+
cases: source.engineCases,
|
|
150
|
+
...(source.engineResolveEnvironment
|
|
151
|
+
? { environment: source.engineResolveEnvironment }
|
|
152
|
+
: {}),
|
|
153
|
+
},
|
|
154
|
+
feedback: {
|
|
155
|
+
path: source.engineResolveFingerprintPath,
|
|
156
|
+
},
|
|
157
|
+
}, null, 2)}\n`,
|
|
158
|
+
},
|
|
159
|
+
];
|
|
160
|
+
}
|
|
139
161
|
async function resolveLocalProjectSourcePaths(source, options) {
|
|
140
162
|
const resolved = path.resolve(source);
|
|
141
163
|
const stat = await fs.stat(resolved).catch(() => null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workbench-ai/workbench",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"yaml": "^2.8.2",
|
|
24
|
-
"@workbench-ai/workbench-
|
|
25
|
-
"@workbench-ai/workbench-
|
|
26
|
-
"@workbench-ai/workbench-
|
|
24
|
+
"@workbench-ai/workbench-built-in-adapters": "0.0.52",
|
|
25
|
+
"@workbench-ai/workbench-core": "0.0.52",
|
|
26
|
+
"@workbench-ai/workbench-protocol": "0.0.52"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tailwindcss/postcss": "^4.2.2",
|