agent-relay 17.2.0 → 18.0.0
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 +45 -270
- package/dist/cli/agent-relay-mcp.d.ts.map +1 -1
- package/dist/cli/agent-relay-mcp.js +6 -5
- package/dist/cli/agent-relay-mcp.js.map +1 -1
- package/dist/cli/bootstrap.d.ts +1 -1
- package/dist/cli/bootstrap.d.ts.map +1 -1
- package/dist/cli/bootstrap.js +11 -29
- package/dist/cli/bootstrap.js.map +1 -1
- package/dist/cli/commands/agent.d.ts.map +1 -1
- package/dist/cli/commands/agent.js +3 -2
- package/dist/cli/commands/agent.js.map +1 -1
- package/dist/cli/commands/cloud-integration.d.ts.map +1 -1
- package/dist/cli/commands/cloud-integration.js +2 -1
- package/dist/cli/commands/cloud-integration.js.map +1 -1
- package/dist/cli/commands/cloud-room.d.ts.map +1 -1
- package/dist/cli/commands/cloud-room.js +2 -1
- package/dist/cli/commands/cloud-room.js.map +1 -1
- package/dist/cli/commands/cloud-v1-deprecations.d.ts +4 -6
- package/dist/cli/commands/cloud-v1-deprecations.d.ts.map +1 -1
- package/dist/cli/commands/cloud-v1-deprecations.js +4 -6
- package/dist/cli/commands/cloud-v1-deprecations.js.map +1 -1
- package/dist/cli/commands/cloud-worker.d.ts +1 -1
- package/dist/cli/commands/cloud-worker.d.ts.map +1 -1
- package/dist/cli/commands/cloud-worker.js +42 -31
- package/dist/cli/commands/cloud-worker.js.map +1 -1
- package/dist/cli/commands/cloud.d.ts.map +1 -1
- package/dist/cli/commands/cloud.js +6 -7
- package/dist/cli/commands/cloud.js.map +1 -1
- package/dist/cli/commands/core.d.ts +3 -91
- package/dist/cli/commands/core.d.ts.map +1 -1
- package/dist/cli/commands/core.js +5 -254
- package/dist/cli/commands/core.js.map +1 -1
- package/dist/cli/commands/fleet-agent.d.ts +9 -54
- package/dist/cli/commands/fleet-agent.d.ts.map +1 -1
- package/dist/cli/commands/fleet-agent.js +105 -314
- package/dist/cli/commands/fleet-agent.js.map +1 -1
- package/dist/cli/commands/fleet.d.ts +0 -3
- package/dist/cli/commands/fleet.d.ts.map +1 -1
- package/dist/cli/commands/fleet.js +48 -267
- package/dist/cli/commands/fleet.js.map +1 -1
- package/dist/cli/commands/init.js +1 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/integration-cleanup-journal.d.ts +6 -2
- package/dist/cli/commands/integration-cleanup-journal.d.ts.map +1 -1
- package/dist/cli/commands/integration-cleanup-journal.js +611 -134
- package/dist/cli/commands/integration-cleanup-journal.js.map +1 -1
- package/dist/cli/commands/integration-recipient.d.ts +0 -17
- package/dist/cli/commands/integration-recipient.d.ts.map +1 -1
- package/dist/cli/commands/integration-recipient.js +1 -104
- package/dist/cli/commands/integration-recipient.js.map +1 -1
- package/dist/cli/commands/integration.d.ts +7 -3
- package/dist/cli/commands/integration.d.ts.map +1 -1
- package/dist/cli/commands/integration.js +37 -82
- package/dist/cli/commands/integration.js.map +1 -1
- package/dist/cli/commands/local-workflow.d.ts +1 -1
- package/dist/cli/commands/local-workflow.d.ts.map +1 -1
- package/dist/cli/commands/local-workflow.js +20 -6
- package/dist/cli/commands/local-workflow.js.map +1 -1
- package/dist/cli/commands/node.d.ts +18 -20
- package/dist/cli/commands/node.d.ts.map +1 -1
- package/dist/cli/commands/node.js +42 -272
- package/dist/cli/commands/node.js.map +1 -1
- package/dist/cli/commands/product-surfaces.js +4 -4
- package/dist/cli/commands/product-surfaces.js.map +1 -1
- package/dist/cli/commands/session.d.ts.map +1 -1
- package/dist/cli/commands/session.js +2 -1
- package/dist/cli/commands/session.js.map +1 -1
- package/dist/cli/commands/skills.d.ts.map +1 -1
- package/dist/cli/commands/skills.js +2 -1
- package/dist/cli/commands/skills.js.map +1 -1
- package/dist/cli/commands/status.d.ts +1 -7
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +2 -28
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/workspace.d.ts.map +1 -1
- package/dist/cli/commands/workspace.js +2 -2
- package/dist/cli/commands/workspace.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +1 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/lib/agent-relay-cli-reentry.d.ts +37 -0
- package/dist/cli/lib/agent-relay-cli-reentry.d.ts.map +1 -0
- package/dist/cli/lib/agent-relay-cli-reentry.js +40 -0
- package/dist/cli/lib/agent-relay-cli-reentry.js.map +1 -0
- package/dist/cli/lib/agent-tools-mcp.d.ts.map +1 -1
- package/dist/cli/lib/agent-tools-mcp.js +3 -2
- package/dist/cli/lib/agent-tools-mcp.js.map +1 -1
- package/dist/cli/lib/core-maintenance.d.ts +2 -3
- package/dist/cli/lib/core-maintenance.d.ts.map +1 -1
- package/dist/cli/lib/core-maintenance.js +3 -37
- package/dist/cli/lib/core-maintenance.js.map +1 -1
- package/dist/cli/lib/desktop-presence.js +1 -1
- package/dist/cli/lib/desktop-presence.js.map +1 -1
- package/dist/cli/lib/install-paths.d.ts +100 -0
- package/dist/cli/lib/install-paths.d.ts.map +1 -0
- package/dist/cli/lib/install-paths.js +157 -0
- package/dist/cli/lib/install-paths.js.map +1 -0
- package/dist/cli/lib/product-surface-store.d.ts.map +1 -1
- package/dist/cli/lib/product-surface-store.js +4 -1
- package/dist/cli/lib/product-surface-store.js.map +1 -1
- package/dist/cli/lib/relay-node.d.ts +7 -34
- package/dist/cli/lib/relay-node.d.ts.map +1 -1
- package/dist/cli/lib/relay-node.js +7 -182
- package/dist/cli/lib/relay-node.js.map +1 -1
- package/dist/cli/lib/removed-broker-command.d.ts +7 -0
- package/dist/cli/lib/removed-broker-command.d.ts.map +1 -0
- package/dist/cli/lib/removed-broker-command.js +13 -0
- package/dist/cli/lib/removed-broker-command.js.map +1 -0
- package/dist/cli/lib/sdk-client.d.ts +4 -4
- package/dist/cli/lib/sdk-client.js +4 -4
- package/dist/cli/lib/self-update.d.ts +8 -19
- package/dist/cli/lib/self-update.d.ts.map +1 -1
- package/dist/cli/lib/self-update.js +14 -28
- package/dist/cli/lib/self-update.js.map +1 -1
- package/dist/cli/lib/skills-install.d.ts.map +1 -1
- package/dist/cli/lib/skills-install.js +3 -2
- package/dist/cli/lib/skills-install.js.map +1 -1
- package/dist/cli/telemetry/events.d.ts +4 -1
- package/dist/cli/telemetry/events.d.ts.map +1 -1
- package/package.json +10 -15
- package/dist/auto/classifier.d.ts +0 -29
- package/dist/auto/classifier.d.ts.map +0 -1
- package/dist/auto/classifier.js +0 -126
- package/dist/auto/classifier.js.map +0 -1
- package/dist/auto/composer.d.ts +0 -105
- package/dist/auto/composer.d.ts.map +0 -1
- package/dist/auto/composer.js +0 -454
- package/dist/auto/composer.js.map +0 -1
- package/dist/auto/director-prompt.d.ts +0 -25
- package/dist/auto/director-prompt.d.ts.map +0 -1
- package/dist/auto/director-prompt.js +0 -53
- package/dist/auto/director-prompt.js.map +0 -1
- package/dist/auto/index.d.ts +0 -15
- package/dist/auto/index.d.ts.map +0 -1
- package/dist/auto/index.js +0 -13
- package/dist/auto/index.js.map +0 -1
- package/dist/cli/commands/local-agent.d.ts +0 -74
- package/dist/cli/commands/local-agent.d.ts.map +0 -1
- package/dist/cli/commands/local-agent.js +0 -969
- package/dist/cli/commands/local-agent.js.map +0 -1
- package/dist/cli/lib/attach-broker.d.ts +0 -17
- package/dist/cli/lib/attach-broker.d.ts.map +0 -1
- package/dist/cli/lib/attach-broker.js +0 -27
- package/dist/cli/lib/attach-broker.js.map +0 -1
- package/dist/cli/lib/attach-drive.d.ts +0 -376
- package/dist/cli/lib/attach-drive.d.ts.map +0 -1
- package/dist/cli/lib/attach-drive.js +0 -1212
- package/dist/cli/lib/attach-drive.js.map +0 -1
- package/dist/cli/lib/attach-fleet-node.d.ts +0 -85
- package/dist/cli/lib/attach-fleet-node.d.ts.map +0 -1
- package/dist/cli/lib/attach-fleet-node.js +0 -1347
- package/dist/cli/lib/attach-fleet-node.js.map +0 -1
- package/dist/cli/lib/attach-input-recovery.d.ts +0 -190
- package/dist/cli/lib/attach-input-recovery.d.ts.map +0 -1
- package/dist/cli/lib/attach-input-recovery.js +0 -559
- package/dist/cli/lib/attach-input-recovery.js.map +0 -1
- package/dist/cli/lib/attach-mode.d.ts +0 -2
- package/dist/cli/lib/attach-mode.d.ts.map +0 -1
- package/dist/cli/lib/attach-mode.js +0 -2
- package/dist/cli/lib/attach-mode.js.map +0 -1
- package/dist/cli/lib/attach-native.d.ts +0 -27
- package/dist/cli/lib/attach-native.d.ts.map +0 -1
- package/dist/cli/lib/attach-native.js +0 -267
- package/dist/cli/lib/attach-native.js.map +0 -1
- package/dist/cli/lib/attach-passthrough.d.ts +0 -193
- package/dist/cli/lib/attach-passthrough.d.ts.map +0 -1
- package/dist/cli/lib/attach-passthrough.js +0 -778
- package/dist/cli/lib/attach-passthrough.js.map +0 -1
- package/dist/cli/lib/attach-remote-node.d.ts +0 -21
- package/dist/cli/lib/attach-remote-node.d.ts.map +0 -1
- package/dist/cli/lib/attach-remote-node.js +0 -133
- package/dist/cli/lib/attach-remote-node.js.map +0 -1
- package/dist/cli/lib/attach-view.d.ts +0 -177
- package/dist/cli/lib/attach-view.d.ts.map +0 -1
- package/dist/cli/lib/attach-view.js +0 -455
- package/dist/cli/lib/attach-view.js.map +0 -1
- package/dist/cli/lib/attach.d.ts +0 -555
- package/dist/cli/lib/attach.d.ts.map +0 -1
- package/dist/cli/lib/attach.js +0 -1180
- package/dist/cli/lib/attach.js.map +0 -1
- package/dist/cli/lib/broker-connection.d.ts +0 -65
- package/dist/cli/lib/broker-connection.d.ts.map +0 -1
- package/dist/cli/lib/broker-connection.js +0 -144
- package/dist/cli/lib/broker-connection.js.map +0 -1
- package/dist/cli/lib/broker-lifecycle.d.ts +0 -220
- package/dist/cli/lib/broker-lifecycle.d.ts.map +0 -1
- package/dist/cli/lib/broker-lifecycle.js +0 -2290
- package/dist/cli/lib/broker-lifecycle.js.map +0 -1
- package/dist/cli/lib/broker-process-identity.d.ts +0 -38
- package/dist/cli/lib/broker-process-identity.d.ts.map +0 -1
- package/dist/cli/lib/broker-process-identity.js +0 -304
- package/dist/cli/lib/broker-process-identity.js.map +0 -1
- package/dist/cli/lib/client-factory.d.ts +0 -44
- package/dist/cli/lib/client-factory.d.ts.map +0 -1
- package/dist/cli/lib/client-factory.js +0 -64
- package/dist/cli/lib/client-factory.js.map +0 -1
- package/dist/cli/lib/collect-with-retry.d.ts +0 -24
- package/dist/cli/lib/collect-with-retry.d.ts.map +0 -1
- package/dist/cli/lib/collect-with-retry.js +0 -33
- package/dist/cli/lib/collect-with-retry.js.map +0 -1
- package/dist/cli/lib/fleet-attach-target.d.ts +0 -18
- package/dist/cli/lib/fleet-attach-target.d.ts.map +0 -1
- package/dist/cli/lib/fleet-attach-target.js +0 -57
- package/dist/cli/lib/fleet-attach-target.js.map +0 -1
- package/dist/cli/lib/fleet-hint.d.ts +0 -49
- package/dist/cli/lib/fleet-hint.d.ts.map +0 -1
- package/dist/cli/lib/fleet-hint.js +0 -113
- package/dist/cli/lib/fleet-hint.js.map +0 -1
- package/dist/cli/lib/fleet-sidecar.d.ts +0 -43
- package/dist/cli/lib/fleet-sidecar.d.ts.map +0 -1
- package/dist/cli/lib/fleet-sidecar.js +0 -84
- package/dist/cli/lib/fleet-sidecar.js.map +0 -1
- package/dist/cli/lib/join-ticket.d.ts +0 -22
- package/dist/cli/lib/join-ticket.d.ts.map +0 -1
- package/dist/cli/lib/join-ticket.js +0 -96
- package/dist/cli/lib/join-ticket.js.map +0 -1
- package/dist/cli/lib/node-claim.d.ts +0 -468
- package/dist/cli/lib/node-claim.d.ts.map +0 -1
- package/dist/cli/lib/node-claim.js +0 -1349
- package/dist/cli/lib/node-claim.js.map +0 -1
- package/dist/cli/lib/node-definition-loader.d.ts +0 -19
- package/dist/cli/lib/node-definition-loader.d.ts.map +0 -1
- package/dist/cli/lib/node-definition-loader.js +0 -143
- package/dist/cli/lib/node-definition-loader.js.map +0 -1
- package/dist/cli/lib/node-provider-child.d.ts +0 -129
- package/dist/cli/lib/node-provider-child.d.ts.map +0 -1
- package/dist/cli/lib/node-provider-child.js +0 -755
- package/dist/cli/lib/node-provider-child.js.map +0 -1
- package/dist/cli/lib/predictive-echo-screen.d.ts +0 -48
- package/dist/cli/lib/predictive-echo-screen.d.ts.map +0 -1
- package/dist/cli/lib/predictive-echo-screen.js +0 -74
- package/dist/cli/lib/predictive-echo-screen.js.map +0 -1
- package/dist/cli/lib/project-broker-client.d.ts +0 -4
- package/dist/cli/lib/project-broker-client.d.ts.map +0 -1
- package/dist/cli/lib/project-broker-client.js +0 -12
- package/dist/cli/lib/project-broker-client.js.map +0 -1
- package/dist/cli/lib/reflex-capture.d.ts +0 -41
- package/dist/cli/lib/reflex-capture.d.ts.map +0 -1
- package/dist/cli/lib/reflex-capture.js +0 -128
- package/dist/cli/lib/reflex-capture.js.map +0 -1
- package/dist/cli/lib/workspace-env.d.ts +0 -8
- package/dist/cli/lib/workspace-env.d.ts.map +0 -1
- package/dist/cli/lib/workspace-env.js +0 -16
- package/dist/cli/lib/workspace-env.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desktop-presence.js","sourceRoot":"","sources":["../../../src/cli/lib/desktop-presence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EACL,WAAW,EACX,cAAc,EACd,aAAa,GAGd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"desktop-presence.js","sourceRoot":"","sources":["../../../src/cli/lib/desktop-presence.ts"],"names":[],"mappings":"AAA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M,CAAC;IAE9F,IAAI,MAA8B,CAAC;IACnC,IAAI,CAAC;QACH,MAAM,GAAG,MAAM,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAClE,IAAI,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAC1B,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAa,YAAY,CAAC,CAAC;QAC3D,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;QACjG,OAAO,KAAK,EAAE,GAAG,KAAK,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;YAAS,CAAC;QACT,MAAM,EAAE,KAAK,EAAE,CAAC;IAClB,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,OAAO,mBAAmB,EAAE,IAAI,CAAC,MAAM,kBAAkB,EAAE,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The single, canonical location of every Agent Relay native binary.
|
|
3
|
+
*
|
|
4
|
+
* However Agent Relay is installed (`install.sh`, `npm i -g agent-relay`, the
|
|
5
|
+
* desktop app), its binaries converge on one directory so the CLI and the
|
|
6
|
+
* desktop app always run the same executables:
|
|
7
|
+
*
|
|
8
|
+
* $AGENT_RELAY_INSTALL_DIR/bin when AGENT_RELAY_INSTALL_DIR is set
|
|
9
|
+
* $AGENT_RELAY_HOME/bin otherwise, when AGENT_RELAY_HOME is set
|
|
10
|
+
* ~/.agentworkforce/relay/bin by default
|
|
11
|
+
*
|
|
12
|
+
* Reserved binary slots in that directory (`.exe` suffix on Windows):
|
|
13
|
+
*
|
|
14
|
+
* agent-relay standalone CLI (written by install.sh)
|
|
15
|
+
* relaycast-engine local Relaycast server (install.sh, when published)
|
|
16
|
+
* agent-relay-node the Agent Relay core that injects messages into
|
|
17
|
+
* running agent sessions (`relay init`, from a
|
|
18
|
+
* CLI's `v<version>` GitHub release)
|
|
19
|
+
*
|
|
20
|
+
* Older releases also installed `agent-relay-broker` there; it is no longer
|
|
21
|
+
* installed or run, and an existing copy is left in place untouched.
|
|
22
|
+
*
|
|
23
|
+
* `install.sh` resolves the same directory, so the shell installer and the
|
|
24
|
+
* runtime resolvers cannot disagree about where binaries live.
|
|
25
|
+
*/
|
|
26
|
+
export declare const RELAYCAST_ENGINE_BINARY_NAME = "relaycast-engine";
|
|
27
|
+
export declare const RELAY_NODE_BINARY_NAME = "agent-relay-node";
|
|
28
|
+
/** Environment variable that relocates the whole install root. */
|
|
29
|
+
export declare const RELAY_INSTALL_DIR_ENV = "AGENT_RELAY_INSTALL_DIR";
|
|
30
|
+
/** Relay home (credentials, state). Its `bin/` is used when no install dir is set. */
|
|
31
|
+
export declare const RELAY_HOME_ENV = "AGENT_RELAY_HOME";
|
|
32
|
+
/** Explicit path to a relaycast-engine binary, checked before the canonical slot. */
|
|
33
|
+
export declare const RELAYCAST_ENGINE_PATH_ENV = "RELAYCAST_ENGINE_PATH";
|
|
34
|
+
/** Explicit path to an agent-relay-node binary, used instead of the canonical slot. */
|
|
35
|
+
export declare const RELAY_NODE_PATH_ENV = "AGENT_RELAY_NODE_PATH";
|
|
36
|
+
type Env = Record<string, string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* Executable file name for `name` on `platform` (`.exe` on Windows).
|
|
39
|
+
* @param name - Binary base name, e.g. `agent-relay-node`
|
|
40
|
+
* @param platform - Target platform (defaults to the current one)
|
|
41
|
+
* @returns The file name to look for on disk
|
|
42
|
+
*/
|
|
43
|
+
export declare function executableFileName(name: string, platform?: NodeJS.Platform): string;
|
|
44
|
+
/**
|
|
45
|
+
* Root of the Agent Relay install (`AGENT_RELAY_INSTALL_DIR` →
|
|
46
|
+
* `AGENT_RELAY_HOME` → `~/.agentworkforce/relay`).
|
|
47
|
+
* @param env - Environment to read overrides from
|
|
48
|
+
* @param home - Home directory used for the default
|
|
49
|
+
* @returns Absolute install root
|
|
50
|
+
*/
|
|
51
|
+
export declare function getRelayInstallDir(env?: Env, home?: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* The canonical binary directory: `<install root>/bin`.
|
|
54
|
+
* @param env - Environment to read overrides from
|
|
55
|
+
* @param home - Home directory used for the default
|
|
56
|
+
* @returns Absolute path of the canonical bin directory
|
|
57
|
+
*/
|
|
58
|
+
export declare function getRelayBinDir(env?: Env, home?: string): string;
|
|
59
|
+
/**
|
|
60
|
+
* Canonical path of the local Relaycast server binary (may not exist).
|
|
61
|
+
* @param env - Environment to read overrides from
|
|
62
|
+
* @param platform - Target platform
|
|
63
|
+
* @returns `<bin>/relaycast-engine[.exe]`
|
|
64
|
+
*/
|
|
65
|
+
export declare function getCanonicalRelaycastEnginePath(env?: Env, platform?: NodeJS.Platform): string;
|
|
66
|
+
/**
|
|
67
|
+
* Canonical path of the Agent Relay core (`agent-relay-node`) binary (may not exist).
|
|
68
|
+
* @param env - Environment to read overrides from
|
|
69
|
+
* @param platform - Target platform
|
|
70
|
+
* @returns `<bin>/agent-relay-node[.exe]`
|
|
71
|
+
*/
|
|
72
|
+
export declare function getCanonicalRelayNodePath(env?: Env, platform?: NodeJS.Platform): string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether `filePath` looks runnable: a non-empty regular file that is
|
|
75
|
+
* executable (the execute bit is not checked on Windows). Cheap enough for
|
|
76
|
+
* every resolve; it does not execute the file.
|
|
77
|
+
* @param filePath - Candidate binary
|
|
78
|
+
* @returns true when the file can plausibly be launched
|
|
79
|
+
*/
|
|
80
|
+
export declare function isUsableBinary(filePath: string): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* First match for `name` on PATH (`which` / `where`), or null.
|
|
83
|
+
* @param name - Command name to look up
|
|
84
|
+
* @returns Absolute path, or null when the command is not on PATH
|
|
85
|
+
*/
|
|
86
|
+
export declare function findExecutableOnPath(name: string): string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Resolve the local Relaycast server binary.
|
|
89
|
+
*
|
|
90
|
+
* Search order:
|
|
91
|
+
* 1. `RELAYCAST_ENGINE_PATH` (explicit override; must exist)
|
|
92
|
+
* 2. Canonical slot `<bin>/relaycast-engine[.exe]`
|
|
93
|
+
* 3. PATH lookup
|
|
94
|
+
*
|
|
95
|
+
* @param env - Environment to read overrides from
|
|
96
|
+
* @returns Absolute path to the binary, or null if none is installed
|
|
97
|
+
*/
|
|
98
|
+
export declare function getRelaycastEnginePath(env?: Env): string | null;
|
|
99
|
+
export {};
|
|
100
|
+
//# sourceMappingURL=install-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-paths.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/install-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAC/D,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAEzD,kEAAkE;AAClE,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAC/D,sFAAsF;AACtF,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AACjE,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAE3D,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAO9C;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAAG,MAAM,CAErG;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,GAAE,GAAiB,EAAE,IAAI,GAAE,MAAkB,GAAG,MAAM,CAI3F;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,GAAE,GAAiB,EAAE,IAAI,GAAE,MAAkB,GAAG,MAAM,CAEvF;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,GAAG,GAAE,GAAiB,EACtB,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAC3C,MAAM,CAER;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,GAAE,GAAiB,EACtB,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAC3C,MAAM,CAER;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CASxD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAchE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,GAAE,GAAiB,GAAG,MAAM,GAAG,IAAI,CAW5E"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The single, canonical location of every Agent Relay native binary.
|
|
3
|
+
*
|
|
4
|
+
* However Agent Relay is installed (`install.sh`, `npm i -g agent-relay`, the
|
|
5
|
+
* desktop app), its binaries converge on one directory so the CLI and the
|
|
6
|
+
* desktop app always run the same executables:
|
|
7
|
+
*
|
|
8
|
+
* $AGENT_RELAY_INSTALL_DIR/bin when AGENT_RELAY_INSTALL_DIR is set
|
|
9
|
+
* $AGENT_RELAY_HOME/bin otherwise, when AGENT_RELAY_HOME is set
|
|
10
|
+
* ~/.agentworkforce/relay/bin by default
|
|
11
|
+
*
|
|
12
|
+
* Reserved binary slots in that directory (`.exe` suffix on Windows):
|
|
13
|
+
*
|
|
14
|
+
* agent-relay standalone CLI (written by install.sh)
|
|
15
|
+
* relaycast-engine local Relaycast server (install.sh, when published)
|
|
16
|
+
* agent-relay-node the Agent Relay core that injects messages into
|
|
17
|
+
* running agent sessions (`relay init`, from a
|
|
18
|
+
* CLI's `v<version>` GitHub release)
|
|
19
|
+
*
|
|
20
|
+
* Older releases also installed `agent-relay-broker` there; it is no longer
|
|
21
|
+
* installed or run, and an existing copy is left in place untouched.
|
|
22
|
+
*
|
|
23
|
+
* `install.sh` resolves the same directory, so the shell installer and the
|
|
24
|
+
* runtime resolvers cannot disagree about where binaries live.
|
|
25
|
+
*/
|
|
26
|
+
import { execFileSync } from 'node:child_process';
|
|
27
|
+
import { accessSync, constants, existsSync, statSync } from 'node:fs';
|
|
28
|
+
import { homedir } from 'node:os';
|
|
29
|
+
import { join, resolve } from 'node:path';
|
|
30
|
+
export const RELAYCAST_ENGINE_BINARY_NAME = 'relaycast-engine';
|
|
31
|
+
export const RELAY_NODE_BINARY_NAME = 'agent-relay-node';
|
|
32
|
+
/** Environment variable that relocates the whole install root. */
|
|
33
|
+
export const RELAY_INSTALL_DIR_ENV = 'AGENT_RELAY_INSTALL_DIR';
|
|
34
|
+
/** Relay home (credentials, state). Its `bin/` is used when no install dir is set. */
|
|
35
|
+
export const RELAY_HOME_ENV = 'AGENT_RELAY_HOME';
|
|
36
|
+
/** Explicit path to a relaycast-engine binary, checked before the canonical slot. */
|
|
37
|
+
export const RELAYCAST_ENGINE_PATH_ENV = 'RELAYCAST_ENGINE_PATH';
|
|
38
|
+
/** Explicit path to an agent-relay-node binary, used instead of the canonical slot. */
|
|
39
|
+
export const RELAY_NODE_PATH_ENV = 'AGENT_RELAY_NODE_PATH';
|
|
40
|
+
function nonEmpty(value) {
|
|
41
|
+
const trimmed = value?.trim();
|
|
42
|
+
return trimmed ? trimmed : undefined;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Executable file name for `name` on `platform` (`.exe` on Windows).
|
|
46
|
+
* @param name - Binary base name, e.g. `agent-relay-node`
|
|
47
|
+
* @param platform - Target platform (defaults to the current one)
|
|
48
|
+
* @returns The file name to look for on disk
|
|
49
|
+
*/
|
|
50
|
+
export function executableFileName(name, platform = process.platform) {
|
|
51
|
+
return platform === 'win32' ? `${name}.exe` : name;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Root of the Agent Relay install (`AGENT_RELAY_INSTALL_DIR` →
|
|
55
|
+
* `AGENT_RELAY_HOME` → `~/.agentworkforce/relay`).
|
|
56
|
+
* @param env - Environment to read overrides from
|
|
57
|
+
* @param home - Home directory used for the default
|
|
58
|
+
* @returns Absolute install root
|
|
59
|
+
*/
|
|
60
|
+
export function getRelayInstallDir(env = process.env, home = homedir()) {
|
|
61
|
+
const explicit = nonEmpty(env[RELAY_INSTALL_DIR_ENV]) ?? nonEmpty(env[RELAY_HOME_ENV]);
|
|
62
|
+
if (explicit)
|
|
63
|
+
return resolve(explicit);
|
|
64
|
+
return join(home, '.agentworkforce', 'relay');
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The canonical binary directory: `<install root>/bin`.
|
|
68
|
+
* @param env - Environment to read overrides from
|
|
69
|
+
* @param home - Home directory used for the default
|
|
70
|
+
* @returns Absolute path of the canonical bin directory
|
|
71
|
+
*/
|
|
72
|
+
export function getRelayBinDir(env = process.env, home = homedir()) {
|
|
73
|
+
return join(getRelayInstallDir(env, home), 'bin');
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Canonical path of the local Relaycast server binary (may not exist).
|
|
77
|
+
* @param env - Environment to read overrides from
|
|
78
|
+
* @param platform - Target platform
|
|
79
|
+
* @returns `<bin>/relaycast-engine[.exe]`
|
|
80
|
+
*/
|
|
81
|
+
export function getCanonicalRelaycastEnginePath(env = process.env, platform = process.platform) {
|
|
82
|
+
return join(getRelayBinDir(env), executableFileName(RELAYCAST_ENGINE_BINARY_NAME, platform));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Canonical path of the Agent Relay core (`agent-relay-node`) binary (may not exist).
|
|
86
|
+
* @param env - Environment to read overrides from
|
|
87
|
+
* @param platform - Target platform
|
|
88
|
+
* @returns `<bin>/agent-relay-node[.exe]`
|
|
89
|
+
*/
|
|
90
|
+
export function getCanonicalRelayNodePath(env = process.env, platform = process.platform) {
|
|
91
|
+
return join(getRelayBinDir(env), executableFileName(RELAY_NODE_BINARY_NAME, platform));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Whether `filePath` looks runnable: a non-empty regular file that is
|
|
95
|
+
* executable (the execute bit is not checked on Windows). Cheap enough for
|
|
96
|
+
* every resolve; it does not execute the file.
|
|
97
|
+
* @param filePath - Candidate binary
|
|
98
|
+
* @returns true when the file can plausibly be launched
|
|
99
|
+
*/
|
|
100
|
+
export function isUsableBinary(filePath) {
|
|
101
|
+
try {
|
|
102
|
+
const stat = statSync(filePath);
|
|
103
|
+
if (!stat.isFile() || stat.size === 0)
|
|
104
|
+
return false;
|
|
105
|
+
if (process.platform !== 'win32')
|
|
106
|
+
accessSync(filePath, constants.X_OK);
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* First match for `name` on PATH (`which` / `where`), or null.
|
|
115
|
+
* @param name - Command name to look up
|
|
116
|
+
* @returns Absolute path, or null when the command is not on PATH
|
|
117
|
+
*/
|
|
118
|
+
export function findExecutableOnPath(name) {
|
|
119
|
+
try {
|
|
120
|
+
const cmd = process.platform === 'win32' ? 'where' : 'which';
|
|
121
|
+
const result = execFileSync(cmd, [name], {
|
|
122
|
+
encoding: 'utf-8',
|
|
123
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
124
|
+
}).trim();
|
|
125
|
+
if (result) {
|
|
126
|
+
return result.split(/\r?\n/u)[0].trim();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
// Not found on PATH.
|
|
131
|
+
}
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Resolve the local Relaycast server binary.
|
|
136
|
+
*
|
|
137
|
+
* Search order:
|
|
138
|
+
* 1. `RELAYCAST_ENGINE_PATH` (explicit override; must exist)
|
|
139
|
+
* 2. Canonical slot `<bin>/relaycast-engine[.exe]`
|
|
140
|
+
* 3. PATH lookup
|
|
141
|
+
*
|
|
142
|
+
* @param env - Environment to read overrides from
|
|
143
|
+
* @returns Absolute path to the binary, or null if none is installed
|
|
144
|
+
*/
|
|
145
|
+
export function getRelaycastEnginePath(env = process.env) {
|
|
146
|
+
const override = nonEmpty(env[RELAYCAST_ENGINE_PATH_ENV]);
|
|
147
|
+
if (override) {
|
|
148
|
+
const resolvedOverride = resolve(override);
|
|
149
|
+
if (existsSync(resolvedOverride))
|
|
150
|
+
return resolvedOverride;
|
|
151
|
+
}
|
|
152
|
+
const canonical = getCanonicalRelaycastEnginePath(env);
|
|
153
|
+
if (existsSync(canonical) && isUsableBinary(canonical))
|
|
154
|
+
return canonical;
|
|
155
|
+
return findExecutableOnPath(RELAYCAST_ENGINE_BINARY_NAME);
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=install-paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install-paths.js","sourceRoot":"","sources":["../../../src/cli/lib/install-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,CAAC,MAAM,4BAA4B,GAAG,kBAAkB,CAAC;AAC/D,MAAM,CAAC,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;AAEz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AM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1C,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,qBAAqB;IACvB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAW,OAAO,CAAC,GAAG;IAC3D,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAC1D,IAAI,QAAQ,EAAE,CAAC;QACb,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,UAAU,CAAC,gBAAgB,CAAC;YAAE,OAAO,gBAAgB,CAAC;IAC5D,CAAC;IAED,MAAM,SAAS,GAAG,+BAA+B,CAAC,GAAG,CAAC,CAAC;IACvD,IAAI,UAAU,CAAC,SAAS,CAAC,IAAI,cAAc,CAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAEzE,OAAO,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-surface-store.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/product-surface-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AASH,OAAO,KAAK,EAAc,eAAe,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"product-surface-store.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/product-surface-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AASH,OAAO,KAAK,EAAc,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAS5E,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,QAAiB,CAAC;AAiGjD,6EAA6E;AAC7E,MAAM,WA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ACnB,kBAAkB,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACtD,OAAO,CAAC,eAAe,CAAC,CAkC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAc9E"}
|
|
@@ -32,7 +32,6 @@ import { promisify } from 'node:util';
|
|
|
32
32
|
import { redactCredentialValues } from '@agent-relay/cloud/redact';
|
|
33
33
|
import { describeError } from './describe-error.js';
|
|
34
34
|
import { isBundledBunEntrypointPath } from './agent-relay-mcp-command.js';
|
|
35
|
-
import { isBunRuntime } from './node-definition-loader.js';
|
|
36
35
|
const execFileAsync = promisify(execFile);
|
|
37
36
|
/** How long a single provisioning install may take before it is abandoned. */
|
|
38
37
|
export const INSTALL_TIMEOUT_MS = 10 * 60 * 1000;
|
|
@@ -149,6 +148,10 @@ export function defaultSurfaceStoreRoot() {
|
|
|
149
148
|
const dataDir = process.env['AGENT_RELAY_DATA_DIR'] || path.join(os.homedir(), '.agentworkforce/relay');
|
|
150
149
|
return path.join(dataDir, 'surfaces');
|
|
151
150
|
}
|
|
151
|
+
/** Whether we are executing inside Bun (notably the `bun build --compile` binary). */
|
|
152
|
+
function isBunRuntime() {
|
|
153
|
+
return typeof process.versions.bun === 'string';
|
|
154
|
+
}
|
|
152
155
|
/**
|
|
153
156
|
* Whether this process is the compiled standalone binary.
|
|
154
157
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-surface-store.js","sourceRoot":"","sources":["../../../src/cli/lib/product-surface-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,MAA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AI,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC5F,CAAC;AAED,6EAA6E;AAC7E,KAAK,UAAU,UAAU,CAAC,GAAmB,EAAE,SAAiB;IAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;IACjE,IAAI,CAAC;QACH,MAAM,aAAa,CACjB,OAAO,EACP;YACE,SAAS;YACT,GAAG,GAAG,CAAC,IAAI,IAAI,GAAG,CAAC,KAAK,EAAE;YAC1B,GAAG,CAAC,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACpF,YAAY;YACZ,WAAW;YACX,kBAAkB;SACnB,EACD;YACE,GAAG,EAAE,SAAS;YACd,OAAO,EAAE,kBAAkB;YAC3B,SAAS,EAAE,kBAAkB;YAC7B,oEAAoE;YACpE,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,0BAA0B,EAAE,OAAO,EAAE;SAC7D,CACF,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC"}
|
|
@@ -13,14 +13,11 @@
|
|
|
13
13
|
* (`AGENT_RELAY_CORE_SOCKET` moves it; on Windows a named pipe derived from
|
|
14
14
|
* that path), see crates/relay-node/docs/relay-core.md.
|
|
15
15
|
*/
|
|
16
|
+
import { type CoreClient } from '@agent-relay/core-bridge';
|
|
16
17
|
import type { ToolId } from './agent-tools-mcp.js';
|
|
17
18
|
import type { ClaudeFileState, OpenCodeState, PiState } from './init-leftovers.js';
|
|
18
19
|
import type { EnginePlatform } from './relaycast-engine-install.js';
|
|
19
20
|
import { type RelaySkillRecord } from './relay-skill.js';
|
|
20
|
-
/** The bridge version this client speaks (`crates/relay-node/src/relay/protocol.rs`). */
|
|
21
|
-
export declare const BRIDGE_VERSION = 2;
|
|
22
|
-
/** Moves the core's bridge socket, for the core and its clients alike. */
|
|
23
|
-
export declare const CORE_SOCKET_ENV = "AGENT_RELAY_CORE_SOCKET";
|
|
24
21
|
/** How long a started core gets to answer on its socket. */
|
|
25
22
|
export declare const CORE_START_TIMEOUT_MS = 30000;
|
|
26
23
|
/**
|
|
@@ -38,38 +35,15 @@ export declare function relayNodeAssetName(version: string, target: EnginePlatfo
|
|
|
38
35
|
*/
|
|
39
36
|
export declare function relayNodeAssetUrl(version: string, asset: string): string;
|
|
40
37
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* @param env - Environment to read the override from
|
|
45
|
-
* @param home - The user's home directory
|
|
46
|
-
* @returns Absolute socket path
|
|
47
|
-
*/
|
|
48
|
-
export declare function coreSocketPath(env: NodeJS.ProcessEnv, home: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* The Windows named pipe the core serves for a socket path
|
|
51
|
-
* (`relay::transport::pipe_name`).
|
|
52
|
-
* @param socket - The socket path
|
|
53
|
-
* @returns `\\.\pipe\agent-relay-<16 hex>`
|
|
54
|
-
*/
|
|
55
|
-
export declare function pipeName(socket: string): string;
|
|
56
|
-
/** A failure the core reported, with its message. */
|
|
57
|
-
export declare class CoreCallError extends Error {
|
|
58
|
-
}
|
|
59
|
-
/** A connection to the core's bridge. */
|
|
60
|
-
export interface CoreClient {
|
|
61
|
-
/** Calls one bridge method and returns its result. */
|
|
62
|
-
call<T = unknown>(method: string, params?: Record<string, unknown>): Promise<T>;
|
|
63
|
-
close(): void;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Connect to the core at `socket` and greet it. Resolves undefined when
|
|
67
|
-
* nothing is listening there.
|
|
38
|
+
* Connect to the core at `socket` and greet it (`@agent-relay/core-bridge`).
|
|
39
|
+
* Resolves undefined when nothing is listening there; a refused or foreign
|
|
40
|
+
* socket throws.
|
|
68
41
|
* @param socket - The core's bridge socket path
|
|
69
|
-
* @param timeoutMs - Bound on connecting and on each call
|
|
42
|
+
* @param timeoutMs - Bound on connecting and on each call (default 15 s)
|
|
70
43
|
* @returns A client, or undefined when no core answers
|
|
71
44
|
*/
|
|
72
|
-
export declare
|
|
45
|
+
export declare const connectCore: (socket: string, timeoutMs?: number) => Promise<CoreClient | undefined>;
|
|
46
|
+
export { coreSocketPath, type CoreClient } from '@agent-relay/core-bridge';
|
|
73
47
|
/**
|
|
74
48
|
* The version an `agent-relay-node` binary reports for `--version`. Only
|
|
75
49
|
* the core's own one-line answer counts, so another program that happens to
|
|
@@ -210,5 +184,4 @@ export interface DeliveryRecord {
|
|
|
210
184
|
export declare function readDeliveryRecord(file: string): DeliveryRecord;
|
|
211
185
|
/** The core settings init turned on, kept for `--uninstall`. */
|
|
212
186
|
export declare function readTurnedOn(file: string): string[];
|
|
213
|
-
export {};
|
|
214
187
|
//# sourceMappingURL=relay-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relay-node.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/relay-node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"relay-node.d.ts","sourceRoot":"","sources":["../../../src/cli/lib/relay-node.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EA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