agentroam 0.2.0-preview.12 → 0.2.0-preview.14

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/README.md CHANGED
@@ -20,20 +20,20 @@ npx agentroam@preview
20
20
  Or install from tarball:
21
21
 
22
22
  ```bash
23
- npm install ./agentroam-cloudflared-darwin-arm64-0.2.0-preview.12.tgz \
24
- ./agentroam-runtime-darwin-arm64-0.2.0-preview.12.tgz \
25
- ./agentroam-tui-darwin-arm64-0.2.0-preview.12.tgz \
26
- ./agentroam-0.2.0-preview.12.tgz
23
+ npm install ./agentroam-cloudflared-darwin-arm64-0.2.0-preview.14.tgz \
24
+ ./agentroam-runtime-darwin-arm64-0.2.0-preview.14.tgz \
25
+ ./agentroam-tui-darwin-arm64-0.2.0-preview.14.tgz \
26
+ ./agentroam-0.2.0-preview.14.tgz
27
27
  npx agentroam
28
28
  ```
29
29
 
30
30
  Windows PowerShell:
31
31
 
32
32
  ```powershell
33
- npm install ./agentroam-cloudflared-win32-x64-0.2.0-preview.12.tgz `
34
- ./agentroam-runtime-win32-x64-0.2.0-preview.12.tgz `
35
- ./caoqu-agentroam-tui-win32-x64-0.2.0-preview.12.tgz `
36
- ./agentroam-0.2.0-preview.12.tgz
33
+ npm install ./agentroam-cloudflared-win32-x64-0.2.0-preview.14.tgz `
34
+ ./agentroam-runtime-win32-x64-0.2.0-preview.14.tgz `
35
+ ./caoqu-agentroam-tui-win32-x64-0.2.0-preview.14.tgz `
36
+ ./agentroam-0.2.0-preview.14.tgz
37
37
  npx agentroam
38
38
  ```
39
39
 
@@ -7,7 +7,7 @@ import { promisify } from "node:util";
7
7
 
8
8
  const execFileAsync = promisify(execFile);
9
9
  const MANAGED_NODE_VERSION = "22.22.0";
10
- const RELEASE_VERSION = "0.2.0-preview.12";
10
+ const RELEASE_VERSION = "0.2.0-preview.14";
11
11
  const RELEASE_BASE_URL = `https://gitee.com/caoqu/team-agent/releases/download/v${RELEASE_VERSION}`;
12
12
  const FORWARDED_SIGNALS = ["SIGINT", "SIGTERM", "SIGHUP"];
13
13
 
@@ -7,8 +7,10 @@ const execFileAsync = promisify(execFile);
7
7
  export const CODEX_RUNTIME_VERSION = "0.153.0";
8
8
  const CODEX_PACKAGE = `@openai/codex@${CODEX_RUNTIME_VERSION}`;
9
9
  const NPM_REGISTRY = "https://registry.npmjs.org";
10
+ export const CODEX_INSTALL_TIMEOUT_MS = 60 * 60_000;
10
11
  const DEFAULT_LOCK_WAIT_MS = 190_000;
11
- const DEFAULT_STALE_LOCK_MS = 5 * 60_000;
12
+ export const CODEX_INSTALL_STALE_LOCK_MS = CODEX_INSTALL_TIMEOUT_MS + 5 * 60_000;
13
+ const DEFAULT_STALE_LOCK_MS = CODEX_INSTALL_STALE_LOCK_MS;
12
14
  const defaultDependencies = {
13
15
  async run(command, args, timeoutMs) {
14
16
  try {
@@ -176,7 +178,7 @@ async function installManagedCodex(options) {
176
178
  "--prefix",
177
179
  temporaryRoot,
178
180
  CODEX_PACKAGE,
179
- ], 180_000);
181
+ ], CODEX_INSTALL_TIMEOUT_MS);
180
182
  const temporary = await validateManagedRuntime(temporaryRoot, options.target, options.platform, options.dependencies);
181
183
  if (!temporary) {
182
184
  throw new Error(`Codex runtime validation failed after installing ${CODEX_PACKAGE}`);
@@ -2,7 +2,7 @@ import { chmod, mkdtemp, mkdir, readdir, rm, writeFile } from "node:fs/promises"
2
2
  import { tmpdir } from "node:os";
3
3
  import { dirname, resolve, win32 } from "node:path";
4
4
  import { afterEach, describe, expect, it, vi } from "vitest";
5
- import { CODEX_RUNTIME_VERSION, managedCodexBinaryCandidates, parseCodexVersion, resolveCodexRuntime, resolveNpmExecutor, } from "./codex-runtime-manager.js";
5
+ import { CODEX_INSTALL_STALE_LOCK_MS, CODEX_INSTALL_TIMEOUT_MS, CODEX_RUNTIME_VERSION, managedCodexBinaryCandidates, parseCodexVersion, resolveCodexRuntime, resolveNpmExecutor, } from "./codex-runtime-manager.js";
6
6
  const temporaryDirectories = [];
7
7
  afterEach(async () => {
8
8
  await Promise.all(temporaryDirectories.splice(0).map((path) => rm(path, { recursive: true, force: true })));
@@ -69,13 +69,14 @@ describe("managed Codex runtime", () => {
69
69
  const root = await temporaryRoot();
70
70
  const npmExecPath = await fakeExecutable(resolve(root, "npm-cli.js"));
71
71
  let installs = 0;
72
- const run = vi.fn(async (command, args) => {
72
+ const run = vi.fn(async (command, args, timeoutMs) => {
73
73
  if (command === "/test/node" && args.includes("install")) {
74
74
  installs += 1;
75
75
  const prefix = args[args.indexOf("--prefix") + 1];
76
76
  await fakeExecutable(managedCodexBinaryCandidates(prefix, "darwin-arm64")[0]);
77
77
  expect(args).toContain("@openai/codex@0.153.0");
78
78
  expect(args).toContain("--registry=https://registry.npmjs.org");
79
+ expect(timeoutMs).toBe(60 * 60_000);
79
80
  return { stdout: "installed", stderr: "" };
80
81
  }
81
82
  return {
@@ -92,6 +93,7 @@ describe("managed Codex runtime", () => {
92
93
  dependencies: { run },
93
94
  });
94
95
  expect(installs).toBe(1);
96
+ expect(CODEX_INSTALL_STALE_LOCK_MS).toBeGreaterThan(CODEX_INSTALL_TIMEOUT_MS);
95
97
  expect(resolution.executable).toContain(`/runtimes/codex/${CODEX_RUNTIME_VERSION}/`);
96
98
  expect(resolution.source).toBe("managed");
97
99
  });
@@ -1,7 +1,7 @@
1
1
  import { readFileSync } from "node:fs";
2
2
  import { createRequire } from "node:module";
3
3
  import { dirname } from "node:path";
4
- export const AGENTROAM_VERSION = "0.2.0-preview.12";
4
+ export const AGENTROAM_VERSION = "0.2.0-preview.14";
5
5
  export const PLATFORM_PACKAGES = {
6
6
  "darwin-arm64": {
7
7
  runtime: "agentroam-runtime-darwin-arm64",
@@ -22,7 +22,7 @@ export async function waitForPublicReadiness(publicUrl, options = {}) {
22
22
  try {
23
23
  const response = await fetchImpl(endpoint, {
24
24
  cache: "no-store",
25
- headers: { "user-agent": "agentroam-readiness/0.2.0-preview.12" },
25
+ headers: { "user-agent": "agentroam-readiness/0.2.0-preview.14" },
26
26
  signal: options.signal,
27
27
  });
28
28
  if (response.ok) {
package/install/README.md CHANGED
@@ -5,7 +5,7 @@ These versioned installers support macOS Apple Silicon and Windows x64. They reu
5
5
  ## macOS Apple Silicon
6
6
 
7
7
  ```sh
8
- curl -fsSL https://gitee.com/caoqu/team-agent/releases/download/v0.2.0-preview.12/install-agentroam.sh | sh
8
+ curl -fsSL https://gitee.com/caoqu/team-agent/releases/download/v0.2.0-preview.14/install-agentroam.sh | sh
9
9
  ```
10
10
 
11
11
  The command installs the wrapper at `~/.local/bin/agentroam`. If that directory is not already in `PATH`, the installer prints the required shell setting without editing shell profiles.
@@ -13,7 +13,7 @@ The command installs the wrapper at `~/.local/bin/agentroam`. If that directory
13
13
  ## Windows x64
14
14
 
15
15
  ```powershell
16
- irm https://gitee.com/caoqu/team-agent/releases/download/v0.2.0-preview.12/install-agentroam.ps1 | iex
16
+ irm https://gitee.com/caoqu/team-agent/releases/download/v0.2.0-preview.14/install-agentroam.ps1 | iex
17
17
  ```
18
18
 
19
19
  The command installs `%USERPROFILE%\.agentroam\bin\agentroam.cmd` and adds only that user directory to the user-level `PATH`. It does not require administrator access or change the machine-level `PATH`.
@@ -40,7 +40,7 @@ agentroam service uninstall
40
40
 
41
41
  ## Data and updates
42
42
 
43
- Set `AGENTROAM_DATA_DIR` before running either installer to override the default `~/.agentroam` data directory. Node is stored at `<data-dir>/runtimes/node/22.22.0`, and the launcher is stored at `<data-dir>/launcher/0.2.0-preview.12`.
43
+ Set `AGENTROAM_DATA_DIR` before running either installer to override the default `~/.agentroam` data directory. Node is stored at `<data-dir>/runtimes/node/22.22.0`, and the launcher is stored at `<data-dir>/launcher/0.2.0-preview.14`.
44
44
 
45
45
  Each AgentRoam release pins its own Node patch and installer assets. Updates happen only by running a newer versioned installer or installing a newer AgentRoam release; startup never follows a moving Node.js release channel.
46
46
 
@@ -2,7 +2,7 @@ $ErrorActionPreference = "Stop"
2
2
  $ProgressPreference = "SilentlyContinue"
3
3
 
4
4
  $NodeVersion = "22.22.0"
5
- $AgentRoamVersion = "0.2.0-preview.12"
5
+ $AgentRoamVersion = "0.2.0-preview.14"
6
6
  $NodeArchive = "node-v22.22.0-win-x64.zip"
7
7
  $NodeSha256 = "c97fa376d2becdc8863fcd3ca2dd9a83a9f3468ee7ccf7a6d076ec66a645c77a"
8
8
  $NodeUrl = "https://nodejs.org/dist/v22.22.0/$NodeArchive"
@@ -2,7 +2,7 @@
2
2
  set -eu
3
3
 
4
4
  NODE_VERSION="22.22.0"
5
- AGENTROAM_VERSION="0.2.0-preview.12"
5
+ AGENTROAM_VERSION="0.2.0-preview.14"
6
6
  NODE_ARCHIVE="node-v22.22.0-darwin-arm64.tar.xz"
7
7
  NODE_SHA256="2bd596bbfc4a275ceb8721a5954ee97daea5ebe673e96a185ebd732f6fb023ac"
8
8
  NODE_URL="https://nodejs.org/dist/v22.22.0/$NODE_ARCHIVE"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentroam",
3
- "version": "0.2.0-preview.12",
3
+ "version": "0.2.0-preview.14",
4
4
  "description": "Zero-install mobile remote terminal and file console",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,12 +26,12 @@
26
26
  "undici": "^6.25.0"
27
27
  },
28
28
  "optionalDependencies": {
29
- "agentroam-runtime-darwin-arm64": "0.2.0-preview.12",
30
- "agentroam-runtime-win32-x64": "0.2.0-preview.12",
31
- "agentroam-cloudflared-darwin-arm64": "0.2.0-preview.12",
32
- "agentroam-cloudflared-win32-x64": "0.2.0-preview.12",
33
- "agentroam-tui-darwin-arm64": "0.2.0-preview.12",
34
- "@caoqu/agentroam-tui-win32-x64": "0.2.0-preview.12"
29
+ "agentroam-runtime-darwin-arm64": "0.2.0-preview.14",
30
+ "agentroam-runtime-win32-x64": "0.2.0-preview.14",
31
+ "agentroam-cloudflared-darwin-arm64": "0.2.0-preview.14",
32
+ "agentroam-cloudflared-win32-x64": "0.2.0-preview.14",
33
+ "agentroam-tui-darwin-arm64": "0.2.0-preview.14",
34
+ "@caoqu/agentroam-tui-win32-x64": "0.2.0-preview.14"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^22.0.0",