@agentorg/computer 0.0.5 → 0.0.6
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/agentcomputer.js +4 -4
- package/package.json +1 -1
package/dist/agentcomputer.js
CHANGED
|
@@ -3759,7 +3759,6 @@ import { isMainThread as isMainThread2 } from "node:worker_threads";
|
|
|
3759
3759
|
|
|
3760
3760
|
// src/browser-host.ts
|
|
3761
3761
|
import { mkdtempSync, rmSync } from "node:fs";
|
|
3762
|
-
import { tmpdir } from "node:os";
|
|
3763
3762
|
import { join, sep } from "node:path";
|
|
3764
3763
|
|
|
3765
3764
|
// src/playwright.ts
|
|
@@ -3773,8 +3772,9 @@ var playwright = () => {
|
|
|
3773
3772
|
// src/browser-host.ts
|
|
3774
3773
|
var sandboxFor = (options) => options.sandbox ?? (process.platform !== "linux" || !options.executable && !["chromium", "chrome-for-testing"].includes(options.channel ?? "chrome"));
|
|
3775
3774
|
async function hostBrowser(options) {
|
|
3776
|
-
const run3 = mkdtempSync(join(
|
|
3775
|
+
const run3 = mkdtempSync(join("/tmp", "agentcomputer-"));
|
|
3777
3776
|
process.env.XDG_RUNTIME_DIR = run3;
|
|
3777
|
+
process.env.TMPDIR = run3;
|
|
3778
3778
|
const context = await playwright().chromium.launchPersistentContext(options.profile, {
|
|
3779
3779
|
headless: true,
|
|
3780
3780
|
chromiumSandbox: sandboxFor(options),
|
|
@@ -67185,7 +67185,7 @@ async function forward(url3, authorization, request, response) {
|
|
|
67185
67185
|
}
|
|
67186
67186
|
|
|
67187
67187
|
// src/handlers.ts
|
|
67188
|
-
var VERSION2 = "0.0.
|
|
67188
|
+
var VERSION2 = "0.0.6";
|
|
67189
67189
|
function createHandlers(computers) {
|
|
67190
67190
|
return {
|
|
67191
67191
|
getInfo: async () => ({ version: VERSION2, isolation: computers.isolation }),
|
|
@@ -84160,7 +84160,7 @@ var OPENAPI = {
|
|
|
84160
84160
|
"openapi": "3.1.0",
|
|
84161
84161
|
"info": {
|
|
84162
84162
|
"title": "AgentComputer",
|
|
84163
|
-
"version": "0.0.
|
|
84163
|
+
"version": "0.0.6",
|
|
84164
84164
|
"description": "Computers for agents. This file is the source of truth: the HTTP API, the MCP control tools and the SDK are all generated from it. An operation with `x-mcp-tool` is also an MCP tool of that name.",
|
|
84165
84165
|
"license": {
|
|
84166
84166
|
"name": "Apache-2.0",
|