agentroam 0.2.0-preview.21 → 0.2.0-preview.22

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.
@@ -7,7 +7,7 @@ import { promisify } from "node:util";
7
7
  import { MINIMUM_NODE_VERSION, compareNodeVersions, isSupportedNodeVersion, parseNodeVersion } from "./runtime-policy.mjs";
8
8
 
9
9
  const execFileAsync = promisify(execFile);
10
- const RELEASE_VERSION = "0.2.0-preview.21";
10
+ const RELEASE_VERSION = "0.2.0-preview.22";
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
 
@@ -0,0 +1,2 @@
1
+ import { createHash, randomBytes } from "node:crypto";
2
+ export function createPairingSecret(now = Date.now()) { const token = randomBytes(32).toString("base64url"); return { token, hashHex: createHash("sha256").update(token).digest("hex"), expiresAt: new Date(now + 5 * 60 * 1000).toISOString() }; }
@@ -2,7 +2,7 @@ import { readFileSync } from "node:fs";
2
2
  import { createRequire } from "node:module";
3
3
  import { dirname } from "node:path";
4
4
  import { MINIMUM_NODE_VERSION, assertSupportedNodeVersion } from "../bin/runtime-policy.mjs";
5
- export const AGENTROAM_VERSION = "0.2.0-preview.21";
5
+ export const AGENTROAM_VERSION = "0.2.0-preview.22";
6
6
  export const PLATFORM_DEPENDENCY_VERSIONS = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).optionalDependencies;
7
7
  export const PLATFORM_PACKAGES = {
8
8
  "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.21" },
25
+ headers: { "user-agent": "agentroam-readiness/0.2.0-preview.22" },
26
26
  signal: options.signal,
27
27
  });
28
28
  if (response.ok) {
@@ -4,7 +4,7 @@ set -eu
4
4
  NODE_VERSION="22.22.0"
5
5
  MINIMUM_NODE_VERSION="22.22.0"
6
6
  # Default to the newest published preview; pin an exact version via
7
- # AGENTROAM_VERSION=0.2.0-preview.21 sh install-agentroam.sh
7
+ # AGENTROAM_VERSION=0.2.0-preview.22 sh install-agentroam.sh
8
8
  AGENTROAM_VERSION_REQUEST="${AGENTROAM_VERSION:-preview}"
9
9
  AGENTROAM_VERSION=""
10
10
  NODE_ARCHIVE="node-v22.22.0-darwin-arm64.tar.xz"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentroam",
3
- "version": "0.2.0-preview.21",
3
+ "version": "0.2.0-preview.22",
4
4
  "description": "Zero-install mobile remote terminal and file console",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,8 +26,8 @@
26
26
  "undici": "^6.25.0"
27
27
  },
28
28
  "optionalDependencies": {
29
- "agentroam-runtime-darwin-arm64": "0.2.0-preview.21",
30
- "agentroam-runtime-win32-x64": "0.2.0-preview.21",
29
+ "agentroam-runtime-darwin-arm64": "0.2.0-preview.22",
30
+ "agentroam-runtime-win32-x64": "0.2.0-preview.22",
31
31
  "agentroam-cloudflared-darwin-arm64": "0.2.0-preview.20",
32
32
  "agentroam-cloudflared-win32-x64": "0.2.0-preview.20",
33
33
  "agentroam-tui-darwin-arm64": "0.2.0-preview.20",