agent-relay 4.0.30 → 4.0.32
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 +88 -48
- package/bin/agent-relay-broker-darwin-arm64 +0 -0
- package/bin/agent-relay-broker-darwin-x64 +0 -0
- package/bin/agent-relay-broker-linux-arm64 +0 -0
- package/bin/agent-relay-broker-linux-x64 +0 -0
- package/dist/index.cjs +309 -129
- package/dist/src/cli/bootstrap.d.ts +2 -1
- package/dist/src/cli/bootstrap.d.ts.map +1 -1
- package/dist/src/cli/bootstrap.js +223 -17
- package/dist/src/cli/bootstrap.js.map +1 -1
- package/dist/src/cli/commands/agent-management.d.ts.map +1 -1
- package/dist/src/cli/commands/agent-management.js +1 -3
- package/dist/src/cli/commands/agent-management.js.map +1 -1
- package/dist/src/cli/commands/auth.d.ts.map +1 -1
- package/dist/src/cli/commands/auth.js +32 -3
- package/dist/src/cli/commands/auth.js.map +1 -1
- package/dist/src/cli/commands/cloud.d.ts.map +1 -1
- package/dist/src/cli/commands/cloud.js +242 -144
- package/dist/src/cli/commands/cloud.js.map +1 -1
- package/dist/src/cli/commands/core.d.ts.map +1 -1
- package/dist/src/cli/commands/core.js +11 -6
- package/dist/src/cli/commands/core.js.map +1 -1
- package/dist/src/cli/commands/messaging.d.ts.map +1 -1
- package/dist/src/cli/commands/messaging.js +1 -3
- package/dist/src/cli/commands/messaging.js.map +1 -1
- package/dist/src/cli/commands/monitoring.d.ts.map +1 -1
- package/dist/src/cli/commands/monitoring.js +5 -4
- package/dist/src/cli/commands/monitoring.js.map +1 -1
- package/dist/src/cli/commands/on.d.ts.map +1 -1
- package/dist/src/cli/commands/on.js +1 -3
- package/dist/src/cli/commands/on.js.map +1 -1
- package/dist/src/cli/commands/setup.d.ts.map +1 -1
- package/dist/src/cli/commands/setup.js +62 -7
- package/dist/src/cli/commands/setup.js.map +1 -1
- package/dist/src/cli/commands/swarm.d.ts.map +1 -1
- package/dist/src/cli/commands/swarm.js +34 -4
- package/dist/src/cli/commands/swarm.js.map +1 -1
- package/dist/src/cli/index.js +9 -1
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/cli/lib/exit.d.ts +49 -0
- package/dist/src/cli/lib/exit.d.ts.map +1 -0
- package/dist/src/cli/lib/exit.js +73 -0
- package/dist/src/cli/lib/exit.js.map +1 -0
- package/dist/src/cli/lib/telemetry-helpers.d.ts +20 -0
- package/dist/src/cli/lib/telemetry-helpers.d.ts.map +1 -0
- package/dist/src/cli/lib/telemetry-helpers.js +31 -0
- package/dist/src/cli/lib/telemetry-helpers.js.map +1 -0
- package/node_modules/@agent-relay/cloud/package.json +2 -2
- package/node_modules/@agent-relay/config/package.json +1 -1
- package/node_modules/@agent-relay/hooks/package.json +4 -4
- package/node_modules/@agent-relay/sdk/README.md +3 -0
- package/node_modules/@agent-relay/sdk/dist/relay.d.ts +16 -0
- package/node_modules/@agent-relay/sdk/dist/relay.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/relay.js +83 -0
- package/node_modules/@agent-relay/sdk/dist/relay.js.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.d.ts +62 -12
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.d.ts.map +1 -1
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.js +137 -47
- package/node_modules/@agent-relay/sdk/dist/workflows/file-db.js.map +1 -1
- package/node_modules/@agent-relay/sdk/package.json +2 -2
- package/node_modules/@agent-relay/telemetry/dist/client.d.ts +14 -2
- package/node_modules/@agent-relay/telemetry/dist/client.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/client.js +22 -4
- package/node_modules/@agent-relay/telemetry/dist/client.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/events.d.ts +217 -10
- package/node_modules/@agent-relay/telemetry/dist/events.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/events.js +11 -0
- package/node_modules/@agent-relay/telemetry/dist/events.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/index.d.ts +2 -2
- package/node_modules/@agent-relay/telemetry/dist/index.d.ts.map +1 -1
- package/node_modules/@agent-relay/telemetry/dist/index.js.map +1 -1
- package/node_modules/@agent-relay/telemetry/package.json +2 -2
- package/node_modules/@agent-relay/trajectory/package.json +2 -2
- package/node_modules/@agent-relay/user-directory/package.json +2 -2
- package/node_modules/@agent-relay/utils/package.json +2 -2
- package/node_modules/@relaycast/sdk/dist/version.d.ts +1 -1
- package/node_modules/@relaycast/sdk/dist/version.js +1 -1
- package/node_modules/@relaycast/sdk/node_modules/@relaycast/types/package.json +1 -1
- package/node_modules/@relaycast/sdk/package.json +2 -2
- package/node_modules/agent-trajectories/dist/{chunk-2XT3DOJC.js → chunk-27AQPWHK.js} +136 -72
- package/node_modules/agent-trajectories/dist/chunk-27AQPWHK.js.map +1 -0
- package/node_modules/agent-trajectories/dist/cli/index.js +135 -71
- package/node_modules/agent-trajectories/dist/cli/index.js.map +1 -1
- package/node_modules/agent-trajectories/dist/{index-thTh5iI8.d.ts → index-C7XhwsoN.d.ts} +24 -0
- package/node_modules/agent-trajectories/dist/index.d.ts +2 -2
- package/node_modules/agent-trajectories/dist/index.js +1 -1
- package/node_modules/agent-trajectories/dist/sdk/index.d.ts +1 -1
- package/node_modules/agent-trajectories/dist/sdk/index.js +1 -1
- package/node_modules/agent-trajectories/package.json +1 -1
- package/node_modules/axios/CHANGELOG.md +166 -0
- package/node_modules/axios/README.md +210 -204
- package/node_modules/axios/dist/axios.js +92 -63
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +2 -2
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +140 -101
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +140 -101
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +199 -75
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +14 -28
- package/node_modules/axios/index.d.ts +132 -226
- package/node_modules/axios/lib/adapters/fetch.js +21 -6
- package/node_modules/axios/lib/adapters/http.js +88 -6
- package/node_modules/axios/lib/core/AxiosError.js +34 -33
- package/node_modules/axios/lib/core/AxiosHeaders.js +24 -25
- package/node_modules/axios/lib/core/buildFullPath.js +1 -1
- package/node_modules/axios/lib/core/mergeConfig.js +5 -3
- package/node_modules/axios/lib/defaults/index.js +13 -8
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +1 -2
- package/node_modules/axios/lib/helpers/formDataToJSON.js +3 -1
- package/node_modules/axios/lib/helpers/formDataToStream.js +2 -1
- package/node_modules/axios/lib/helpers/progressEventReducer.js +5 -5
- package/node_modules/axios/lib/helpers/resolveConfig.js +11 -3
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +48 -1
- package/node_modules/axios/lib/helpers/toFormData.js +10 -2
- package/node_modules/axios/lib/utils.js +10 -10
- package/node_modules/axios/package.json +4 -4
- package/package.json +9 -9
- package/packages/cloud/package.json +2 -2
- package/packages/config/package.json +1 -1
- package/packages/hooks/package.json +4 -4
- package/packages/sdk/README.md +3 -0
- package/packages/sdk/dist/relay.d.ts +16 -0
- package/packages/sdk/dist/relay.d.ts.map +1 -1
- package/packages/sdk/dist/relay.js +83 -0
- package/packages/sdk/dist/relay.js.map +1 -1
- package/packages/sdk/dist/workflows/file-db.d.ts +62 -12
- package/packages/sdk/dist/workflows/file-db.d.ts.map +1 -1
- package/packages/sdk/dist/workflows/file-db.js +137 -47
- package/packages/sdk/dist/workflows/file-db.js.map +1 -1
- package/packages/sdk/package.json +2 -2
- package/packages/telemetry/dist/client.d.ts +14 -2
- package/packages/telemetry/dist/client.d.ts.map +1 -1
- package/packages/telemetry/dist/client.js +22 -4
- package/packages/telemetry/dist/client.js.map +1 -1
- package/packages/telemetry/dist/events.d.ts +217 -10
- package/packages/telemetry/dist/events.d.ts.map +1 -1
- package/packages/telemetry/dist/events.js +11 -0
- package/packages/telemetry/dist/events.js.map +1 -1
- package/packages/telemetry/dist/index.d.ts +2 -2
- package/packages/telemetry/dist/index.d.ts.map +1 -1
- package/packages/telemetry/dist/index.js.map +1 -1
- package/packages/telemetry/package.json +2 -2
- package/packages/trajectory/package.json +2 -2
- package/packages/user-directory/package.json +2 -2
- package/packages/utils/package.json +2 -2
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/index.js +0 -17
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/license +0 -9
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/package.json +0 -43
- package/node_modules/@clack/prompts/node_modules/is-unicode-supported/readme.md +0 -35
- package/node_modules/agent-trajectories/dist/chunk-2XT3DOJC.js.map +0 -1
- package/node_modules/color-convert/CHANGELOG.md +0 -54
|
@@ -5,23 +5,69 @@
|
|
|
5
5
|
* - snake_case for events and properties
|
|
6
6
|
* - Present tense verbs (spawn, not spawned)
|
|
7
7
|
* - object_action pattern
|
|
8
|
+
*
|
|
9
|
+
* Privacy rules for authors:
|
|
10
|
+
* - Never capture argument values (file paths, run IDs, task text, tokens, URLs).
|
|
11
|
+
* - Flag NAMES are fine; flag VALUES are not.
|
|
12
|
+
* - When an event can fail, prefer `error_class` over `error_message` so we
|
|
13
|
+
* don't leak user content or paths. `error_class` is typically the Error
|
|
14
|
+
* constructor name (`errorClassName(err)`), but it may also be a stable
|
|
15
|
+
* synthetic category tag at non-throw failure sites — for example,
|
|
16
|
+
* `'WorkflowNotCompleted'` when a workflow returns `status !== 'completed'`
|
|
17
|
+
* without throwing. Stick to PascalCase tags so real Error names and
|
|
18
|
+
* synthetic categories share one namespace.
|
|
8
19
|
*/
|
|
9
20
|
/** Source of spawn/release action */
|
|
10
21
|
export type ActionSource = 'human_cli' | 'human_dashboard' | 'agent' | 'protocol';
|
|
11
|
-
/**
|
|
12
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Reason for agent release.
|
|
24
|
+
*
|
|
25
|
+
* This is a loose `string` on purpose — the broker emits both product-level
|
|
26
|
+
* reasons (`'explicit' | 'crash' | 'timeout' | 'shutdown'`) and broker-local
|
|
27
|
+
* categories that describe *how* the release arrived (`'ws_command'`,
|
|
28
|
+
* `'relaycast_release'`, etc.). Keeping the type open lets the schema stay
|
|
29
|
+
* honest about what actually shows up in PostHog without forcing every new
|
|
30
|
+
* broker category to be a breaking TS change.
|
|
31
|
+
*
|
|
32
|
+
* Known values (non-exhaustive):
|
|
33
|
+
* - Canonical: `'explicit'`, `'crash'`, `'timeout'`, `'shutdown'`
|
|
34
|
+
* - Broker-local: `'ws_command'`, `'relaycast_release'`
|
|
35
|
+
*/
|
|
36
|
+
export type ReleaseReason = string;
|
|
13
37
|
/**
|
|
14
38
|
* Common properties attached to every event.
|
|
39
|
+
*
|
|
40
|
+
* Version identification:
|
|
41
|
+
* - `cli_version` — version of the `agent-relay` CLI, when the event was
|
|
42
|
+
* emitted from the CLI process
|
|
43
|
+
* - `sdk_version` — version of `@agent-relay/sdk` resolved/bundled with the
|
|
44
|
+
* emitter. Populated when the CLI or broker can discover it.
|
|
45
|
+
* - `broker_version` — version of the Rust broker binary. Populated when
|
|
46
|
+
* emitted from the broker, or when the CLI is propagating broker info.
|
|
47
|
+
* - `agent_relay_version` — kept for backward compatibility with existing
|
|
48
|
+
* PostHog dashboards. Mirrors whichever component actually emitted the
|
|
49
|
+
* event: `cli_version` on CLI-originated events, `broker_version` on
|
|
50
|
+
* broker-originated events.
|
|
15
51
|
*/
|
|
16
52
|
export interface CommonProperties {
|
|
17
|
-
/**
|
|
53
|
+
/** Back-compat alias — same value as the emitter's primary version. */
|
|
18
54
|
agent_relay_version: string;
|
|
55
|
+
/** `agent-relay` CLI version, if known to the emitter. */
|
|
56
|
+
cli_version?: string;
|
|
57
|
+
/** `@agent-relay/sdk` version, if resolvable. */
|
|
58
|
+
sdk_version?: string;
|
|
59
|
+
/** `agent-relay-broker` Rust binary version, if known. */
|
|
60
|
+
broker_version?: string;
|
|
19
61
|
/** Operating system (e.g., darwin, linux, win32) */
|
|
20
62
|
os: string;
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
63
|
+
/**
|
|
64
|
+
* OS release version (e.g. `uname -r` output on unix).
|
|
65
|
+
* Optional — the broker omits this when detection fails on unusual
|
|
66
|
+
* platforms, and callers should treat its absence as "unknown".
|
|
67
|
+
*/
|
|
68
|
+
os_version?: string;
|
|
69
|
+
/** Node.js version (without 'v' prefix). Absent on broker-originated events. */
|
|
70
|
+
node_version?: string;
|
|
25
71
|
/** CPU architecture (e.g., arm64, x64) */
|
|
26
72
|
arch: string;
|
|
27
73
|
}
|
|
@@ -40,6 +86,17 @@ export interface BrokerStopEvent {
|
|
|
40
86
|
/** Total agents spawned during this session */
|
|
41
87
|
agent_spawn_count: number;
|
|
42
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* broker_start_failed - Emitted when the CLI fails to start or connect to a broker.
|
|
91
|
+
* Captures the stage so we can tell config problems from port conflicts from
|
|
92
|
+
* binary-not-found, without leaking paths or args.
|
|
93
|
+
*/
|
|
94
|
+
export interface BrokerStartFailedEvent {
|
|
95
|
+
/** Coarse phase where we gave up — e.g., 'resolve_binary', 'spawn', 'connect', 'handshake' */
|
|
96
|
+
stage: string;
|
|
97
|
+
/** Error constructor name (e.g., 'ENOENT', 'ECONNREFUSED', 'Error') */
|
|
98
|
+
error_class: string;
|
|
99
|
+
}
|
|
43
100
|
/**
|
|
44
101
|
* agent_spawn - Emitted when an agent is created.
|
|
45
102
|
*/
|
|
@@ -87,20 +144,170 @@ export interface MessageSendEvent {
|
|
|
87
144
|
has_thread: boolean;
|
|
88
145
|
}
|
|
89
146
|
/**
|
|
90
|
-
* cli_command_run - Emitted
|
|
147
|
+
* cli_command_run - Emitted before a CLI command's action runs.
|
|
148
|
+
* Now fires for every command (not just interactive), via a global Commander hook.
|
|
91
149
|
*/
|
|
92
150
|
export interface CliCommandRunEvent {
|
|
93
|
-
/**
|
|
151
|
+
/** Full command path — e.g., 'up', 'cloud login', 'workflows list' */
|
|
94
152
|
command_name: string;
|
|
153
|
+
/** Names (not values) of flags/options the user explicitly passed on the CLI */
|
|
154
|
+
flags_used?: string[];
|
|
155
|
+
/** True when stdin is a TTY — helps tell interactive vs scripted runs apart */
|
|
156
|
+
is_tty?: boolean;
|
|
157
|
+
/** Whether this process appears to be running inside CI */
|
|
158
|
+
is_ci?: boolean;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* cli_command_complete - Emitted after a CLI command finishes (success or failure).
|
|
162
|
+
* Pairs with cli_command_run by command_name + same session.
|
|
163
|
+
*/
|
|
164
|
+
export interface CliCommandCompleteEvent {
|
|
165
|
+
/** Full command path — e.g., 'up', 'cloud login' */
|
|
166
|
+
command_name: string;
|
|
167
|
+
/** True if the command ran to completion without throwing / without exit(non-zero) */
|
|
168
|
+
success: boolean;
|
|
169
|
+
/** Wall-clock duration in milliseconds */
|
|
170
|
+
duration_ms: number;
|
|
171
|
+
/** Exit code if the command or top-level handler requested one */
|
|
172
|
+
exit_code?: number;
|
|
173
|
+
/** Error constructor name when success=false (e.g., 'Error', 'CommanderError') */
|
|
174
|
+
error_class?: string;
|
|
175
|
+
}
|
|
176
|
+
export type WorkflowFileType = 'yaml' | 'ts' | 'py' | 'unknown';
|
|
177
|
+
/**
|
|
178
|
+
* workflow_run - Emitted when `agent-relay run <file>` finishes (success or failure).
|
|
179
|
+
* Covers the primary product surface — workflow execution from a local file.
|
|
180
|
+
*/
|
|
181
|
+
export interface WorkflowRunEvent {
|
|
182
|
+
/** Detected workflow file type */
|
|
183
|
+
file_type: WorkflowFileType;
|
|
184
|
+
/** True if --dry-run was passed */
|
|
185
|
+
is_dry_run: boolean;
|
|
186
|
+
/** True if --resume was passed */
|
|
187
|
+
is_resume: boolean;
|
|
188
|
+
/** True if --start-from was passed */
|
|
189
|
+
is_start_from: boolean;
|
|
190
|
+
/** True for .ts/.tsx/.py scripts (as opposed to YAML) */
|
|
191
|
+
is_script: boolean;
|
|
192
|
+
/** True if the command completed successfully */
|
|
193
|
+
success: boolean;
|
|
194
|
+
/** Wall-clock duration in milliseconds */
|
|
195
|
+
duration_ms: number;
|
|
196
|
+
/** Error constructor name on failure */
|
|
197
|
+
error_class?: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* cloud_auth - Emitted for cloud account auth flows (login/logout/whoami/connect).
|
|
201
|
+
* `action` distinguishes the flow; `provider` is only present for `connect`.
|
|
202
|
+
*/
|
|
203
|
+
export interface CloudAuthEvent {
|
|
204
|
+
/** Which cloud-auth flow ran */
|
|
205
|
+
action: 'login' | 'logout' | 'whoami' | 'connect';
|
|
206
|
+
/** True if the flow completed without throwing */
|
|
207
|
+
success: boolean;
|
|
208
|
+
/** Wall-clock duration in milliseconds */
|
|
209
|
+
duration_ms: number;
|
|
210
|
+
/** Provider id for `connect` flows (e.g., 'anthropic', 'openai') */
|
|
211
|
+
provider?: string;
|
|
212
|
+
/** Error constructor name on failure */
|
|
213
|
+
error_class?: string;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* cloud_workflow_run - Emitted when `agent-relay cloud run` submits a workflow.
|
|
217
|
+
*/
|
|
218
|
+
export interface CloudWorkflowRunEvent {
|
|
219
|
+
/** Whether --file-type was explicitly set by the user */
|
|
220
|
+
has_explicit_file_type: boolean;
|
|
221
|
+
/** Whether --sync-code was enabled (user or default) */
|
|
222
|
+
sync_code: boolean;
|
|
223
|
+
/** True if --json output mode was requested */
|
|
224
|
+
json_output: boolean;
|
|
225
|
+
/** True if the run was submitted successfully */
|
|
226
|
+
success: boolean;
|
|
227
|
+
/** Wall-clock duration in milliseconds */
|
|
228
|
+
duration_ms: number;
|
|
229
|
+
/** Error constructor name on failure */
|
|
230
|
+
error_class?: string;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* provider_auth - Emitted for `agent-relay auth <provider>` (SSH-based provider login).
|
|
234
|
+
*/
|
|
235
|
+
export interface ProviderAuthEvent {
|
|
236
|
+
/** Normalized provider id (e.g., 'anthropic', 'openai', 'google') */
|
|
237
|
+
provider: string;
|
|
238
|
+
/** True if auth completed without throwing */
|
|
239
|
+
success: boolean;
|
|
240
|
+
/** Wall-clock duration in milliseconds */
|
|
241
|
+
duration_ms: number;
|
|
242
|
+
/** Whether the --use-auth-broker flag was set */
|
|
243
|
+
use_auth_broker: boolean;
|
|
244
|
+
/** Whether a one-time --token was provided */
|
|
245
|
+
used_token: boolean;
|
|
246
|
+
/** Error constructor name on failure */
|
|
247
|
+
error_class?: string;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* setup_init - Emitted when the first-run init wizard runs.
|
|
251
|
+
*/
|
|
252
|
+
export interface SetupInitEvent {
|
|
253
|
+
/** True if running inside a cloud workspace (WORKSPACE_ID set) */
|
|
254
|
+
is_cloud: boolean;
|
|
255
|
+
/** True if a broker was already running when init started */
|
|
256
|
+
broker_was_running: boolean;
|
|
257
|
+
/** True if the user accepted the prompt to start the broker */
|
|
258
|
+
user_started_broker: boolean;
|
|
259
|
+
/** True if --yes was passed (non-interactive) */
|
|
260
|
+
yes_flag: boolean;
|
|
261
|
+
/** True if --skip-broker was passed */
|
|
262
|
+
skip_broker: boolean;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* swarm_run - Emitted when an ad-hoc swarm run finishes.
|
|
266
|
+
*/
|
|
267
|
+
export interface SwarmRunEvent {
|
|
268
|
+
/** Swarm pattern (e.g., 'fan-out', 'competitive', 'pipeline') */
|
|
269
|
+
pattern: string;
|
|
270
|
+
/** Number of teams/stages requested */
|
|
271
|
+
teams: number;
|
|
272
|
+
/** CLI tool used for workers */
|
|
273
|
+
cli: string;
|
|
274
|
+
/** True if --list was passed */
|
|
275
|
+
is_list: boolean;
|
|
276
|
+
/** True if --dry-run was passed */
|
|
277
|
+
is_dry_run: boolean;
|
|
278
|
+
/** Exit code from the broker process */
|
|
279
|
+
exit_code: number;
|
|
280
|
+
/** Wall-clock duration in milliseconds */
|
|
281
|
+
duration_ms: number;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* bridge_spawn - Emitted when the multi-project bridge is launched.
|
|
285
|
+
*/
|
|
286
|
+
export interface BridgeSpawnEvent {
|
|
287
|
+
/** Number of projects being bridged */
|
|
288
|
+
project_count: number;
|
|
289
|
+
/** CLI tool override if provided (else 'default') */
|
|
290
|
+
cli: string;
|
|
291
|
+
/** True if an architect agent was requested */
|
|
292
|
+
has_architect: boolean;
|
|
95
293
|
}
|
|
96
|
-
export type TelemetryEventName = 'broker_start' | 'broker_stop' | 'agent_spawn' | 'agent_release' | 'agent_crash' | 'message_send' | 'cli_command_run';
|
|
294
|
+
export type TelemetryEventName = 'broker_start' | 'broker_stop' | 'broker_start_failed' | 'agent_spawn' | 'agent_release' | 'agent_crash' | 'message_send' | 'cli_command_run' | 'cli_command_complete' | 'workflow_run' | 'cloud_auth' | 'cloud_workflow_run' | 'provider_auth' | 'setup_init' | 'swarm_run' | 'bridge_spawn';
|
|
97
295
|
export interface TelemetryEventMap {
|
|
98
296
|
broker_start: BrokerStartEvent;
|
|
99
297
|
broker_stop: BrokerStopEvent;
|
|
298
|
+
broker_start_failed: BrokerStartFailedEvent;
|
|
100
299
|
agent_spawn: AgentSpawnEvent;
|
|
101
300
|
agent_release: AgentReleaseEvent;
|
|
102
301
|
agent_crash: AgentCrashEvent;
|
|
103
302
|
message_send: MessageSendEvent;
|
|
104
303
|
cli_command_run: CliCommandRunEvent;
|
|
304
|
+
cli_command_complete: CliCommandCompleteEvent;
|
|
305
|
+
workflow_run: WorkflowRunEvent;
|
|
306
|
+
cloud_auth: CloudAuthEvent;
|
|
307
|
+
cloud_workflow_run: CloudWorkflowRunEvent;
|
|
308
|
+
provider_auth: ProviderAuthEvent;
|
|
309
|
+
setup_init: SetupInitEvent;
|
|
310
|
+
swarm_run: SwarmRunEvent;
|
|
311
|
+
bridge_spawn: BridgeSpawnEvent;
|
|
105
312
|
}
|
|
106
313
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,qCAAqC;AACrC,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,iBAAiB,GAAG,OAAO,GAAG,UAAU,CAAC;AAElF;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gFAAgF;IAChF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd;AAMD;;;GAGG;AACH,MAAM,WAAW,gBAAgB;CAEhC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,cAAc,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;A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D,MAAM,MAAM,kBAAkB,GAC1B,cAAc,GACd,aAAa,GACb,qBAAqB,GACrB,aAAa,GACb,eAAe,GACf,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,sBAAsB,GACtB,cAAc,GACd,YAAY,GACZ,oBAAoB,GACpB,eAAe,GACf,YAAY,GACZ,WAAW,GACX,cAAc,CAAC;AAEnB,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,WAAW,EAAE,eAAe,CAAC;IAC7B,mBAAmB,EAAE,sBAAsB,CAAC;IAC5C,WAAW,EAAE,eAAe,CAAC;IAC7B,aAAa,EAAE,iBAAiB,CAAC;IACjC,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,kBAAkB,CAAC;IACpC,oBAAoB,EAAE,uBAAuB,CAAC;IAC9C,YAAY,EAAE,gBAAgB,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;IAC3B,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,aAAa,EAAE,iBAAiB,CAAC;IACjC,UAAU,EAAE,cAAc,CAAC;IAC3B,SAAS,EAAE,aAAa,CAAC;IACzB,YAAY,EAAE,gBAAgB,CAAC;CAChC"}
|
|
@@ -5,6 +5,17 @@
|
|
|
5
5
|
* - snake_case for events and properties
|
|
6
6
|
* - Present tense verbs (spawn, not spawned)
|
|
7
7
|
* - object_action pattern
|
|
8
|
+
*
|
|
9
|
+
* Privacy rules for authors:
|
|
10
|
+
* - Never capture argument values (file paths, run IDs, task text, tokens, URLs).
|
|
11
|
+
* - Flag NAMES are fine; flag VALUES are not.
|
|
12
|
+
* - When an event can fail, prefer `error_class` over `error_message` so we
|
|
13
|
+
* don't leak user content or paths. `error_class` is typically the Error
|
|
14
|
+
* constructor name (`errorClassName(err)`), but it may also be a stable
|
|
15
|
+
* synthetic category tag at non-throw failure sites — for example,
|
|
16
|
+
* `'WorkflowNotCompleted'` when a workflow returns `status !== 'completed'`
|
|
17
|
+
* without throwing. Stick to PascalCase tags so real Error names and
|
|
18
|
+
* synthetic categories share one namespace.
|
|
8
19
|
*/
|
|
9
20
|
export {};
|
|
10
21
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @agent-relay/telemetry - Anonymous usage analytics (opt-out via env or CLI)
|
|
3
3
|
*/
|
|
4
|
-
export { initTelemetry, track, shutdown, isEnabled, getAnonymousId, getStatus, } from './client.js';
|
|
4
|
+
export { initTelemetry, track, shutdown, isEnabled, getAnonymousId, getStatus, type InitTelemetryOptions, } from './client.js';
|
|
5
5
|
export { isTelemetryEnabled, enableTelemetry, disableTelemetry, wasNotified, markNotified, loadPrefs, savePrefs, getPrefsPath, isDisabledByEnv, type TelemetryPrefs, } from './config.js';
|
|
6
|
-
export type { CommonProperties, ActionSource, ReleaseReason, BrokerStartEvent, BrokerStopEvent, AgentSpawnEvent, AgentReleaseEvent, AgentCrashEvent, MessageSendEvent, CliCommandRunEvent, TelemetryEventName, TelemetryEventMap, } from './events.js';
|
|
6
|
+
export type { CommonProperties, ActionSource, ReleaseReason, WorkflowFileType, BrokerStartEvent, BrokerStopEvent, BrokerStartFailedEvent, AgentSpawnEvent, AgentReleaseEvent, AgentCrashEvent, MessageSendEvent, CliCommandRunEvent, CliCommandCompleteEvent, WorkflowRunEvent, CloudAuthEvent, CloudWorkflowRunEvent, ProviderAuthEvent, SetupInitEvent, SwarmRunEvent, BridgeSpawnEvent, TelemetryEventName, TelemetryEventMap, } from './events.js';
|
|
7
7
|
export { loadMachineId, createAnonymousId, getMachineIdPath, } from './machine-id.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,SAAS,EACT,KAAK,oBAAoB,GAC1B,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACZ,eAAe,EACf,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,SAAS,GAEV,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACZ,eAAe,GAEhB,MAAM,aAAa,CAAC;AA2BrB,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/telemetry",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.32",
|
|
4
4
|
"description": "Anonymous telemetry for Agent Relay usage analytics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test:watch": "vitest"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"posthog-node": "^
|
|
26
|
+
"posthog-node": "^5.29.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^22.19.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/trajectory",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.32",
|
|
4
4
|
"description": "Trajectory integration utilities (trail/PDERO) for Relay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test:watch": "vitest"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agent-relay/config": "4.0.
|
|
25
|
+
"@agent-relay/config": "4.0.32"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.19.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/user-directory",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.32",
|
|
4
4
|
"description": "User directory service for agent-relay (per-user credential storage)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test:watch": "vitest"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agent-relay/utils": "4.0.
|
|
25
|
+
"@agent-relay/utils": "4.0.32"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.19.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.32",
|
|
4
4
|
"description": "Shared utilities for agent-relay: logging, name generation, command resolution, update checking",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"vitest": "^3.2.4"
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@agent-relay/config": "4.0.
|
|
114
|
+
"@agent-relay/config": "4.0.32",
|
|
115
115
|
"compare-versions": "^6.1.1"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": {
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import process from 'node:process';
|
|
2
|
-
|
|
3
|
-
export default function isUnicodeSupported() {
|
|
4
|
-
if (process.platform !== 'win32') {
|
|
5
|
-
return process.env.TERM !== 'linux'; // Linux console (kernel)
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
return Boolean(process.env.CI)
|
|
9
|
-
|| Boolean(process.env.WT_SESSION) // Windows Terminal
|
|
10
|
-
|| Boolean(process.env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|
|
11
|
-
|| process.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|
|
12
|
-
|| process.env.TERM_PROGRAM === 'Terminus-Sublime'
|
|
13
|
-
|| process.env.TERM_PROGRAM === 'vscode'
|
|
14
|
-
|| process.env.TERM === 'xterm-256color'
|
|
15
|
-
|| process.env.TERM === 'alacritty'
|
|
16
|
-
|| process.env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
|
|
17
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "is-unicode-supported",
|
|
3
|
-
"version": "1.3.0",
|
|
4
|
-
"description": "Detect whether the terminal supports Unicode",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/is-unicode-supported",
|
|
7
|
-
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
-
"author": {
|
|
9
|
-
"name": "Sindre Sorhus",
|
|
10
|
-
"email": "sindresorhus@gmail.com",
|
|
11
|
-
"url": "https://sindresorhus.com"
|
|
12
|
-
},
|
|
13
|
-
"type": "module",
|
|
14
|
-
"exports": "./index.js",
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=12"
|
|
17
|
-
},
|
|
18
|
-
"scripts": {
|
|
19
|
-
"test": "xo && ava && tsd"
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"index.js",
|
|
23
|
-
"index.d.ts"
|
|
24
|
-
],
|
|
25
|
-
"keywords": [
|
|
26
|
-
"terminal",
|
|
27
|
-
"unicode",
|
|
28
|
-
"detect",
|
|
29
|
-
"utf8",
|
|
30
|
-
"console",
|
|
31
|
-
"shell",
|
|
32
|
-
"support",
|
|
33
|
-
"supports",
|
|
34
|
-
"supported",
|
|
35
|
-
"check",
|
|
36
|
-
"detection"
|
|
37
|
-
],
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"ava": "^4.0.1",
|
|
40
|
-
"tsd": "^0.19.1",
|
|
41
|
-
"xo": "^0.47.0"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# is-unicode-supported
|
|
2
|
-
|
|
3
|
-
> Detect whether the terminal supports Unicode
|
|
4
|
-
|
|
5
|
-
This can be useful to decide whether to use Unicode characters or fallback ASCII characters in command-line output.
|
|
6
|
-
|
|
7
|
-
Note that the check is quite naive. It just assumes all non-Windows terminals support Unicode and hard-codes which Windows terminals that do support Unicode. However, I have been using this logic in some popular packages for years without problems.
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
npm install is-unicode-supported
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import isUnicodeSupported from 'is-unicode-supported';
|
|
19
|
-
|
|
20
|
-
isUnicodeSupported();
|
|
21
|
-
//=> true
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## API
|
|
25
|
-
|
|
26
|
-
### isUnicodeSupported()
|
|
27
|
-
|
|
28
|
-
Returns a `boolean` for whether the terminal supports Unicode.
|
|
29
|
-
|
|
30
|
-
## Related
|
|
31
|
-
|
|
32
|
-
- [is-interactive](https://github.com/sindresorhus/is-interactive) - Check if stdout or stderr is interactive
|
|
33
|
-
- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
|
|
34
|
-
- [figures](https://github.com/sindresorhus/figures) - Unicode symbols with Windows fallbacks
|
|
35
|
-
- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels
|