@beeos-ai/bma-executor-sdk 1.0.5 → 1.2.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 +7 -2
- package/dist/agent.js.map +1 -1
- package/dist/client.d.ts +27 -1
- package/dist/client.js +45 -3
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +51 -0
- package/dist/errors.js +63 -0
- package/dist/errors.js.map +1 -1
- package/dist/generated/executor.d.ts +159 -105
- package/dist/generated/executor.js +17 -1
- package/dist/generated/executor.js.map +1 -1
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/rpc.js.map +1 -1
- package/dist/session-context.d.ts +30 -0
- package/dist/session-context.js +84 -0
- package/dist/session-context.js.map +1 -0
- package/dist/transport.js.map +1 -1
- package/package.json +3 -3
|
@@ -17,6 +17,8 @@ export interface AgentCapability {
|
|
|
17
17
|
max_sessions?: number;
|
|
18
18
|
/** The executor keeps the state of its turns across a process restart. When it registers again without a session whose turn was running, the platform starts the same turn again in a new event epoch (turn.start with the same turn_id, input_id and executor_session_ref, then the turn.input the turn already received) and the executor continues the turn from its own state. Without it such a turn ends failed (session.error, session.status_idle retries_exhausted) and is not sent again: an executor without that state would run the turn again from its opening input and repeat tool calls whose effects already happened. */
|
|
19
19
|
turn_resume?: boolean;
|
|
20
|
+
/** Per-turn credentials the executor asks the platform to hand it in turn.start metadata: brain_tools (tools_mcp_url, tools_mcp_token: the session's tools endpoint) and harness_model (model_base_url, model_token: the session's model endpoint). A declaration only states what the executor can use; the platform decides by the executor's identity and hands them only to an executor registered as a platform service, never to a tenant executor. Tokens are computed for each turn.start, are valid until the turn ends, and are never stored. */
|
|
21
|
+
platform_credentials?: Array<'brain_tools' | 'harness_model'>;
|
|
20
22
|
harness?: AgentHarnessCapability;
|
|
21
23
|
}
|
|
22
24
|
/** Typed session error. */
|
|
@@ -29,15 +31,15 @@ export type AgentEvent = AgentMessageEvent | AgentThinkingEvent | AgentToolUseEv
|
|
|
29
31
|
/** Durable events an agent executor emits with session.event. Names and members follow Anthropic Managed Agents session events. user.* events are written by the platform, never by the executor. */
|
|
30
32
|
export type AgentEventType = 'agent.message' | 'agent.thinking' | 'agent.tool_use' | 'agent.tool_result' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'session.status_running' | 'session.status_idle' | 'session.error';
|
|
31
33
|
export declare const AgentEventType: {
|
|
32
|
-
readonly AgentMessage:
|
|
33
|
-
readonly AgentThinking:
|
|
34
|
-
readonly AgentToolUse:
|
|
35
|
-
readonly AgentToolResult:
|
|
36
|
-
readonly AgentMcpToolUse:
|
|
37
|
-
readonly AgentMcpToolResult:
|
|
38
|
-
readonly SessionStatusRunning:
|
|
39
|
-
readonly SessionStatusIdle:
|
|
40
|
-
readonly SessionError:
|
|
34
|
+
readonly AgentMessage: 'agent.message';
|
|
35
|
+
readonly AgentThinking: 'agent.thinking';
|
|
36
|
+
readonly AgentToolUse: 'agent.tool_use';
|
|
37
|
+
readonly AgentToolResult: 'agent.tool_result';
|
|
38
|
+
readonly AgentMcpToolUse: 'agent.mcp_tool_use';
|
|
39
|
+
readonly AgentMcpToolResult: 'agent.mcp_tool_result';
|
|
40
|
+
readonly SessionStatusRunning: 'session.status_running';
|
|
41
|
+
readonly SessionStatusIdle: 'session.status_idle';
|
|
42
|
+
readonly SessionError: 'session.error';
|
|
41
43
|
};
|
|
42
44
|
/** What the third-party agent the executor hosts (for example an ACP agent) supports; an omitted boolean is false. Sent with executor.capabilities.update once the agent has started; absent until then and after a reconnect until the next turn. Informational: the platform records it and reflects it in the session harness capabilities. */
|
|
43
45
|
export interface AgentHarnessCapability {
|
|
@@ -78,8 +80,8 @@ export interface AgentInputBlock {
|
|
|
78
80
|
/** Agent input block type. */
|
|
79
81
|
export type AgentInputBlockType = 'text' | 'file';
|
|
80
82
|
export declare const AgentInputBlockType: {
|
|
81
|
-
readonly Text:
|
|
82
|
-
readonly File:
|
|
83
|
+
readonly Text: 'text';
|
|
84
|
+
readonly File: 'file';
|
|
83
85
|
};
|
|
84
86
|
/** Result of an agent.mcp_tool_use. */
|
|
85
87
|
export interface AgentMcpToolResultEvent {
|
|
@@ -138,12 +140,12 @@ export interface AgentTurnConfig {
|
|
|
138
140
|
/** Extra system instructions from the platform agent definition. */
|
|
139
141
|
system?: string;
|
|
140
142
|
}
|
|
141
|
-
/** v1.1 artifact upload (POST /v1/executors/artifacts). Environment-scoped executors only. */
|
|
143
|
+
/** v1.1 artifact upload (POST /v1/environments/{environment_id}/artifacts; legacy alias POST /v1/executors/artifacts). Environment-scoped executors only. */
|
|
142
144
|
export interface ArtifactCapability {
|
|
143
145
|
upload: boolean;
|
|
144
146
|
max_bytes?: number;
|
|
145
147
|
}
|
|
146
|
-
/** Artifact reference returned by POST /v1/executors/artifacts and listed in tool.result artifacts (v1.1 §6.5). */
|
|
148
|
+
/** Artifact reference returned by POST /v1/environments/{environment_id}/artifacts (legacy alias POST /v1/executors/artifacts) and listed in tool.result artifacts (v1.1 §6.5). */
|
|
147
149
|
export interface ArtifactRef {
|
|
148
150
|
artifact_id: string;
|
|
149
151
|
name?: string;
|
|
@@ -179,21 +181,23 @@ export interface Capabilities {
|
|
|
179
181
|
skills?: SkillsCapability;
|
|
180
182
|
workspace?: WorkspaceCapability;
|
|
181
183
|
agent?: AgentCapability;
|
|
184
|
+
session_files?: SessionFilesCapability;
|
|
185
|
+
fs?: FsCapability;
|
|
182
186
|
}
|
|
183
187
|
/** Channels a short-lived executor JWT may open. */
|
|
184
188
|
export type ChannelScope = 'control' | 'mcp';
|
|
185
189
|
export declare const ChannelScope: {
|
|
186
|
-
readonly Control:
|
|
187
|
-
readonly Mcp:
|
|
190
|
+
readonly Control: 'control';
|
|
191
|
+
readonly Mcp: 'mcp';
|
|
188
192
|
};
|
|
189
193
|
/** Input actions accepted by the computer_action tool. */
|
|
190
194
|
export type ComputerAction = 'click' | 'type' | 'key' | 'scroll' | 'drag';
|
|
191
195
|
export declare const ComputerAction: {
|
|
192
|
-
readonly Click:
|
|
193
|
-
readonly Type:
|
|
194
|
-
readonly Key:
|
|
195
|
-
readonly Scroll:
|
|
196
|
-
readonly Drag:
|
|
196
|
+
readonly Click: 'click';
|
|
197
|
+
readonly Type: 'type';
|
|
198
|
+
readonly Key: 'key';
|
|
199
|
+
readonly Scroll: 'scroll';
|
|
200
|
+
readonly Drag: 'drag';
|
|
197
201
|
};
|
|
198
202
|
/** computer_action input. */
|
|
199
203
|
export interface ComputerActionInput {
|
|
@@ -209,12 +213,12 @@ export interface ComputerObserveInput {
|
|
|
209
213
|
/** Executor control channel state machine. */
|
|
210
214
|
export type ConnectionState = 'disconnected' | 'connecting' | 'registered' | 'ready' | 'draining' | 'closed';
|
|
211
215
|
export declare const ConnectionState: {
|
|
212
|
-
readonly Disconnected:
|
|
213
|
-
readonly Connecting:
|
|
214
|
-
readonly Registered:
|
|
215
|
-
readonly Ready:
|
|
216
|
-
readonly Draining:
|
|
217
|
-
readonly Closed:
|
|
216
|
+
readonly Disconnected: 'disconnected';
|
|
217
|
+
readonly Connecting: 'connecting';
|
|
218
|
+
readonly Registered: 'registered';
|
|
219
|
+
readonly Ready: 'ready';
|
|
220
|
+
readonly Draining: 'draining';
|
|
221
|
+
readonly Closed: 'closed';
|
|
218
222
|
};
|
|
219
223
|
/** Tool result content block. An artifact block carries artifact_id and mime_type instead of text (v1.1 §6.5). */
|
|
220
224
|
export interface ContentBlock {
|
|
@@ -228,10 +232,10 @@ export interface ContentBlock {
|
|
|
228
232
|
/** Tool result content block type. */
|
|
229
233
|
export type ContentBlockType = 'text' | 'image' | 'resource' | 'artifact';
|
|
230
234
|
export declare const ContentBlockType: {
|
|
231
|
-
readonly Text:
|
|
232
|
-
readonly Image:
|
|
233
|
-
readonly Resource:
|
|
234
|
-
readonly Artifact:
|
|
235
|
+
readonly Text: 'text';
|
|
236
|
+
readonly Image: 'image';
|
|
237
|
+
readonly Resource: 'resource';
|
|
238
|
+
readonly Artifact: 'artifact';
|
|
235
239
|
};
|
|
236
240
|
/** Per-stream byte cursors. */
|
|
237
241
|
export interface Cursors {
|
|
@@ -260,8 +264,8 @@ export interface EvaluatedPermission {
|
|
|
260
264
|
/** Durable event type a streaming preview belongs to. */
|
|
261
265
|
export type EventDeltaType = 'agent.message' | 'agent.thinking';
|
|
262
266
|
export declare const EventDeltaType: {
|
|
263
|
-
readonly AgentMessage:
|
|
264
|
-
readonly AgentThinking:
|
|
267
|
+
readonly AgentMessage: 'agent.message';
|
|
268
|
+
readonly AgentThinking: 'agent.thinking';
|
|
265
269
|
};
|
|
266
270
|
/** executor.drain result. */
|
|
267
271
|
export interface ExecutorDrainResult {
|
|
@@ -310,12 +314,12 @@ export interface ExecutorTokenRefreshResult {
|
|
|
310
314
|
/** RFC 3339 time of the new connection deadline. */
|
|
311
315
|
expires_at: string;
|
|
312
316
|
}
|
|
313
|
-
/** POST /v1/executors/token
|
|
317
|
+
/** Token request body for POST /v1/machines/{machine_id}/token (bearer: machine daemon token) and POST /v1/environments/{environment_id}/token (bearer: environment key); the legacy alias POST /v1/executors/token takes either bearer. The id in the path must equal the credential's machine or environment, otherwise 404; on the new paths environment_id may be empty or absent for a machine and, when sent for an environment, must equal the path id. An empty environment_id with a machine token requests a machine-scoped executor: its executor_id is exec_<machine_id>, stable across refreshes, and the JWT carries machine_id and daemon_token_id. */
|
|
314
318
|
export interface ExecutorTokenRequest {
|
|
315
319
|
environment_id: string;
|
|
316
320
|
executor: ExecutorInfo;
|
|
317
321
|
}
|
|
318
|
-
/** POST /v1/executors/token
|
|
322
|
+
/** Token response of POST /v1/machines/{machine_id}/token, POST /v1/environments/{environment_id}/token and the legacy alias POST /v1/executors/token. */
|
|
319
323
|
export interface ExecutorTokenResponse {
|
|
320
324
|
executor_id: string;
|
|
321
325
|
/** Short-lived executor JWT, sent only in the Authorization header of the channel upgrade. */
|
|
@@ -328,8 +332,8 @@ export interface ExecutorTokenResponse {
|
|
|
328
332
|
/** File transfer direction relative to the machine. */
|
|
329
333
|
export type FileTransferDirection = 'upload' | 'download';
|
|
330
334
|
export declare const FileTransferDirection: {
|
|
331
|
-
readonly Upload:
|
|
332
|
-
readonly Download:
|
|
335
|
+
readonly Upload: 'upload';
|
|
336
|
+
readonly Download: 'download';
|
|
333
337
|
};
|
|
334
338
|
/** Failed file transfer. */
|
|
335
339
|
export interface FileTransferError {
|
|
@@ -349,6 +353,34 @@ export interface FilesCapability {
|
|
|
349
353
|
read_roots?: Array<string>;
|
|
350
354
|
write_roots?: Array<string>;
|
|
351
355
|
}
|
|
356
|
+
/** Session file views mounted by the executor as FUSE file systems backed by bma-file (docs/adr/0021). Declared only after the executor probed that it can mount. Absent or fuse=false: the session files stay on the copy-and-scan protocol (session_files). views lists the views the executor can mount; the harness only mounts those. Machine-scoped executors only. */
|
|
357
|
+
export interface FsCapability {
|
|
358
|
+
fuse: boolean;
|
|
359
|
+
views?: Array<string>;
|
|
360
|
+
}
|
|
361
|
+
/** One view to mount. path is the absolute mount point on the executor host (derived from session_files by the harness). readonly is also fixed inside token; the executor mounts read-only when it is true. token is a capability token for this session and machine: keep it in memory only, never write it to disk, argv, environment or logs. */
|
|
362
|
+
export interface FsMount {
|
|
363
|
+
/** uploads (FS1). Open enum: outputs, skills and memory follow. */
|
|
364
|
+
view: string;
|
|
365
|
+
path: string;
|
|
366
|
+
readonly: boolean;
|
|
367
|
+
token: string;
|
|
368
|
+
/** Reserved mount tuning (string values); unknown keys are ignored. */
|
|
369
|
+
options?: Record<string, string>;
|
|
370
|
+
}
|
|
371
|
+
/** fs.mount result. state is "mounted" once every listed view is mounted and serving, or "failed" with error_code and error (nothing stays half-mounted). */
|
|
372
|
+
export interface FsMountResult {
|
|
373
|
+
state: 'mounted' | 'failed';
|
|
374
|
+
error_code?: string;
|
|
375
|
+
error?: string;
|
|
376
|
+
}
|
|
377
|
+
/** fs.unmount result. pending_bytes is data not yet committed to bma-file when flush was requested (always 0 for read-only views). */
|
|
378
|
+
export interface FsUnmountResult {
|
|
379
|
+
state: 'unmounted' | 'failed';
|
|
380
|
+
pending_bytes: number;
|
|
381
|
+
error_code?: string;
|
|
382
|
+
error?: string;
|
|
383
|
+
}
|
|
352
384
|
/** glob input: list paths matching pattern. */
|
|
353
385
|
export interface GlobInput {
|
|
354
386
|
/** Glob pattern. */
|
|
@@ -368,30 +400,30 @@ export interface GrepInput {
|
|
|
368
400
|
/** process.start io_mode. "pty" runs the command on a 24x80 pseudo-terminal: stdout is the PTY output, stdin writes go to the PTY and close_stdin is rejected. Requires process.pty. */
|
|
369
401
|
export type IOMode = 'pty';
|
|
370
402
|
export declare const IOMode: {
|
|
371
|
-
readonly Pty:
|
|
403
|
+
readonly Pty: 'pty';
|
|
372
404
|
};
|
|
373
405
|
/** Why the executor withdrew an open interaction. */
|
|
374
406
|
export type InteractionCancelReason = 'resolved_locally' | 'turn_canceled' | 'expired' | 'tool_canceled';
|
|
375
407
|
export declare const InteractionCancelReason: {
|
|
376
|
-
readonly ResolvedLocally:
|
|
377
|
-
readonly TurnCanceled:
|
|
378
|
-
readonly Expired:
|
|
379
|
-
readonly ToolCanceled:
|
|
408
|
+
readonly ResolvedLocally: 'resolved_locally';
|
|
409
|
+
readonly TurnCanceled: 'turn_canceled';
|
|
410
|
+
readonly Expired: 'expired';
|
|
411
|
+
readonly ToolCanceled: 'tool_canceled';
|
|
380
412
|
};
|
|
381
413
|
/** Interaction kinds; they map 1:1 to platform agent interactions. */
|
|
382
414
|
export type InteractionKind = 'permission' | 'question';
|
|
383
415
|
export declare const InteractionKind: {
|
|
384
|
-
readonly Permission:
|
|
385
|
-
readonly Question:
|
|
416
|
+
readonly Permission: 'permission';
|
|
417
|
+
readonly Question: 'question';
|
|
386
418
|
};
|
|
387
419
|
/** How the platform resolved an interaction. allow/deny answer permission, answered answers question, expired and canceled close either kind without an answer. */
|
|
388
420
|
export type InteractionOutcome = 'allow' | 'deny' | 'answered' | 'expired' | 'canceled';
|
|
389
421
|
export declare const InteractionOutcome: {
|
|
390
|
-
readonly Allow:
|
|
391
|
-
readonly Deny:
|
|
392
|
-
readonly Answered:
|
|
393
|
-
readonly Expired:
|
|
394
|
-
readonly Canceled:
|
|
422
|
+
readonly Allow: 'allow';
|
|
423
|
+
readonly Deny: 'deny';
|
|
424
|
+
readonly Answered: 'answered';
|
|
425
|
+
readonly Expired: 'expired';
|
|
426
|
+
readonly Canceled: 'canceled';
|
|
395
427
|
};
|
|
396
428
|
/** Question shown to the user. */
|
|
397
429
|
export interface InteractionQuestion {
|
|
@@ -422,8 +454,8 @@ export interface InteractionResponseResult {
|
|
|
422
454
|
/** How long a permission grant lasts on the executor: this tool use only, or the rest of the session. */
|
|
423
455
|
export type InteractionScope = 'once' | 'session';
|
|
424
456
|
export declare const InteractionScope: {
|
|
425
|
-
readonly Once:
|
|
426
|
-
readonly Session:
|
|
457
|
+
readonly Once: 'once';
|
|
458
|
+
readonly Session: 'session';
|
|
427
459
|
};
|
|
428
460
|
/** JSON-RPC 2.0 error object. */
|
|
429
461
|
export interface JsonRpcError {
|
|
@@ -461,7 +493,7 @@ export interface JsonRpcErrorData {
|
|
|
461
493
|
detail?: string;
|
|
462
494
|
/** Missing capability for -32012, for example "tool:read" or "process.pty". */
|
|
463
495
|
capability?: string;
|
|
464
|
-
/** Machine-readable cause,
|
|
496
|
+
/** Machine-readable cause; an open set that the harness passes through unchanged (process.start: the tool result error_code and the process state reason; turn.start: the session.error code). Recommended values: workspace_unavailable, workspace_boundary, workspace_read_only, session_rejected, local_confirmation_denied, local_confirmation_expired, spawn_failed / process_id_spec_mismatch for process.start, and capability_missing for executor.register. Receivers must accept values they do not know. */
|
|
465
497
|
reason?: string;
|
|
466
498
|
/** bma.terminal.v1 error code for a failed terminal.* call. */
|
|
467
499
|
terminal_code?: string;
|
|
@@ -525,8 +557,8 @@ export interface McpCapability {
|
|
|
525
557
|
/** Who connects the MCP server. environment means the executor starts/connects it; service means the harness connects. */
|
|
526
558
|
export type McpConnectionOrigin = 'service' | 'environment';
|
|
527
559
|
export declare const McpConnectionOrigin: {
|
|
528
|
-
readonly Service:
|
|
529
|
-
readonly Environment:
|
|
560
|
+
readonly Service: 'service';
|
|
561
|
+
readonly Environment: 'environment';
|
|
530
562
|
};
|
|
531
563
|
/** MCP tool content block. Large binary content must go to artifact storage. */
|
|
532
564
|
export interface McpContentBlock {
|
|
@@ -628,21 +660,21 @@ export interface McpToolsListResult {
|
|
|
628
660
|
}
|
|
629
661
|
export type McpTransportType = 'stdio' | 'http';
|
|
630
662
|
export declare const McpTransportType: {
|
|
631
|
-
readonly Stdio:
|
|
632
|
-
readonly Http:
|
|
663
|
+
readonly Stdio: 'stdio';
|
|
664
|
+
readonly Http: 'http';
|
|
633
665
|
};
|
|
634
666
|
/** Package manager for process.start package_install. */
|
|
635
667
|
export type PackageManager = 'apt' | 'pip' | 'npm';
|
|
636
668
|
export declare const PackageManager: {
|
|
637
|
-
readonly Apt:
|
|
638
|
-
readonly Pip:
|
|
639
|
-
readonly Npm:
|
|
669
|
+
readonly Apt: 'apt';
|
|
670
|
+
readonly Pip: 'pip';
|
|
671
|
+
readonly Npm: 'npm';
|
|
640
672
|
};
|
|
641
673
|
/** Tool permission mode; always_ask means the harness already resolved approval. */
|
|
642
674
|
export type PermissionMode = 'always_allow' | 'always_ask';
|
|
643
675
|
export declare const PermissionMode: {
|
|
644
|
-
readonly AlwaysAllow:
|
|
645
|
-
readonly AlwaysAsk:
|
|
676
|
+
readonly AlwaysAllow: 'always_allow';
|
|
677
|
+
readonly AlwaysAsk: 'always_ask';
|
|
646
678
|
};
|
|
647
679
|
/** v1.1 process.* support. pty, file_transfer, package_install and git_credentials are additive: the harness only sends the matching process.start fields to an executor that set them, and fails the process explicitly otherwise. */
|
|
648
680
|
export interface ProcessCapability {
|
|
@@ -709,16 +741,16 @@ export interface ProcessState {
|
|
|
709
741
|
/** Process state (v1.1 §3.3). */
|
|
710
742
|
export type ProcessStateName = 'running' | 'exited' | 'failed' | 'killed';
|
|
711
743
|
export declare const ProcessStateName: {
|
|
712
|
-
readonly Running:
|
|
713
|
-
readonly Exited:
|
|
714
|
-
readonly Failed:
|
|
715
|
-
readonly Killed:
|
|
744
|
+
readonly Running: 'running';
|
|
745
|
+
readonly Exited: 'exited';
|
|
746
|
+
readonly Failed: 'failed';
|
|
747
|
+
readonly Killed: 'killed';
|
|
716
748
|
};
|
|
717
749
|
/** Process output stream (v1.1 §3.2). */
|
|
718
750
|
export type ProcessStream = 'stdout' | 'stderr';
|
|
719
751
|
export declare const ProcessStream: {
|
|
720
|
-
readonly Stdout:
|
|
721
|
-
readonly Stderr:
|
|
752
|
+
readonly Stdout: 'stdout';
|
|
753
|
+
readonly Stderr: 'stderr';
|
|
722
754
|
};
|
|
723
755
|
/** process.write result. */
|
|
724
756
|
export interface ProcessWriteResult {
|
|
@@ -727,8 +759,8 @@ export interface ProcessWriteResult {
|
|
|
727
759
|
/** Value of both the WebSocket subprotocol and executor.register protocol. A v1.1 server serves v1 executors and never sends them v1.1 methods. */
|
|
728
760
|
export type ProtocolVersion = 'bma.executor.v1' | 'bma.executor.v1.1';
|
|
729
761
|
export declare const ProtocolVersion: {
|
|
730
|
-
readonly BmaExecutorV1:
|
|
731
|
-
readonly BmaExecutorV11:
|
|
762
|
+
readonly BmaExecutorV1: 'bma.executor.v1';
|
|
763
|
+
readonly BmaExecutorV11: 'bma.executor.v1.1';
|
|
732
764
|
};
|
|
733
765
|
/** read input: return lines of a text file. */
|
|
734
766
|
export interface ReadInput {
|
|
@@ -770,16 +802,21 @@ export interface SessionEventResult {
|
|
|
770
802
|
/** Durable event types an executor may emit. Event names follow Anthropic Managed Agents; the executor must not invent new names. A tool executor emits agent.tool_result only; an agent executor (capability agent) emits every type, shaped as schemas/agent.json AgentEvent. */
|
|
771
803
|
export type SessionEventType = 'agent.tool_result' | 'agent.message' | 'agent.thinking' | 'agent.tool_use' | 'agent.mcp_tool_use' | 'agent.mcp_tool_result' | 'session.status_running' | 'session.status_idle' | 'session.error';
|
|
772
804
|
export declare const SessionEventType: {
|
|
773
|
-
readonly AgentToolResult:
|
|
774
|
-
readonly AgentMessage:
|
|
775
|
-
readonly AgentThinking:
|
|
776
|
-
readonly AgentToolUse:
|
|
777
|
-
readonly AgentMcpToolUse:
|
|
778
|
-
readonly AgentMcpToolResult:
|
|
779
|
-
readonly SessionStatusRunning:
|
|
780
|
-
readonly SessionStatusIdle:
|
|
781
|
-
readonly SessionError:
|
|
805
|
+
readonly AgentToolResult: 'agent.tool_result';
|
|
806
|
+
readonly AgentMessage: 'agent.message';
|
|
807
|
+
readonly AgentThinking: 'agent.thinking';
|
|
808
|
+
readonly AgentToolUse: 'agent.tool_use';
|
|
809
|
+
readonly AgentMcpToolUse: 'agent.mcp_tool_use';
|
|
810
|
+
readonly AgentMcpToolResult: 'agent.mcp_tool_result';
|
|
811
|
+
readonly SessionStatusRunning: 'session.status_running';
|
|
812
|
+
readonly SessionStatusIdle: 'session.status_idle';
|
|
813
|
+
readonly SessionError: 'session.error';
|
|
782
814
|
};
|
|
815
|
+
/** Executor-owned per-session file layout. The harness derives <root>/<agent_session_id>/uploads (read-only session inputs) and <root>/<agent_session_id>/outputs (deliverables) from it, with agent_session_id as sent in process.start metadata, and uses these real paths in prompts, tool descriptions, write rules and the session files manifest. Absent: the harness keeps /mnt/session/uploads and /mnt/session/outputs. Fixed at executor.register: executor.capabilities.update does not change it. Machine-scoped executors only. */
|
|
816
|
+
export interface SessionFilesCapability {
|
|
817
|
+
/** Absolute, already-expanded, clean path on the executor host (no ~, no . or .. segments, no trailing /). */
|
|
818
|
+
root: string;
|
|
819
|
+
}
|
|
783
820
|
/** A memory store mounted into the session workspace. */
|
|
784
821
|
export interface SessionMemoryResource {
|
|
785
822
|
type: 'memory_store';
|
|
@@ -789,12 +826,12 @@ export interface SessionMemoryResource {
|
|
|
789
826
|
/** Lifecycle status reported by the executor. */
|
|
790
827
|
export type SessionStatus = 'starting' | 'running' | 'idle' | 'stopping' | 'stopped' | 'error';
|
|
791
828
|
export declare const SessionStatus: {
|
|
792
|
-
readonly Starting:
|
|
793
|
-
readonly Running:
|
|
794
|
-
readonly Idle:
|
|
795
|
-
readonly Stopping:
|
|
796
|
-
readonly Stopped:
|
|
797
|
-
readonly Error:
|
|
829
|
+
readonly Starting: 'starting';
|
|
830
|
+
readonly Running: 'running';
|
|
831
|
+
readonly Idle: 'idle';
|
|
832
|
+
readonly Stopping: 'stopping';
|
|
833
|
+
readonly Stopped: 'stopped';
|
|
834
|
+
readonly Error: 'error';
|
|
798
835
|
};
|
|
799
836
|
/** The turn ended. It is the last event of its turn_id; the platform publishes the turn as finished only after it accepted this event and every lower sequence. */
|
|
800
837
|
export interface SessionStatusIdleEvent {
|
|
@@ -827,13 +864,13 @@ export interface SkillsCapability {
|
|
|
827
864
|
/** process.start stderr mode. "merge" redirects stderr into stdout at the OS level so one cursor covers both. */
|
|
828
865
|
export type StderrMode = 'merge';
|
|
829
866
|
export declare const StderrMode: {
|
|
830
|
-
readonly Merge:
|
|
867
|
+
readonly Merge: 'merge';
|
|
831
868
|
};
|
|
832
869
|
/** process.start stdin mode. Empty or "closed" closes stdin at start; "open" keeps it open for process.write. */
|
|
833
870
|
export type StdinMode = 'open' | 'closed';
|
|
834
871
|
export declare const StdinMode: {
|
|
835
|
-
readonly Open:
|
|
836
|
-
readonly Closed:
|
|
872
|
+
readonly Open: 'open';
|
|
873
|
+
readonly Closed: 'closed';
|
|
837
874
|
};
|
|
838
875
|
/** Why the turn stopped. */
|
|
839
876
|
export interface StopReason {
|
|
@@ -842,8 +879,8 @@ export interface StopReason {
|
|
|
842
879
|
/** Anthropic stop_reason types an executor may report. requires_action is not in the list: the platform projects it from open interactions. */
|
|
843
880
|
export type StopReasonType = 'end_turn' | 'retries_exhausted';
|
|
844
881
|
export declare const StopReasonType: {
|
|
845
|
-
readonly EndTurn:
|
|
846
|
-
readonly RetriesExhausted:
|
|
882
|
+
readonly EndTurn: 'end_turn';
|
|
883
|
+
readonly RetriesExhausted: 'retries_exhausted';
|
|
847
884
|
};
|
|
848
885
|
/** terminal.attach result, returned after the host socket is connected and the attached frame was written on it. */
|
|
849
886
|
export interface TerminalAttachResult {
|
|
@@ -905,22 +942,22 @@ export interface ToolInput {
|
|
|
905
942
|
/** Built-in tool names. bmad serves bash only and answers -32012 for the rest. */
|
|
906
943
|
export type ToolName = 'bash' | 'read' | 'write' | 'edit' | 'glob' | 'grep' | 'list_files' | 'computer_observe' | 'computer_action';
|
|
907
944
|
export declare const ToolName: {
|
|
908
|
-
readonly Bash:
|
|
909
|
-
readonly Read:
|
|
910
|
-
readonly Write:
|
|
911
|
-
readonly Edit:
|
|
912
|
-
readonly Glob:
|
|
913
|
-
readonly Grep:
|
|
914
|
-
readonly ListFiles:
|
|
915
|
-
readonly ComputerObserve:
|
|
916
|
-
readonly ComputerAction:
|
|
945
|
+
readonly Bash: 'bash';
|
|
946
|
+
readonly Read: 'read';
|
|
947
|
+
readonly Write: 'write';
|
|
948
|
+
readonly Edit: 'edit';
|
|
949
|
+
readonly Glob: 'glob';
|
|
950
|
+
readonly Grep: 'grep';
|
|
951
|
+
readonly ListFiles: 'list_files';
|
|
952
|
+
readonly ComputerObserve: 'computer_observe';
|
|
953
|
+
readonly ComputerAction: 'computer_action';
|
|
917
954
|
};
|
|
918
955
|
/** Tool outcome. */
|
|
919
956
|
export type ToolOutcome = 'succeeded' | 'failed' | 'canceled';
|
|
920
957
|
export declare const ToolOutcome: {
|
|
921
|
-
readonly Succeeded:
|
|
922
|
-
readonly Failed:
|
|
923
|
-
readonly Canceled:
|
|
958
|
+
readonly Succeeded: 'succeeded';
|
|
959
|
+
readonly Failed: 'failed';
|
|
960
|
+
readonly Canceled: 'canceled';
|
|
924
961
|
};
|
|
925
962
|
/** Tool permission resolved by the harness. */
|
|
926
963
|
export interface ToolPermission {
|
|
@@ -933,9 +970,9 @@ export interface TurnCancelResult {
|
|
|
933
970
|
/** BMA extension on session.status_idle: how the turn ended. */
|
|
934
971
|
export type TurnOutcome = 'completed' | 'canceled' | 'failed';
|
|
935
972
|
export declare const TurnOutcome: {
|
|
936
|
-
readonly Completed:
|
|
937
|
-
readonly Canceled:
|
|
938
|
-
readonly Failed:
|
|
973
|
+
readonly Completed: 'completed';
|
|
974
|
+
readonly Canceled: 'canceled';
|
|
975
|
+
readonly Failed: 'failed';
|
|
939
976
|
};
|
|
940
977
|
/** turn.start result. Idempotent by turn_id: a repeated turn.start for a turn the executor already accepted returns the same result without starting a second run. */
|
|
941
978
|
export interface TurnStartResult {
|
|
@@ -1105,6 +1142,7 @@ export interface ProcessStartParams {
|
|
|
1105
1142
|
wait_ms?: number;
|
|
1106
1143
|
/** Kills the process and ends it as failed with reason "timeout". */
|
|
1107
1144
|
timeout_ms?: number;
|
|
1145
|
+
/** Who started the process. A process an agent tool started (a command, a file transfer, a package install) always carries agent_session_id (the public agent session id) and tool_call_id; it carries no initiator. A process the platform started on its own, such as the machine desktop agent, carries initiator "platform" and no agent_session_id. A process with neither is not started by the harness: an executor that resolves a directory, files or owner per session refuses it (reason session_rejected) instead of using a default. Human console terminals are terminal.attach, not process.start. */
|
|
1108
1146
|
metadata?: Record<string, string>;
|
|
1109
1147
|
/** Requires capability process.pty. */
|
|
1110
1148
|
io_mode?: IOMode;
|
|
@@ -1197,6 +1235,18 @@ export interface WorkspaceBackupParams {
|
|
|
1197
1235
|
exclude?: Array<string>;
|
|
1198
1236
|
skip_if_fingerprint?: string;
|
|
1199
1237
|
}
|
|
1238
|
+
/** Params object of fs.mount. */
|
|
1239
|
+
export interface FsMountParams {
|
|
1240
|
+
session_id: string;
|
|
1241
|
+
/** Complete prefix of the bma-file routes for this machine, ending in /v1/machines/{machine_id}/fs (for example https://executor.example.com/v1/machines/mach_01/fs). The executor appends "/<op>" and nothing else; it does not compose the machine id itself. The previous <origin>/v1/fs/<op> routes stay as an alias until they are removed. */
|
|
1242
|
+
service_url: string;
|
|
1243
|
+
mounts: Array<FsMount>;
|
|
1244
|
+
}
|
|
1245
|
+
/** Params object of fs.unmount. */
|
|
1246
|
+
export interface FsUnmountParams {
|
|
1247
|
+
session_id: string;
|
|
1248
|
+
flush?: boolean;
|
|
1249
|
+
}
|
|
1200
1250
|
/** Params object of turn.start. */
|
|
1201
1251
|
export interface TurnStartParams {
|
|
1202
1252
|
/** Platform session id. */
|
|
@@ -1276,10 +1326,10 @@ export interface InteractionCancelParams {
|
|
|
1276
1326
|
reason: InteractionCancelReason;
|
|
1277
1327
|
}
|
|
1278
1328
|
/** Every executor protocol method. */
|
|
1279
|
-
export type MethodName = 'executor.register' | 'executor.heartbeat' | 'executor.token.refresh' | 'executor.capabilities.update' | 'executor.drain' | 'executor.close' | 'session.assign' | 'session.ready' | 'session.event' | 'session.status' | 'session.stop' | 'session.ended' | 'tool.call' | 'tool.result' | 'tool.cancel' | 'tool.progress' | 'process.start' | 'process.read' | 'process.write' | 'process.interrupt' | 'process.terminate' | 'process.list' | 'process.status' | 'terminal.open' | 'terminal.attach' | 'terminal.close' | 'skill.install' | 'workspace.backup' | 'turn.start' | 'turn.input' | 'turn.cancel' | 'session.close' | 'session.event_delta' | 'interaction.request' | 'interaction.response' | 'interaction.cancel';
|
|
1329
|
+
export type MethodName = 'executor.register' | 'executor.heartbeat' | 'executor.token.refresh' | 'executor.capabilities.update' | 'executor.drain' | 'executor.close' | 'session.assign' | 'session.ready' | 'session.event' | 'session.status' | 'session.stop' | 'session.ended' | 'tool.call' | 'tool.result' | 'tool.cancel' | 'tool.progress' | 'process.start' | 'process.read' | 'process.write' | 'process.interrupt' | 'process.terminate' | 'process.list' | 'process.status' | 'terminal.open' | 'terminal.attach' | 'terminal.close' | 'skill.install' | 'workspace.backup' | 'fs.mount' | 'fs.unmount' | 'turn.start' | 'turn.input' | 'turn.cancel' | 'session.close' | 'session.event_delta' | 'interaction.request' | 'interaction.response' | 'interaction.cancel';
|
|
1280
1330
|
export type ExecutorToHarnessRequestMethod = 'executor.register' | 'executor.heartbeat' | 'executor.token.refresh' | 'session.ready' | 'session.event' | 'session.ended' | 'tool.result' | 'interaction.request' | 'interaction.cancel';
|
|
1281
1331
|
export type ExecutorToHarnessNotificationMethod = 'executor.capabilities.update' | 'executor.close' | 'session.status' | 'tool.progress' | 'process.status' | 'session.event_delta';
|
|
1282
|
-
export type HarnessToExecutorRequestMethod = 'executor.drain' | 'session.assign' | 'session.stop' | 'tool.call' | 'tool.cancel' | 'process.start' | 'process.read' | 'process.write' | 'process.interrupt' | 'process.terminate' | 'process.list' | 'terminal.open' | 'terminal.attach' | 'terminal.close' | 'skill.install' | 'workspace.backup' | 'turn.start' | 'turn.input' | 'turn.cancel' | 'session.close' | 'interaction.response';
|
|
1332
|
+
export type HarnessToExecutorRequestMethod = 'executor.drain' | 'session.assign' | 'session.stop' | 'tool.call' | 'tool.cancel' | 'process.start' | 'process.read' | 'process.write' | 'process.interrupt' | 'process.terminate' | 'process.list' | 'terminal.open' | 'terminal.attach' | 'terminal.close' | 'skill.install' | 'workspace.backup' | 'fs.mount' | 'fs.unmount' | 'turn.start' | 'turn.input' | 'turn.cancel' | 'session.close' | 'interaction.response';
|
|
1283
1333
|
export type HarnessToExecutorNotificationMethod = 'executor.close';
|
|
1284
1334
|
export interface MethodParamsMap {
|
|
1285
1335
|
'executor.register': ExecutorRegisterParams;
|
|
@@ -1310,6 +1360,8 @@ export interface MethodParamsMap {
|
|
|
1310
1360
|
'terminal.close': TerminalCloseParams;
|
|
1311
1361
|
'skill.install': SkillInstallParams;
|
|
1312
1362
|
'workspace.backup': WorkspaceBackupParams;
|
|
1363
|
+
'fs.mount': FsMountParams;
|
|
1364
|
+
'fs.unmount': FsUnmountParams;
|
|
1313
1365
|
'turn.start': TurnStartParams;
|
|
1314
1366
|
'turn.input': TurnInputParams;
|
|
1315
1367
|
'turn.cancel': TurnCancelParams;
|
|
@@ -1343,6 +1395,8 @@ export interface MethodResultMap {
|
|
|
1343
1395
|
'terminal.close': TerminalCloseResult;
|
|
1344
1396
|
'skill.install': SkillInstallResult;
|
|
1345
1397
|
'workspace.backup': WorkspaceBackupResult;
|
|
1398
|
+
'fs.mount': FsMountResult;
|
|
1399
|
+
'fs.unmount': FsUnmountResult;
|
|
1346
1400
|
'turn.start': TurnStartResult;
|
|
1347
1401
|
'turn.input': Ack;
|
|
1348
1402
|
'turn.cancel': TurnCancelResult;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// Code generated by tools/contract/gen-ts.mjs from contracts/bma (executor protocol 1.
|
|
2
|
+
// Code generated by tools/contract/gen-ts.mjs from contracts/bma (executor protocol 1.2.0). DO NOT EDIT.
|
|
3
3
|
export const AgentEventType = {
|
|
4
4
|
AgentMessage: 'agent.message',
|
|
5
5
|
AgentThinking: 'agent.thinking',
|
|
@@ -400,6 +400,22 @@ export const methods = {
|
|
|
400
400
|
capability: 'workspace.backup',
|
|
401
401
|
idempotentBy: 'backup_id',
|
|
402
402
|
},
|
|
403
|
+
'fs.mount': {
|
|
404
|
+
name: 'fs.mount',
|
|
405
|
+
direction: 'harness-to-executor',
|
|
406
|
+
kind: 'request',
|
|
407
|
+
since: 'bma.executor.v1.1',
|
|
408
|
+
capability: 'fs.fuse',
|
|
409
|
+
idempotentBy: 'session_id+view',
|
|
410
|
+
},
|
|
411
|
+
'fs.unmount': {
|
|
412
|
+
name: 'fs.unmount',
|
|
413
|
+
direction: 'harness-to-executor',
|
|
414
|
+
kind: 'request',
|
|
415
|
+
since: 'bma.executor.v1.1',
|
|
416
|
+
capability: 'fs.fuse',
|
|
417
|
+
idempotentBy: 'session_id',
|
|
418
|
+
},
|
|
403
419
|
'turn.start': {
|
|
404
420
|
name: 'turn.start',
|
|
405
421
|
direction: 'harness-to-executor',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../src/generated/executor.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,yGAAyG;
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../src/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