agent-relay 15.0.0-next.3 → 15.0.0-next.4

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.
@@ -3,6 +3,7 @@ import { type InstallScope, type McpLaunch, type RunTool, type ToolContext } fro
3
3
  import { type InitPrompter } from '../lib/init-prompts.js';
4
4
  import { type SdkCommandDeps } from '../lib/sdk-command.js';
5
5
  import { type DownloadFile, type EnginePlatform } from '../lib/relaycast-engine-install.js';
6
+ import { type CoreClient } from '../lib/probe-core.js';
6
7
  /** The Relaycast server `relay init` runs locally. Pinned so every machine runs the same server. */
7
8
  export declare const LOCAL_ENGINE_VERSION = "11.1.0";
8
9
  export declare const LOCAL_ENGINE_PACKAGE = "@relaycast/engine@11.1.0";
@@ -40,6 +41,20 @@ export interface InitCommandDependencies extends SdkCommandDeps {
40
41
  engineVersion: (binary: string) => string | undefined;
41
42
  /** Platform, architecture and libc that pick the standalone server asset. */
42
43
  enginePlatform: () => EnginePlatform;
44
+ /** The Agent Relay core's bridge socket. */
45
+ coreSocket: () => string;
46
+ /** Connect to the core at a socket; undefined when none answers. */
47
+ connectCore: (socket: string) => Promise<CoreClient | undefined>;
48
+ /** Start the core detached; returns its pid. */
49
+ startCore: (input: {
50
+ binary: string;
51
+ socket: string;
52
+ logFile: string;
53
+ }) => number;
54
+ /** Downloads one file of the core's release (binary or `.sha256`). */
55
+ downloadProbe: DownloadFile;
56
+ /** The version an installed `agent-relay-probe` reports for `--version`. */
57
+ probeVersion: (binary: string) => string | undefined;
43
58
  }
44
59
  /**
45
60
  * Fill in the real effects for any dependency a caller did not override.
@@ -50,9 +65,11 @@ export interface InitCommandDependencies extends SdkCommandDeps {
50
65
  export declare function withInitDefaults(overrides?: Partial<InitCommandDependencies>): InitCommandDependencies;
51
66
  /**
52
67
  * Register `relay init`: set up where agents talk (a private server on this
53
- * machine by default, the hosted service, or your own server), then install
54
- * the Relay MCP server into your agent tools. In a terminal it asks; with
55
- * `--yes` or without a TTY it uses flags and defaults.
68
+ * machine by default, the hosted service, or your own server), then connect
69
+ * your agent tools. By default the Agent Relay core injects messages into
70
+ * their running sessions; `--delivery mcp` (or a machine the core cannot run
71
+ * on) uses the Relay MCP server instead. In a terminal it asks; with `--yes`
72
+ * or without a TTY it uses flags and defaults.
56
73
  *
57
74
  * @param program - The commander program to add the command to.
58
75
  * @param overrides - Dependencies to replace, typically in tests.
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,OAAO,EAiBL,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,WAAW,EAIjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAA4B,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAErF,OAAO,EAA2B,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACrF,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,cAAc,EACpB,MAAM,oCAAoC,CAAC;AAO5C,oGAAoG;AACpG,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAC7C,eAAO,MAAM,oBAAoB,6BAA8C,CAAC;AAKhF,8DAA8D;AAC9D,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,wDAAwD;IACxD,WAAW,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACnF,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAClC,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,C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