agents-relay 2.0.155 → 2.0.156
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/adapters.js +2 -2
- package/package.json +1 -1
package/dist/adapters.js
CHANGED
|
@@ -171,7 +171,7 @@ export function parseDriverJson(output) {
|
|
|
171
171
|
}
|
|
172
172
|
throw new Error('browser-worker driver returned no submitted receipt');
|
|
173
173
|
}
|
|
174
|
-
function browserWorkspaceCli(override = process.env.
|
|
174
|
+
function browserWorkspaceCli(override = process.env.AGENTS_RELAY_WEBHELM_COMMAND) {
|
|
175
175
|
return override ? { command: override, prefix: [] } : { command: 'uvx', prefix: ['--from', 'browser-workspace', 'webhelm'] };
|
|
176
176
|
}
|
|
177
177
|
const browserWorkspaceInjection = new AsyncLocalStorage();
|
|
@@ -274,7 +274,7 @@ async function accessiblePromptReferences(prompt) {
|
|
|
274
274
|
}
|
|
275
275
|
return readable;
|
|
276
276
|
}
|
|
277
|
-
export async function ensureChatGptBrowserWorkspace(command = process.env.
|
|
277
|
+
export async function ensureChatGptBrowserWorkspace(command = process.env.AGENTS_RELAY_WEBHELM_COMMAND) {
|
|
278
278
|
const status = parseWorkspaceJson(await browserWorkspaceCommand(browserWorkspaceCli(command), ['status']));
|
|
279
279
|
if (typeof status.admin_helper !== 'string' || !status.admin_helper.startsWith('/')) {
|
|
280
280
|
throw new Error('webhelm status returned no absolute admin_helper path');
|