@relayfile/sdk 0.10.64 → 0.10.66

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.
@@ -1 +1 @@
1
- export declare const RELAYFILE_VERSION = "0.10.64";
1
+ export declare const RELAYFILE_VERSION = "0.10.66";
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/sync-package-version.mjs during every SDK build.
2
- export const RELAYFILE_VERSION = "0.10.64";
2
+ export const RELAYFILE_VERSION = "0.10.66";
@@ -114,12 +114,6 @@ export declare function relayfileCommands(): readonly RelayCliCommandSpec[];
114
114
  * @returns The routable top-level tokens.
115
115
  */
116
116
  export declare function routableTopLevelNames(): readonly string[];
117
- /**
118
- * Create relayfile's mountable CLI surface.
119
- *
120
- * @param options - Optional overrides for binary lookup, env, and cwd.
121
- * @returns A surface satisfying `@agent-relay/cli-surface`'s `RelayCliSurface`.
122
- */
123
117
  export declare function createRelayCliSurface(options?: CreateRelayCliSurfaceOptions): RelayCliSurface;
124
118
  export { buildGoRunBinary, goRunBinaryPath, GoBuildFailedError, GoToolchainMissingError, RelayfileBinaryNotFoundError, resolveRelayfileBinary, findSourceCheckoutRoot, formatBinaryNotFoundMessage, genericBinaryName, platformBinaryName, platformPackageBinaryName, platformPackageName, platformPackageNames, GO_TOOLCHAIN_MISSING_MESSAGE, RELAYFILE_CLI_BIN_ENV, type BuildGoRunBinaryOptions, type RelayfileBinaryResolution, type RelayfileGoRunResolution, type ResolveRelayfileBinaryOptions } from "./resolve-binary.js";
125
119
  export { announceSetupIntent, hasValidSetupArguments, parseGoDurationMilliseconds, parseSetupArguments, prepareCloudSession, shouldPrepareCloudSession, loadCloudSessionSDK, DEFAULT_CLOUD_API_URL, SETUP_INTENT, SETUP_INTENT_PRINTED_ENV, type CloudPreflightOptions, type EnsureCloudSession } from "./cloud-preflight.js";
@@ -94,6 +94,11 @@ function exitCodeForSignal(signal) {
94
94
  * @param options - Optional overrides for binary lookup, env, and cwd.
95
95
  * @returns A surface satisfying `@agent-relay/cli-surface`'s `RelayCliSurface`.
96
96
  */
97
+ /**
98
+ * How users reach this binary when it is mounted, for messages that instruct
99
+ * them to run something. Matches the group name the host registers.
100
+ */
101
+ const MOUNTED_PROGRAM_NAME = "agent-relay file";
97
102
  export function createRelayCliSurface(options = {}) {
98
103
  const commands = relayfileCommands();
99
104
  return {
@@ -166,7 +171,12 @@ export function createRelayCliSurface(options = {}) {
166
171
  // signal handlers are installed: the host owns them.
167
172
  const child = spawn(command, childArgs, {
168
173
  cwd,
169
- env,
174
+ // The binary writes messages that tell users to run something. It
175
+ // has no way to know it was reached through a host, so left alone it
176
+ // says "run relayfile login", naming a binary someone who installed
177
+ // `agent-relay` does not have. Telling it how it was invoked keeps
178
+ // that advice followable; unset, direct users still see `relayfile`.
179
+ env: { ...env, RELAYFILE_PROGRAM_NAME: MOUNTED_PROGRAM_NAME },
170
180
  stdio: ["inherit", "pipe", "pipe"]
171
181
  });
172
182
  // No setEncoding: the bytes go to `io` exactly as the binary wrote
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relayfile/sdk",
3
- "version": "0.10.64",
3
+ "version": "0.10.66",
4
4
  "description": "TypeScript SDK for relayfile — real-time filesystem for humans and agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,21 +66,21 @@
66
66
  "check:command-spec": "node scripts/gen-command-spec.mjs --check"
67
67
  },
68
68
  "dependencies": {
69
- "@relayfile/core": "0.10.64",
69
+ "@relayfile/core": "0.10.66",
70
70
  "ignore": "^7.0.5",
71
71
  "tar": "^7.5.10"
72
72
  },
73
73
  "optionalDependencies": {
74
- "@relayfile/cli-darwin-arm64": "0.10.64",
75
- "@relayfile/cli-darwin-x64": "0.10.64",
76
- "@relayfile/cli-linux-arm64": "0.10.64",
77
- "@relayfile/cli-linux-x64": "0.10.64",
78
- "@relayfile/cli-win32-arm64": "0.10.64",
79
- "@relayfile/cli-win32-x64": "0.10.64",
80
- "@relayfile/mount-darwin-arm64": "0.10.64",
81
- "@relayfile/mount-darwin-x64": "0.10.64",
82
- "@relayfile/mount-linux-arm64": "0.10.64",
83
- "@relayfile/mount-linux-x64": "0.10.64"
74
+ "@relayfile/cli-darwin-arm64": "0.10.66",
75
+ "@relayfile/cli-darwin-x64": "0.10.66",
76
+ "@relayfile/cli-linux-arm64": "0.10.66",
77
+ "@relayfile/cli-linux-x64": "0.10.66",
78
+ "@relayfile/cli-win32-arm64": "0.10.66",
79
+ "@relayfile/cli-win32-x64": "0.10.66",
80
+ "@relayfile/mount-darwin-arm64": "0.10.66",
81
+ "@relayfile/mount-darwin-x64": "0.10.66",
82
+ "@relayfile/mount-linux-arm64": "0.10.66",
83
+ "@relayfile/mount-linux-x64": "0.10.66"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@agent-relay/cli-surface": "^12.2.4",