@factory/droid-sdk 0.10.0 → 0.11.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 +31 -0
- package/dist/api.d.mts +15058 -0
- package/dist/api.d.ts +15058 -0
- package/dist/api.js +253 -0
- package/dist/api.js.map +1 -0
- package/dist/api.mjs +253 -0
- package/dist/api.mjs.map +1 -0
- package/dist/chunk-7ZD7MMNA.mjs +2268 -0
- package/dist/chunk-7ZD7MMNA.mjs.map +1 -0
- package/dist/{chunk-OBPHU4RT.js → chunk-KAAWCHO4.js} +28866 -20935
- package/dist/chunk-KAAWCHO4.js.map +1 -0
- package/dist/{chunk-TWAVPIPS.mjs → chunk-NWFX4MPJ.mjs} +29443 -21512
- package/dist/chunk-NWFX4MPJ.mjs.map +1 -0
- package/dist/chunk-ZQ7TS73S.js +2268 -0
- package/dist/chunk-ZQ7TS73S.js.map +1 -0
- package/dist/{index-DWBA4zgW.d.mts → index-Cf2WtJqJ.d.mts} +62447 -39436
- package/dist/{index-DWBA4zgW.d.ts → index-Cf2WtJqJ.d.ts} +62447 -39436
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +21 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -4
- package/dist/node.d.mts +114 -22
- package/dist/node.d.ts +114 -22
- package/dist/node.js +1561 -687
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +1253 -379
- package/dist/node.mjs.map +1 -1
- package/examples/node/custom-model-editing-disposable.sh +1 -1
- package/examples/node/rest-api.ts +55 -0
- package/examples/node/start-workstream.ts +76 -0
- package/package.json +13 -3
- package/dist/chunk-OBPHU4RT.js.map +0 -1
- package/dist/chunk-TWAVPIPS.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
AddUserMessageRequestSchema,
|
|
9
9
|
AddUserMessageResponseSchema,
|
|
10
10
|
AddUserMessageResultSchema,
|
|
11
|
+
AnswerSessionElicitationResponseSchema,
|
|
11
12
|
ApplyPatchToolConfirmationDetailsSchema,
|
|
12
13
|
AskUserCollectedAnswerSchema,
|
|
13
14
|
AskUserConfirmationDetailsSchema,
|
|
@@ -99,6 +100,8 @@ import {
|
|
|
99
100
|
DroidWorkingStateChangedNotificationSchema,
|
|
100
101
|
EditToolConfirmationDetailsSchema,
|
|
101
102
|
EmptyResultSchema,
|
|
103
|
+
EnvironmentListResponseSchema,
|
|
104
|
+
EnvironmentSchema,
|
|
102
105
|
ErrorDetailSchema,
|
|
103
106
|
ErrorNotificationSchema,
|
|
104
107
|
ExecToolInfoSchema,
|
|
@@ -111,7 +114,7 @@ import {
|
|
|
111
114
|
ExitSpecModeConfirmationDetailsSchema,
|
|
112
115
|
FACTORY_CLIENT_HEADER,
|
|
113
116
|
FACTORY_CLIENT_VERSION,
|
|
114
|
-
|
|
117
|
+
FACTORY_PROTOCOL_VERSION,
|
|
115
118
|
FactoryDaemonTransport,
|
|
116
119
|
FactoryDroidMessageRole,
|
|
117
120
|
FactoryDroidMessageSchema,
|
|
@@ -150,7 +153,7 @@ import {
|
|
|
150
153
|
InterruptSessionResponseSchema,
|
|
151
154
|
InterruptSessionResultSchema,
|
|
152
155
|
IssueSeverity,
|
|
153
|
-
|
|
156
|
+
JSONRPC_VERSION,
|
|
154
157
|
JsonArraySchema,
|
|
155
158
|
JsonObjectSchema,
|
|
156
159
|
JsonRpcEnvelopeSchema,
|
|
@@ -169,7 +172,7 @@ import {
|
|
|
169
172
|
KillWorkerSessionRequestSchema,
|
|
170
173
|
KillWorkerSessionResponseSchema,
|
|
171
174
|
KillWorkerSessionResultSchema,
|
|
172
|
-
|
|
175
|
+
LEGACY_FACTORY_API_VERSION,
|
|
173
176
|
LOCAL_MACHINE_ID,
|
|
174
177
|
ListMcpRegistryRequestParamsSchema,
|
|
175
178
|
ListMcpRegistryRequestSchema,
|
|
@@ -185,6 +188,7 @@ import {
|
|
|
185
188
|
ListMcpToolsResultSchema,
|
|
186
189
|
ListModelsOptionsSchema,
|
|
187
190
|
ListModelsResultSchema,
|
|
191
|
+
ListSessionElicitationsResponseSchema,
|
|
188
192
|
ListSkillsRequestParamsSchema,
|
|
189
193
|
ListSkillsRequestSchema,
|
|
190
194
|
ListSkillsResponseSchema,
|
|
@@ -231,6 +235,7 @@ import {
|
|
|
231
235
|
MissionFeatureSchema,
|
|
232
236
|
MissionFeaturesChangedNotificationSchema,
|
|
233
237
|
MissionHeartbeatNotificationSchema,
|
|
238
|
+
MissionMachineTargetKind,
|
|
234
239
|
MissionPausedEntrySchema,
|
|
235
240
|
MissionProgressEntryNotificationSchema,
|
|
236
241
|
MissionResumedEntrySchema,
|
|
@@ -292,6 +297,7 @@ import {
|
|
|
292
297
|
SessionArtifactSchema,
|
|
293
298
|
SessionArtifactSource,
|
|
294
299
|
SessionArtifactsSchema,
|
|
300
|
+
SessionElicitationSchema,
|
|
295
301
|
SessionMetadataSchema,
|
|
296
302
|
SessionNotificationParamsSchema,
|
|
297
303
|
SessionNotificationPayloadSchema,
|
|
@@ -387,6 +393,7 @@ import {
|
|
|
387
393
|
WorkerSelectedFeatureEntrySchema,
|
|
388
394
|
WorkerStartedEntrySchema,
|
|
389
395
|
WorkerStateInfoSchema,
|
|
396
|
+
answerRemoteSessionElicitation,
|
|
390
397
|
appendContextSession,
|
|
391
398
|
buildUserMessageContentBlocks,
|
|
392
399
|
configureDaemonCoreDeps,
|
|
@@ -430,7 +437,9 @@ import {
|
|
|
430
437
|
listContextDocuments,
|
|
431
438
|
listContextSessions,
|
|
432
439
|
listContextSpaces,
|
|
440
|
+
listEnvironments,
|
|
433
441
|
listMachineTemplates,
|
|
442
|
+
listRemoteSessionElicitations,
|
|
434
443
|
listRemoteSessions,
|
|
435
444
|
machineTypeToMachineConnectionType,
|
|
436
445
|
readContextFilePart,
|
|
@@ -447,7 +456,8 @@ import {
|
|
|
447
456
|
updateComputer,
|
|
448
457
|
updateContextDocument,
|
|
449
458
|
uploadContextFilePart
|
|
450
|
-
} from "./chunk-
|
|
459
|
+
} from "./chunk-NWFX4MPJ.mjs";
|
|
460
|
+
import "./chunk-7ZD7MMNA.mjs";
|
|
451
461
|
export {
|
|
452
462
|
AbortError,
|
|
453
463
|
AddMcpServerRequestParamsSchema,
|
|
@@ -458,6 +468,7 @@ export {
|
|
|
458
468
|
AddUserMessageRequestSchema,
|
|
459
469
|
AddUserMessageResponseSchema,
|
|
460
470
|
AddUserMessageResultSchema,
|
|
471
|
+
AnswerSessionElicitationResponseSchema,
|
|
461
472
|
ApplyPatchToolConfirmationDetailsSchema,
|
|
462
473
|
AskUserCollectedAnswerSchema,
|
|
463
474
|
AskUserConfirmationDetailsSchema,
|
|
@@ -551,6 +562,8 @@ export {
|
|
|
551
562
|
DroidWorkingStateChangedNotificationSchema,
|
|
552
563
|
EditToolConfirmationDetailsSchema,
|
|
553
564
|
EmptyResultSchema,
|
|
565
|
+
EnvironmentListResponseSchema,
|
|
566
|
+
EnvironmentSchema,
|
|
554
567
|
ErrorDetailSchema,
|
|
555
568
|
ErrorNotificationSchema,
|
|
556
569
|
ExecToolInfoSchema,
|
|
@@ -637,6 +650,7 @@ export {
|
|
|
637
650
|
ListMcpToolsResultSchema,
|
|
638
651
|
ListModelsOptionsSchema,
|
|
639
652
|
ListModelsResultSchema,
|
|
653
|
+
ListSessionElicitationsResponseSchema,
|
|
640
654
|
ListSkillsRequestParamsSchema,
|
|
641
655
|
ListSkillsRequestSchema,
|
|
642
656
|
ListSkillsResponseSchema,
|
|
@@ -743,6 +757,7 @@ export {
|
|
|
743
757
|
SessionArtifactSchema,
|
|
744
758
|
SessionArtifactSource,
|
|
745
759
|
SessionArtifactsSchema,
|
|
760
|
+
SessionElicitationSchema,
|
|
746
761
|
SessionMetadataSchema,
|
|
747
762
|
SessionNotificationParamsSchema,
|
|
748
763
|
SessionNotificationPayloadSchema,
|
|
@@ -838,6 +853,8 @@ export {
|
|
|
838
853
|
WorkerSelectedFeatureEntrySchema,
|
|
839
854
|
WorkerStartedEntrySchema,
|
|
840
855
|
WorkerStateInfoSchema,
|
|
856
|
+
MissionMachineTargetKind as WorkstreamMachineTargetKind,
|
|
857
|
+
answerRemoteSessionElicitation,
|
|
841
858
|
appendContextSession,
|
|
842
859
|
buildUserMessageContentBlocks,
|
|
843
860
|
configureDaemonCoreDeps,
|
|
@@ -881,7 +898,9 @@ export {
|
|
|
881
898
|
listContextDocuments,
|
|
882
899
|
listContextSessions,
|
|
883
900
|
listContextSpaces,
|
|
901
|
+
listEnvironments,
|
|
884
902
|
listMachineTemplates,
|
|
903
|
+
listRemoteSessionElicitations,
|
|
885
904
|
listRemoteSessions,
|
|
886
905
|
machineTypeToMachineConnectionType,
|
|
887
906
|
readContextFilePart,
|
package/dist/node.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DaemonClientTransport, a as DaemonIpcMessageChannel, b as DaemonClientTransportKind, J as JsonRpcMessage, c as DaemonClientTransportEvents, I as InProcessDaemonClientTransportOptions, S as SessionNotificationEvent, R as RequestPermissionEvent, A as AskUserEvent, P as PickOptionsEvent, L as LogMetadata, d as ProcessTransportOptions, e as DroidObservability, f as DroidClientOptions, g as InitializeSessionRequestParams, h as InitializeSessionResponse, i as LoadSessionRequestParams, j as LoadSessionResponse, k as AddUserMessageParams, l as AddUserMessageResponse, m as AppendMessagesParams, n as AppendMessagesResponse, o as ResolveQueuedUserMessageParams, p as ResolveQueuedUserMessageResponse, q as InterruptSessionParams, r as InterruptSessionResponse, C as CloseSessionParams, s as CloseSessionResponse, K as KillWorkerSessionParams, t as KillWorkerSessionResponse, U as UpdateSessionSettingsRequestParams, u as
|
|
2
|
-
export { b5 as AbortError, b6 as AddMcpServerRequest, b7 as AddMcpServerRequestParamsSchema, b8 as AddMcpServerRequestSchema, b9 as AddMcpServerResponse, ba as AddMcpServerResultSchema, bb as AddMessageResult, bc as AddUserMessageRequest, bd as AddUserMessageRequestParams, be as AddUserMessageRequestParamsSchema, bf as AddUserMessageRequestSchema, bg as AddUserMessageResponse, bh as AddUserMessageResponseSchema, bi as AddUserMessageResult, bj as AddUserMessageResultSchema, bk as AppendContextSessionOptions, bl as AppendContextSessionResponse, bm as ApplyPatchToolConfirmationDetails, bn as ApplyPatchToolConfirmationDetailsSchema, bo as ArchiveSessionOptions, bp as AskUserCollectedAnswer, bq as AskUserCollectedAnswerSchema, br as AskUserConfirmationDetails, bs as AskUserConfirmationDetailsSchema, bt as AskUserQuestion, bu as AskUserQuestionSchema, bv as AskUserRequest, bw as AskUserRequestHandlerEvents, bx as AskUserRequestParams, by as AskUserRequestParamsSchema, bz as AskUserRequestSchema, bA as AskUserResponse, bB as AskUserResponseSchema, bC as AskUserResult, bD as AskUserResultSchema, bE as AssistantMessageRetracted, bF as AssistantMessageRetractedNotification, bG as AssistantMessageRetractedNotificationSchema, bH as AssistantTextComplete, bI as AssistantTextCompleteNotification, bJ as AssistantTextCompleteNotificationSchema, bK as AssistantTextDelta, bL as AssistantTextDeltaNotification, bM as AssistantTextDeltaNotificationSchema, bN as Attribute, bO as Attributes, bP as AuthenticateMcpServerRequest, bQ as AuthenticateMcpServerRequestParamsSchema, bR as AuthenticateMcpServerRequestSchema, bS as AuthenticateMcpServerResponse, bT as AuthenticateMcpServerResultSchema, bU as AutomationsResource, bV as AvailableModelConfig, bW as AvailableModelConfigSchema, bX as Base64ImageSource, bY as Base64ImageSourceSchema, bZ as BaseDroidHookInput, b_ as BaseNotification, b$ as BaseNotificationSchema, c0 as BaseRequest, c1 as BaseRequestSchema, c2 as BaseResponseFailure, c3 as BaseResponseFailureSchema, c4 as BaseResponseSuccess, c5 as BaseResponseSuccessSchema, c6 as COMPACTION_TIMEOUT, c7 as CancelMcpAuthRequest, c8 as CancelMcpAuthRequestParams, c9 as CancelMcpAuthRequestParamsSchema, ca as CancelMcpAuthRequestSchema, cb as CancelMcpAuthResponse, cc as CancelMcpAuthResult, cd as CancelMcpAuthResultSchema, ce as ChangeWorkingDirectoryRequest, cf as ChangeWorkingDirectoryRequestParams, cg as ChangeWorkingDirectoryRequestParamsSchema, ch as ChangeWorkingDirectoryRequestSchema, ci as ChangeWorkingDirectoryResponse, cj as ChangeWorkingDirectoryResponseSchema, ck as ChangeWorkingDirectoryResult, cl as ChangeWorkingDirectoryResultSchema, cm as ClearMcpAuthRequest, cn as ClearMcpAuthRequestParams, co as ClearMcpAuthRequestParamsSchema, cp as ClearMcpAuthRequestSchema, cq as ClearMcpAuthResponse, cr as ClearMcpAuthResult, cs as ClearMcpAuthResultSchema, ct as CliRequestOrNotification, cu as CliRequestOrNotificationSchema, cv as ClientAskUserHandler, cw as ClientDestroyedError, cx as ClientPermissionHandler, cy as ClientRequest, cz as ClientRequestSchema, cA as ClientUiSurface, cB as CloseSessionRequest, cC as CloseSessionRequestParams, cD as CloseSessionRequestParamsSchema, cE as CloseSessionRequestSchema, cF as CloseSessionResponse, cG as CloseSessionResponseSchema, cH as CloseSessionResult, cI as CloseSessionResultSchema, cJ as CommandsResource, cK as CompactSessionRequest, cL as CompactSessionRequestParamsSchema, cM as CompactSessionRequestSchema, cN as CompactSessionResponse, cO as CompactSessionResult, cP as CompactSessionResultSchema, cQ as ComputeLimitExceededError, cR as Computer, cS as ComputerApiOptions, cT as ComputerConnectAttemptContext, cU as ComputerConnectAttemptTrigger, cV as ComputerConnectSliOptions, cW as ComputerConnectSliRunContext, cX as ComputerConnectStartType, cY as ComputerListResponse, cZ as ComputerListResponseSchema, c_ as ComputerMetric, c$ as ComputerMetricSchema, d0 as ComputerMetricsResponse, d1 as ComputerMetricsResponseSchema, d2 as ComputerSchema, d3 as ConcurrentStreamError, d4 as ConnectToDaemonOptions, d5 as ConnectedDroid, d6 as ConnectedDroidSession, d7 as ConnectionClosedError, d8 as ConnectionError, d9 as ConnectionFailureReason, da as ContentBlock, db as ContentBlockSchema, dc as ContextApiError, dd as ContextApiOptions, de as ContextBreakdownCategorySchema, df as ContextBreakdownResult, dg as ContextBreakdownResultSchema, dh as ContextDocument, di as ContextDocumentMetadata, dj as ContextFileApiOptions, dk as ContextFileMetadata, dl as ContextFilePartApiOptions, dm as ContextFileUpload, dn as ContextSession, dp as ContextSessionApiOptions, dq as ContextSpace, dr as ContextSpaceApiOptions, ds as ContextStats, dt as ContextStatsAccuracy, du as ContextStatsSchema, dv as CreateComputerOptions, dw as CreateContextDocumentOptions, dx as CreateContextFileOptions, dy as CreateContextSpaceOptions, dz as CreateCronOptions, dA as CreateDaemonSessionOptions, dB as CreateMessage, dC as CreateMessageNotification, dD as CreateMessageNotificationSchema, dE as CreateToolConfirmationDetails, dF as CreateToolConfirmationDetailsSchema, dG as CronOperationsResource, dH as CronsResource, dI as CustomModelsResource, dJ as DEFAULT_LOCAL_DAEMON_WS_URL, dK as DEFAULT_REQUEST_TIMEOUT, dL as DaemonAuth, dM as DaemonAuthenticationCredential, dN as DaemonAuthenticationMode, dO as DaemonClient, dP as DaemonClientConfig, dQ as DaemonClientMetaError, dR as DaemonCoreDeps, dS as DaemonDroidEvent, dT as DaemonRequest, dU as DaemonRequestPermissionSchema, dV as DaemonResources, dW as DaemonSessionController, dX as DaemonSessionSummary, dY as DaemonSpan, dZ as DecompSessionType, d_ as DeleteComputerOptions, d$ as DeleteContextDocumentOptions, e0 as DiscoveredIssue, e1 as DiscoveredIssueSchema, e2 as DismissalRecord, e3 as DismissalRecordSchema, e4 as DismissalType, e5 as DocumentBlock, e6 as DocumentBlockSchema, e7 as DocumentSource, e8 as DocumentSourceSchema, e9 as DroidAssistantMessage, ea as DroidAttributeValue, eb as DroidAttributes, ec as DroidClientError, ed as DroidClientMethod, ee as DroidErrorMessage, ef as DroidErrorType, eg as DroidEvent, eh as DroidHookEvent, ei as DroidHookEventSchema, ej as DroidHookExecutionResult, ek as DroidHookExecutionResultSchema, el as DroidHookInput, em as DroidHookOutput, en as DroidHookOutputSchema, eo as DroidHookSpecificOutputSchema, ep as DroidLogEvent, eq as DroidLogger, er as DroidMessage, es as DroidMessageType, et as DroidMetricEvent, eu as DroidMetricSink, ev as DroidPermissionMode, ew as DroidSerializedError, ex as DroidServerMethod, ey as DroidToolCallMessage, ez as DroidToolResultMessage, eA as DroidTraceContextCarrier, eB as DroidTraceContextProvider, eC as DroidUserMessage, eD as DroidWorkingState, eE as DroidWorkingStateChangedNotification, eF as DroidWorkingStateChangedNotificationSchema, eG as EditToolConfirmationDetails, eH as EditToolConfirmationDetailsSchema, eI as EmptyResult, eJ as EmptyResultSchema, eK as ErrorDetail, eL as ErrorDetailSchema, eM as ErrorEvent, eN as ErrorNotification, eO as ErrorNotificationSchema, eP as ExecToolInfoSchema, eQ as ExecToolInfoWithSchemas, eR as ExecToolInfoWithSchemasSchema, eS as ExecuteRewindRequest, eT as ExecuteRewindRequestParamsSchema, eU as ExecuteRewindRequestSchema, eV as ExecuteRewindResponse, eW as ExecuteRewindResult, eX as ExecuteRewindResultSchema, eY as ExecuteToolConfirmationDetails, eZ as ExecuteToolConfirmationDetailsSchema, e_ as ExitSpecModeConfirmationDetails, e$ as ExitSpecModeConfirmationDetailsSchema, f0 as FACTORY_CLIENT_HEADER, f1 as FACTORY_CLIENT_VERSION, f2 as FACTORY_PROTOCOL_VERSION, f3 as FactoryApiOptions, f4 as FactoryDaemonConfig, f5 as FactoryDaemonTransport, f6 as FactoryDroidEvents, f7 as FactoryDroidMessage, f8 as FactoryDroidMessageRole, f9 as FactoryDroidMessageSchema, fa as FeatureStatus, fb as FeatureSuccessState, fc as FeatureSuccessStateSchema, fd as FeedbackResource, fe as FileTransfersResource, ff as ForkSessionOptions, fg as ForkSessionRequest, fh as ForkSessionRequestSchema, fi as ForkSessionResponse, fj as ForkSessionResult, fk as ForkSessionResultSchema, fl as GetComputerByNameOptions, fm as GetComputerMetricsOptions, fn as GetComputerOptions, fo as GetContextDocumentByPathOptions, fp as GetContextDocumentOptions, fq as GetContextSessionOptions, fr as GetContextSpaceOptions, fs as GetContextStatsRequest, ft as GetContextStatsRequestParams, fu as GetContextStatsRequestParamsSchema, fv as GetContextStatsRequestSchema, fw as GetContextStatsResponse, du as GetContextStatsResultSchema, fx as GetMachineTemplateOptions, fy as GetRewindInfoRequest, fz as GetRewindInfoRequestParamsSchema, fA as GetRewindInfoRequestSchema, fB as GetRewindInfoResponse, fC as GetRewindInfoResultSchema, fD as GetSessionMessagesOptions, fE as GitRepoInfo, fF as GitRepoInfoSchema, fG as GitResource, fH as Handoff, fI as HandoffItemsDismissedEntry, fJ as HandoffItemsDismissedEntrySchema, fK as HandoffSchema, fL as HookCommand, fM as HookCommandSchema, fN as HookExecution, fO as HookExecutionCompletedNotification, fP as HookExecutionCompletedNotificationSchema, fQ as HookExecutionStartedNotification, fR as HookExecutionStartedNotificationSchema, fS as HookResult, fT as HookResultSchema, fU as HttpHeader, fV as HttpHeaderSchema, fW as HttpMcpConfigSchema, fX as IDaemonClient, fY as IPC_DAEMON_URL, fZ as IToolProgressStore, f_ as ImageBlock, f$ as ImageBlockSchema, g0 as InProcessMessageHandler, g1 as InitializeResult, g2 as InitializeSessionRequest, g3 as InitializeSessionRequestParamsSchema, g4 as InitializeSessionRequestSchema, g5 as InitializeSessionResponseSchema, g6 as InitializeSessionResult, g7 as InitializeSessionResultSchema, g8 as InteractiveCheck, g9 as InteractiveCheckSchema, ga as InterruptResult, gb as InterruptSessionRequest, gc as InterruptSessionRequestParams, gd as InterruptSessionRequestParamsSchema, ge as InterruptSessionRequestSchema, gf as InterruptSessionResponse, gg as InterruptSessionResponseSchema, gh as InterruptSessionResult, gi as InterruptSessionResultSchema, gj as InvalidSessionCwdError, gk as IssueSeverity, gl as JSONRPC_VERSION, gm as JsonArray, gn as JsonArraySchema, go as JsonObject, gp as JsonObjectSchema, gq as JsonPrimitive, gr as JsonRpcEnvelope, gs as JsonRpcEnvelopeSchema, gt as JsonRpcError, gu as JsonRpcErrorCode, gv as JsonRpcErrorSchema, gw as JsonRpcMessage, gx as JsonRpcMessageSchema, gy as JsonRpcMessageType, gz as JsonRpcNotification, gA as JsonRpcNotificationSchema, gB as JsonRpcRequest, gC as JsonRpcRequestError, gD as JsonRpcRequestSchema, gE as JsonRpcResponse, gF as JsonRpcResponseFailure, gG as JsonRpcResponseFailureSchema, gH as JsonRpcResponseSchema, gI as JsonRpcResponseSuccess, gJ as JsonRpcResponseSuccessSchema, gK as JsonValue, gL as JsonValueSchema, gM as KillWorkerSessionRequest, gN as KillWorkerSessionRequestParams, gO as KillWorkerSessionRequestParamsSchema, gP as KillWorkerSessionRequestSchema, gQ as KillWorkerSessionResponse, gR as KillWorkerSessionResponseSchema, gS as KillWorkerSessionResult, gT as KillWorkerSessionResultSchema, gU as LEGACY_FACTORY_API_VERSION, gV as LOCAL_MACHINE_ID, gW as ListComputersOptions, gX as ListContextDocumentsOptions, gY as ListContextDocumentsResponse, gZ as ListContextSessionsOptions, g_ as ListContextSessionsResponse, g$ as ListContextSpacesOptions, h0 as ListContextSpacesResponse, h1 as ListDaemonSessionsOptions, h2 as ListMachineTemplatesOptions, h3 as ListMcpRegistryRequest, h4 as ListMcpRegistryRequestParams, h5 as ListMcpRegistryRequestParamsSchema, h6 as ListMcpRegistryRequestSchema, h7 as ListMcpRegistryResponse, h8 as ListMcpRegistryResult, h9 as ListMcpRegistryResultSchema, ha as ListMcpServersRequest, hb as ListMcpServersRequestParams, hc as ListMcpServersRequestParamsSchema, hd as ListMcpServersRequestSchema, he as ListMcpServersResponse, hf as ListMcpServersResultSchema, hg as ListMcpToolsRequest, hh as ListMcpToolsRequestParams, hi as ListMcpToolsRequestParamsSchema, hj as ListMcpToolsRequestSchema, hk as ListMcpToolsResponse, hl as ListMcpToolsResult, hm as ListMcpToolsResultSchema, hn as ListModelsOptionsSchema, ho as ListModelsResult, hp as ListModelsResultSchema, hq as ListRemoteSessionsOptions, hr as ListSkillsRequest, hs as ListSkillsRequestParamsSchema, ht as ListSkillsRequestSchema, hu as ListSkillsResponse, hv as ListSkillsResultSchema, hw as ListToolsRequest, hx as ListToolsRequestParamsSchema, hy as ListToolsRequestSchema, hz as ListToolsResponseSchema, hA as ListToolsResponseWithSchemas, hB as ListToolsResponseWithSchemasSchema, hC as ListToolsResult, hD as ListToolsResultSchema, hE as ListToolsResultWithSchemas, hF as ListToolsResultWithSchemasSchema, hG as LoadResult, hH as LoadSessionRequest, hI as LoadSessionRequestParamsSchema, hJ as LoadSessionRequestSchema, hK as LoadSessionResponseSchema, hL as LoadSessionResult, hM as LoadSessionResultSchema, hN as LogMetadata, hO as MACHINE_TYPE_WEBSOCKET_OVERRIDES, hP as MANAGED_COMPUTER_MAX_RETRIES, hQ as MCP_AUTH_TIMEOUT, hR as MachineConnectionConfig, hS as MachineInfo, hT as MachineTemplate, hU as MachineTemplateBuildStatus, hV as MachineTemplateBuildStatusSchema, hW as MachineTemplateListResponse, hX as MachineTemplateListResponseSchema, hY as MachineTemplateSchema, hZ as MachineType, h_ as MarketplacesResource, h$ as McpAuthCompleted, i0 as McpAuthCompletedNotification, i1 as McpAuthCompletedNotificationSchema, i2 as McpAuthOutcome, i3 as McpAuthRequired, i4 as McpAuthRequiredNotification, i5 as McpAuthRequiredNotificationSchema, i6 as McpHttpServerConfigFields, i7 as McpHttpServerConfigFieldsSchema, i8 as McpRegistryServer, i9 as McpRegistryServerSchema, ia as McpResource, ib as McpServerConfigSchema, ic as McpServerStatus, id as McpServerStatusInfo, ie as McpServerStatusInfoSchema, ig as McpServerType, ih as McpSseServerConfigFields, ii as McpSseServerConfigFieldsSchema, ij as McpStatus, ik as McpStatusChanged, il as McpStatusChangedNotification, im as McpStatusChangedNotificationSchema, io as McpStatusSummary, ip as McpStatusSummarySchema, iq as McpStdioServerConfigFields, ir as McpStdioServerConfigFieldsSchema, is as McpToolConfirmationDetails, it as McpToolConfirmationDetailsSchema, iu as McpToolInfoSchema, iv as McpToolInputSchema, iw as McpToolInputSchemaSchema, ix as MessageRouterEvents, iy as MessageVisibility, iz as Metric, iA as MetricLabels, iB as MilestoneValidationTriggeredEntry, iC as MilestoneValidationTriggeredEntrySchema, iD as MissionAcceptedEntry, iE as MissionAcceptedEntrySchema, iF as MissionFeature, iG as MissionFeatureSchema, iH as MissionFeaturesChanged, iI as MissionFeaturesChangedNotification, iJ as MissionFeaturesChangedNotificationSchema, iK as MissionHeartbeat, iL as MissionHeartbeatNotification, iM as MissionHeartbeatNotificationSchema, iN as MissionPausedEntry, iO as MissionPausedEntrySchema, iP as MissionProgressEntry, iQ as MissionProgressEntryNotification, iR as MissionProgressEntryNotificationSchema, iS as MissionResumedEntry, iT as MissionResumedEntrySchema, iU as MissionRunStartedEntry, iV as MissionRunStartedEntrySchema, iW as MissionSnapshot, iX as MissionSnapshotSchema, iY as MissionSnapshotStore, iZ as MissionState, i_ as MissionStateChanged, i$ as MissionStateChangedNotification, j0 as MissionStateChangedNotificationSchema, j1 as MissionStoreInterface, j2 as MissionWorkerCompleted, j3 as MissionWorkerCompletedNotification, j4 as MissionWorkerCompletedNotificationSchema, j5 as MissionWorkerStarted, j6 as MissionWorkerStartedNotification, j7 as MissionWorkerStartedNotificationSchema, j8 as MissionsResource, j9 as ModelInfoSchema, ja as ModelMetadata, jb as ModelMetadataSchema, jc as ModelProvider, jd as ModelsResource, je as MultiMissionStateManager, jf as MultiSessionStateManager, jg as NotificationDispatcherEvents, jh as NotificationHookInput, ji as OpenedSessionSummary, jj as OtelTracing, jk as OutgoingMessage, jl as OutputFormat, jm as OutputFormatSchema, jn as OutputFormatType, jo as PendingAskUserRequest, jp as PendingPermission, jq as PendingRequest, jr as PendingUserAction, js as PermissionRequestHandlerEvents, jt as PermissionResolved, ju as PermissionResolvedNotification, jv as PermissionResolvedNotificationSchema, jw as PickOptionsRequest, jx as PickOptionsRequestParams, jy as PickOptionsRequestParamsSchema, jz as PickOptionsRequestSchema, jA as PickOptionsResponse, jB as PickOptionsResponseSchema, jC as PickOptionsResult, jD as PickOptionsResultSchema, jE as PickOptionsRow, jF as PickOptionsRowSchema, jG as PickOptionsUnavailableError, jH as PluginsResource, jI as PreCompactHookInput, jJ as ProcessExitError, jK as ProgressLogEntry, jL as ProgressLogEntrySchema, jM as ProgressLogEntryType, jN as ProposeMissionConfirmationDetails, jO as ProposeMissionConfirmationDetailsSchema, jP as ProtocolError, jQ as ProxyResource, jR as QueuedUserMessageDisplayGroup, jS as QueuedUserMessageKind, jT as QueuedUserMessageState, jU as REWIND_TIMEOUT, jV as ReadContextSessionRecordsOptions, jW as ReadContextSessionRecordsResponse, jX as RedactedThinkingBlock, jY as RedactedThinkingBlockSchema, jZ as RefreshComputerOptions, j_ as RefreshComputerResponse, j$ as RefreshComputerResponseSchema, k0 as RegisterContextSessionOptions, k1 as RelayConnectionError, k2 as RelayResource, k3 as RemoteSession, k4 as RemoteSessionListResponse, k5 as RemoteSessionListResponseSchema, k6 as RemoteSessionSchema, k7 as RemoveMcpServerRequest, k8 as RemoveMcpServerRequestParamsSchema, k9 as RemoveMcpServerRequestSchema, ka as RemoveMcpServerResponse, kb as RemoveMcpServerResultSchema, kc as RenameSessionRequest, kd as RenameSessionRequestParamsSchema, ke as RenameSessionRequestSchema, kf as RenameSessionResponse, kg as RenameSessionResult, kh as RenameSessionResultSchema, ki as RequestManagerEvents, kj as RequestPermissionRequest, kk as RequestPermissionRequestParams, kl as RequestPermissionRequestParamsSchema, km as RequestPermissionRequestSchema, kn as RequestPermissionResponse, ko as RequestPermissionResponseSchema, kp as RequestPermissionResult, kq as RequestPermissionResultSchema, kr as RequestPermissionSelection, ks as RestartComputerOptions, kt as ResumeDaemonSessionOptions, ku as RetryInstallDepsOptions, kv as RetryOptions, kw as RetryWarnLogger, kx as RewindEvictedFile, ky as RewindEvictedFileSchema, kz as RewindFileCreation, kA as RewindFileCreationSchema, kB as RewindFileSnapshot, kC as RewindFileSnapshotSchema, kD as RewindSessionParams, kE as RewindSessionResult, kF as SDK_TAG, kG as SDK_VERSION, kH as SESSION_INIT_TIMEOUT, kI as SLACK_DELEGATION_MAX_RETRIES, kJ as SearchSessionSummary, kK as SearchSessionsResult, kL as SemanticDiffResource, kM as ServerRequestHandlerType, kN as Session, kO as SessionArtifact, kP as SessionArtifactAction, kQ as SessionArtifactKind, kR as SessionArtifactProvider, kS as SessionArtifactSchema, kT as SessionArtifactSource, kU as SessionArtifactsSchema, kV as SessionEndHookInput, kW as SessionError, kX as SessionInitializedOutcome, kY as SessionManagerConfig, kZ as SessionMessage, k_ as SessionMetadataSchema, k$ as SessionNotFoundError, l0 as SessionNotification, l1 as SessionNotificationParams, l2 as SessionNotificationParamsSchema, l3 as SessionNotificationPayload, l4 as SessionNotificationPayloadSchema, l5 as SessionNotificationSchema, l6 as SessionNotificationSchemaList, l7 as SessionNotificationType, l8 as SessionOperationsResource, l9 as SessionPendingRequest, la as SessionPlatform, lb as SessionReplacedError, lc as SessionReplacementError, ld as SessionSettingsFile, le as SessionSettingsFileSchema, lf as SessionSettingsSchema, lg as SessionSourceSchema, lh as SessionStartEvent, li as SessionStartEventSchema, lj as SessionStartHookInput, lk as SessionSummary, ll as SessionTagSchema, lm as SessionTitleUpdated, ln as SessionTitleUpdatedNotification, lo as SessionTitleUpdatedNotificationSchema, lp as SessionTokenUsageChangedNotification, lq as SessionTokenUsageChangedNotificationSchema, lr as SessionWebSocketConnectionEvents, ls as SessionWorkingDirectoryChanged, lt as SessionsResource, lu as SetSkillDisabledRequest, lv as SetSkillDisabledRequestParamsSchema, lw as SetSkillDisabledRequestSchema, lx as SetSkillDisabledResponse, ly as SetSkillDisabledResultSchema, lz as SettingsResource, lA as SettingsUpdated, lB as SettingsUpdatedNotification, lC as SettingsUpdatedNotificationSchema, lD as SettingsUpdatedPayload, lE as SettingsUpdatedPayloadSchema, lF as SkillDeviation, lG as SkillDeviationSchema, lH as SkillFeedback, lI as SkillFeedbackSchema, lJ as SkillInfo, lK as SkillInfoSchema, lL as SkillLocation, lM as SkillResource, lN as SkillResourceSchema, lO as SkillsResource, lP as SoftwareFactoryActivitiesResource, lQ as SoftwareFactoryChangesResource, lR as SoftwareFactoryEventsResource, lS as SoftwareFactoryResource, lT as SoftwareFactorySignalsResource, lU as SoftwareFactoryWorkstreamEntry, lV as SoftwareFactoryWorkstreamsResource, lW as SpanAttribute, lX as SpanEvent, lY as SpanName, lZ as SseMcpConfig, l_ as SseMcpConfigSchema, l$ as SshResource, m0 as StartMissionRunConfirmationDetails, m1 as StartMissionRunConfirmationDetailsSchema, m2 as StdioMcpConfig, m3 as StdioMcpConfigSchema, m4 as StopHookInput, m5 as StoredAskUserAction, m6 as StoredPermissionAction, m7 as StreamStateTracker, m8 as StructuredOutput, m9 as StructuredOutputError, ma as StructuredOutputErrorSchema, mb as StructuredOutputFields, mc as StructuredOutputNotification, md as StructuredOutputNotificationSchema, me as SubagentStopHookInput, mf as SubmitBugReportRequest, mg as SubmitBugReportRequestParams, mh as SubmitBugReportRequestParamsSchema, mi as SubmitBugReportRequestSchema, mj as SubmitBugReportResponse, mk as SubmitBugReportResult, ml as SubmitBugReportResultSchema, mm as SubmitMcpAuthCodeRequest, mn as SubmitMcpAuthCodeRequestParams, mo as SubmitMcpAuthCodeRequestSchema, mp as SubmitMcpAuthCodeResponse, mq as SubmitMcpAuthCodeResult, mr as SubmitMcpAuthCodeResultSchema, ms as SuccessResult, mt as SuccessResultSchema, mu as TerminalMetadata, mv as TerminalSerializedState, mw as TerminalsResource, mx as TestCase, my as TestCaseSchema, mz as TestFile, mA as TestFileSchema, mB as Tests, mC as TestsSchema, mD as TextBlock, mE as TextBlockSchema, mF as ThinkingBlock, mG as ThinkingBlockSchema, mH as ThinkingTextComplete, mI as ThinkingTextCompleteNotification, mJ as ThinkingTextCompleteNotificationSchema, mK as ThinkingTextDelta, mL as ThinkingTextDeltaNotification, mM as ThinkingTextDeltaNotificationSchema, mN as TimeoutError, mO as ToggleMcpServerRequest, mP as ToggleMcpServerRequestParamsSchema, mQ as ToggleMcpServerRequestSchema, mR as ToggleMcpServerResponse, mS as ToggleMcpServerResultSchema, mT as ToggleMcpToolRequest, mU as ToggleMcpToolRequestParams, mV as ToggleMcpToolRequestParamsSchema, mW as ToggleMcpToolRequestSchema, mX as ToggleMcpToolResponse, mY as ToggleMcpToolResult, mZ as ToggleMcpToolResultSchema, m_ as TokenUsage, m$ as TokenUsageSchema, n0 as TokenUsageUpdate, n1 as ToolCallDelta, n2 as ToolCallNotification, n3 as ToolCallNotificationSchema, n4 as ToolConfirmationDetails, n5 as ToolConfirmationDetailsSchema, n6 as ToolConfirmationInfo, n7 as ToolConfirmationInfoSchema, n8 as ToolConfirmationListItem, n9 as ToolConfirmationListItemSchema, na as ToolConfirmationType, nb as ToolHookInput, nc as ToolJsonSchema, nd as ToolJsonSchemaSchema, ne as ToolProgress, nf as ToolProgressNotifier, ng as ToolProgressUpdate, nh as ToolProgressUpdateNotification, ni as ToolProgressUpdateNotificationSchema, nj as ToolProgressUpdateSchema, nk as ToolResult, nl as ToolResultBlock, nm as ToolResultBlockSchema, nn as ToolResultNotification, no as ToolResultNotificationSchema, np as ToolResultSchemaDescriptor, nq as ToolResultSchemaDescriptorSchema, nr as ToolSchemas, ns as ToolSchemasSchema, nt as ToolSelectionOverridesSchema, nu as ToolSource, nv as ToolSourceSchema, nw as ToolUse, nx as ToolUseBlock, ny as ToolUseBlockSchema, nz as ToolUseSchema, nA as TraceContext, nB as TraceContextMeta, nC as TraceContextMetaSchema, nD as TunnelConnection, nE as TunnelConnectionOptions, nF as UnstableResource, nG as UpdateComputerOptions, nH as UpdateContextDocumentOptions, nI as UpdateCronOptions, nJ as UpdateSessionSettingsOptions, nK as UpdateSessionSettingsRequest, nL as UpdateSessionSettingsRequestParamsSchema, nM as UpdateSessionSettingsRequestSchema, nN as UpdateSessionSettingsResponse, nO as UpdateSessionSettingsResponseSchema, nP as UpdateSessionSettingsResultSchema, nQ as UpdatesResource, nR as UploadContextFilePartOptions, nS as UseMissionStoreSnapshotParams, nT as UserPromptSubmitHookInput, nU as Verification, nV as VerificationCommand, nW as VerificationCommandSchema, nX as VerificationSchema, nY as WebSocketConnectionConfig, nZ as WebSocketConnectionError, lr as WebSocketConnectionEvents, n_ as WebSocketDaemonTransport, n$ as WebSocketDaemonTransportConfig, o0 as WorkerCompletedEntry, o1 as WorkerCompletedEntrySchema, o2 as WorkerFailedEntry, o3 as WorkerFailedEntrySchema, o4 as WorkerPausedEntry, o5 as WorkerPausedEntrySchema, o6 as WorkerSelectedFeatureEntry, o7 as WorkerSelectedFeatureEntrySchema, o8 as WorkerStartedEntry, o9 as WorkerStartedEntrySchema, oa as WorkerStateInfo, ob as WorkerStateInfoSchema, oc as WorkingStateChanged, od as WorkspaceResource, oe as appendContextSession, of as buildUserMessageContentBlocks, og as configureDaemonCoreDeps, oh as connectAndAuthenticate, oi as connectToDaemon, oj as connectWithRetry, ok as convertNotificationToStreamMessage, ol as createComputer, om as createContextDocument, on as createContextFile, oo as createContextSpace, op as createResponseSchema, oq as createWebSocketDaemonClient, or as defaultDaemonCoreDeps, os as deleteComputer, ot as deleteContextDocument, ou as deleteContextFile, ov as filterMessagesForUI, ow as getComputer, ox as getComputerByName, oy as getComputerMetrics, oz as getContextDocument, oA as getContextDocumentByPath, oB as getContextSession, oC as getContextSpace, oD as getMachineTemplate, oE as getPermissionToolInputForDisplay, oF as getQueuedUserMessageDisplayGroup, oG as getQueuedUserMessageReviewPriority, oH as getSubagentCallingMetadata, oI as getToolResultBlocks, oJ as getToolResultToolUseId, oK as hasDecoupledInteractionSettings, oL as hasSubagentSessionTag, oM as inspectJsonRpcEnvelope, oN as isDaemonQueuedMessageKind, oO as isPendingToolResultMarker, oP as isPersistedHookMessage, oQ as isReviewableQueuedMessageKind, oR as listComputers, oS as listContextDocuments, oT as listContextSessions, oU as listContextSpaces, oV as listMachineTemplates, oW as listRemoteSessions, oX as machineTypeToMachineConnectionType, oY as readContextFilePart, oZ as readContextSessionRecords, o_ as recordComputerConnectSli, o$ as refreshComputer, p0 as registerContextSession, p1 as restartComputer, p2 as retryInstallDeps, p3 as retryWithLogger, p4 as sumTokenUsage, p5 as summarizeSessionToolUsage, p6 as toError, p7 as updateComputer, p8 as updateContextDocument, p9 as uploadContextFilePart } from './index-DWBA4zgW.mjs';
|
|
1
|
+
import { D as DaemonClientTransport, a as DaemonIpcMessageChannel, b as DaemonClientTransportKind, J as JsonRpcMessage, c as DaemonClientTransportEvents, I as InProcessDaemonClientTransportOptions, S as SessionNotificationEvent, R as RequestPermissionEvent, A as AskUserEvent, P as PickOptionsEvent, L as LogMetadata, d as ProcessTransportOptions, e as DroidObservability, f as DroidClientOptions, g as InitializeSessionRequestParams, h as InitializeSessionResponse, i as LoadSessionRequestParams, j as LoadSessionResponse, k as AddUserMessageParams, l as AddUserMessageResponse, m as AppendMessagesParams, n as AppendMessagesResponse, o as ResolveQueuedUserMessageParams, p as ResolveQueuedUserMessageResponse, q as InterruptSessionParams, r as InterruptSessionResponse, C as CloseSessionParams, s as CloseSessionResponse, K as KillWorkerSessionParams, t as KillWorkerSessionResponse, U as UpdateSessionSettingsRequestParams, u as SessionTagsUpdate, v as UpdateSessionSettingsResponse, w as ChangeWorkingDirectoryParams, x as ChangeWorkingDirectoryResponse, y as SettingsLevel, T as ToggleMcpServerResponseSchema, z as AuthenticateMcpServerResponseSchema, B as CancelMcpAuthResponseSchema, E as ClearMcpAuthResponseSchema, F as AddMcpServerRequest, G as AddMcpServerResponseSchema, H as RemoveMcpServerResponseSchema, M as ListModelsOptions, N as ListModelsResponseSchema, O as ListMcpRegistryResponseSchema, Q as RefreshConnectorToolCatalogRequest, V as RefreshConnectorToolCatalogResponseSchema, W as ListMcpToolsResponseSchema, X as ListToolsRequestParams, Y as ListToolsResponse, Z as ListMcpServersResponseSchema, _ as ToggleMcpToolResponseSchema, $ as SubmitMcpAuthCodeRequestParamsSchema, a0 as SubmitMcpAuthCodeResponseSchema, a1 as SubmitMcpAuthErrorRequestParamsSchema, a2 as SubmitMcpAuthErrorResponseSchema, a3 as ListSkillsRequest, a4 as ListSkillsResponseSchema, a5 as SetSkillDisabledRequest, a6 as SetSkillDisabledResponseSchema, a7 as ListCommandsResponseSchema, a8 as GetContextStatsResponseSchema, a9 as GetContextBreakdownResponseSchema, aa as KillBackgroundProcessResponseSchema, ab as SubmitBugReportRequest, ac as SubmitBugReportResponseSchema, ad as GetRewindInfoResponseSchema, ae as ExecuteRewindResponseSchema, af as CompactSessionResponseSchema, ag as GetHandoffSummaryResponseSchema, ah as SummarizeForMembersResponseSchema, ai as ForkSessionRequestParamsSchema, aj as ForkSessionResponseSchema, ak as RenameSessionRequestParams, al as RenameSessionResponseSchema, am as WarmupCacheResponseSchema, an as TraceContextMeta, ao as RequestPermissionHandlerResult, ap as ToolConfirmationOutcome, aq as RequestPermissionResult, ar as AskUserResult, as as PickOptionsResult, at as StringFramedDroidClientTransport, au as DroidClientTransport, av as McpServerConfig, aw as HttpMcpConfig, ax as ToolSelectionOverrides, ay as AutonomyLevel, az as DroidInteractionMode, aA as ReasoningEffort, aB as SystemPromptConfig, aC as SessionSource, aD as SessionTag, aE as HandlerOptions, aF as DroidResultMessage, aG as SessionSettings, aH as MessageOptions, aI as DroidStreamMessage, aJ as DroidStreamEvent, aK as UpdateSessionSettingsResult, aL as AddMcpServerRequestParams, aM as AddMcpServerResult, aN as RemoveMcpServerRequestParams, aO as RemoveMcpServerResult, aP as ToggleMcpServerRequestParams, aQ as ToggleMcpServerResult, aR as ListMcpServersResult, aS as McpToolInfo, aT as ExecToolInfo, aU as AuthenticateMcpServerRequestParams, aV as AuthenticateMcpServerResult, aW as ListSkillsRequestParams, aX as ListSkillsResult, aY as SetSkillDisabledRequestParams, aZ as SetSkillDisabledResult, a_ as GetRewindInfoRequestParams, a$ as GetRewindInfoResult, b0 as ExecuteRewindRequestParams, b1 as SessionRewindOutcome, b2 as CompactSessionRequestParams, b3 as SessionCompactionOutcome, b4 as ForkSessionRequestParams, b5 as GetContextStatsResult, b6 as RenameSessionRequestParams$1, b7 as ListSessionsOptions, b8 as SessionMetadata, b9 as ModelInfo } from './index-Cf2WtJqJ.mjs';
|
|
2
|
+
export { ba as AbortError, bb as AddMcpServerRequest, bc as AddMcpServerRequestParamsSchema, bd as AddMcpServerRequestSchema, be as AddMcpServerResponse, bf as AddMcpServerResultSchema, bg as AddMessageResult, bh as AddUserMessageRequest, bi as AddUserMessageRequestParams, bj as AddUserMessageRequestParamsSchema, bk as AddUserMessageRequestSchema, bl as AddUserMessageResponse, bm as AddUserMessageResponseSchema, bn as AddUserMessageResult, bo as AddUserMessageResultSchema, bp as AnswerRemoteSessionElicitationOptions, bq as AnswerSessionElicitationRequest, br as AnswerSessionElicitationResponse, bs as AnswerSessionElicitationResponseSchema, bt as AppendContextSessionOptions, bu as AppendContextSessionResponse, bv as ApplyPatchToolConfirmationDetails, bw as ApplyPatchToolConfirmationDetailsSchema, bx as ArchiveSessionOptions, by as AskUserCollectedAnswer, bz as AskUserCollectedAnswerSchema, bA as AskUserConfirmationDetails, bB as AskUserConfirmationDetailsSchema, bC as AskUserQuestion, bD as AskUserQuestionSchema, bE as AskUserRequest, bF as AskUserRequestHandlerEvents, bG as AskUserRequestParams, bH as AskUserRequestParamsSchema, bI as AskUserRequestSchema, bJ as AskUserResponse, bK as AskUserResponseSchema, bL as AskUserResult, bM as AskUserResultSchema, bN as AssistantMessageRetracted, bO as AssistantMessageRetractedNotification, bP as AssistantMessageRetractedNotificationSchema, bQ as AssistantTextComplete, bR as AssistantTextCompleteNotification, bS as AssistantTextCompleteNotificationSchema, bT as AssistantTextDelta, bU as AssistantTextDeltaNotification, bV as AssistantTextDeltaNotificationSchema, bW as Attribute, bX as Attributes, bY as AuthenticateMcpServerRequest, bZ as AuthenticateMcpServerRequestParamsSchema, b_ as AuthenticateMcpServerRequestSchema, b$ as AuthenticateMcpServerResponse, c0 as AuthenticateMcpServerResultSchema, c1 as AutomationsResource, c2 as AvailableModelConfig, c3 as AvailableModelConfigSchema, c4 as Base64ImageSource, c5 as Base64ImageSourceSchema, c6 as BaseDroidHookInput, c7 as BaseNotification, c8 as BaseNotificationSchema, c9 as BaseRequest, ca as BaseRequestSchema, cb as BaseResponseFailure, cc as BaseResponseFailureSchema, cd as BaseResponseSuccess, ce as BaseResponseSuccessSchema, cf as COMPACTION_TIMEOUT, cg as CancelMcpAuthRequest, ch as CancelMcpAuthRequestParams, ci as CancelMcpAuthRequestParamsSchema, cj as CancelMcpAuthRequestSchema, ck as CancelMcpAuthResponse, cl as CancelMcpAuthResult, cm as CancelMcpAuthResultSchema, cn as ChangeWorkingDirectoryRequest, co as ChangeWorkingDirectoryRequestParams, cp as ChangeWorkingDirectoryRequestParamsSchema, cq as ChangeWorkingDirectoryRequestSchema, cr as ChangeWorkingDirectoryResponse, cs as ChangeWorkingDirectoryResponseSchema, ct as ChangeWorkingDirectoryResult, cu as ChangeWorkingDirectoryResultSchema, cv as ClearMcpAuthRequest, cw as ClearMcpAuthRequestParams, cx as ClearMcpAuthRequestParamsSchema, cy as ClearMcpAuthRequestSchema, cz as ClearMcpAuthResponse, cA as ClearMcpAuthResult, cB as ClearMcpAuthResultSchema, cC as CliRequestOrNotification, cD as CliRequestOrNotificationSchema, cE as ClientAskUserHandler, cF as ClientDestroyedError, cG as ClientPermissionHandler, cH as ClientRequest, cI as ClientRequestSchema, cJ as ClientUiSurface, cK as CloseSessionRequest, cL as CloseSessionRequestParams, cM as CloseSessionRequestParamsSchema, cN as CloseSessionRequestSchema, cO as CloseSessionResponse, cP as CloseSessionResponseSchema, cQ as CloseSessionResult, cR as CloseSessionResultSchema, cS as CommandsResource, cT as CompactSessionRequest, cU as CompactSessionRequestParamsSchema, cV as CompactSessionRequestSchema, cW as CompactSessionResponse, cX as CompactSessionResult, cY as CompactSessionResultSchema, cZ as ComputeLimitExceededError, c_ as Computer, c$ as ComputerApiOptions, d0 as ComputerConnectAttemptContext, d1 as ComputerConnectAttemptTrigger, d2 as ComputerConnectSliOptions, d3 as ComputerConnectSliRunContext, d4 as ComputerConnectStartType, d5 as ComputerListResponse, d6 as ComputerListResponseSchema, d7 as ComputerMetric, d8 as ComputerMetricSchema, d9 as ComputerMetricsResponse, da as ComputerMetricsResponseSchema, db as ComputerSchema, dc as ConcurrentStreamError, dd as ConnectToDaemonOptions, de as ConnectedDroid, df as ConnectedDroidSession, dg as ConnectionClosedError, dh as ConnectionError, di as ConnectionFailureReason, dj as ContentBlock, dk as ContentBlockSchema, dl as ContextApiError, dm as ContextApiOptions, dn as ContextBreakdownCategorySchema, dp as ContextBreakdownResult, dq as ContextBreakdownResultSchema, dr as ContextDocument, ds as ContextDocumentMetadata, dt as ContextFileApiOptions, du as ContextFileMetadata, dv as ContextFilePartApiOptions, dw as ContextFileUpload, dx as ContextSession, dy as ContextSessionApiOptions, dz as ContextSpace, dA as ContextSpaceApiOptions, dB as ContextStats, dC as ContextStatsAccuracy, dD as ContextStatsSchema, dE as CreateComputerOptions, dF as CreateContextDocumentOptions, dG as CreateContextFileOptions, dH as CreateContextSpaceOptions, dI as CreateCronOptions, dJ as CreateDaemonSessionOptions, dK as CreateMessage, dL as CreateMessageNotification, dM as CreateMessageNotificationSchema, dN as CreateToolConfirmationDetails, dO as CreateToolConfirmationDetailsSchema, dP as CronsResource, dQ as CustomModelsResource, dR as DEFAULT_LOCAL_DAEMON_WS_URL, dS as DEFAULT_REQUEST_TIMEOUT, dT as DaemonAuth, dU as DaemonAuthenticationCredential, dV as DaemonAuthenticationMode, dW as DaemonClient, dX as DaemonClientConfig, dY as DaemonClientMetaError, dZ as DaemonCoreDeps, d_ as DaemonDroidEvent, d$ as DaemonRequest, e0 as DaemonRequestPermissionSchema, e1 as DaemonResources, e2 as DaemonSessionController, e3 as DaemonSessionSummary, e4 as DaemonSpan, e5 as DecompSessionType, e6 as DeleteComputerOptions, e7 as DeleteContextDocumentOptions, e8 as DiscoveredIssue, e9 as DiscoveredIssueSchema, ea as DismissalRecord, eb as DismissalRecordSchema, ec as DismissalType, ed as DocumentBlock, ee as DocumentBlockSchema, ef as DocumentSource, eg as DocumentSourceSchema, eh as DroidAssistantMessage, ei as DroidAttributeValue, ej as DroidAttributes, ek as DroidClientError, el as DroidClientMethod, em as DroidConnectionEndedError, en as DroidErrorMessage, eo as DroidErrorType, ep as DroidEvent, eq as DroidHookEvent, er as DroidHookEventSchema, es as DroidHookExecutionResult, et as DroidHookExecutionResultSchema, eu as DroidHookInput, ev as DroidHookOutput, ew as DroidHookOutputSchema, ex as DroidHookSpecificOutputSchema, ey as DroidLogEvent, ez as DroidLogger, eA as DroidMessage, eB as DroidMessageType, eC as DroidMetricEvent, eD as DroidMetricSink, eE as DroidPermissionMode, eF as DroidSerializedError, eG as DroidServerMethod, eH as DroidToolCallMessage, eI as DroidToolResultMessage, eJ as DroidTraceContextCarrier, eK as DroidTraceContextProvider, eL as DroidUserMessage, eM as DroidWorkingState, eN as DroidWorkingStateChangedNotification, eO as DroidWorkingStateChangedNotificationSchema, eP as EditToolConfirmationDetails, eQ as EditToolConfirmationDetailsSchema, eR as EmptyResult, eS as EmptyResultSchema, eT as Environment, eU as EnvironmentListResponse, eV as EnvironmentListResponseSchema, eW as EnvironmentSchema, eX as ErrorDetail, eY as ErrorDetailSchema, eZ as ErrorEvent, e_ as ErrorNotification, e$ as ErrorNotificationSchema, f0 as ExecToolInfoSchema, f1 as ExecToolInfoWithSchemas, f2 as ExecToolInfoWithSchemasSchema, f3 as ExecuteRewindRequest, f4 as ExecuteRewindRequestParamsSchema, f5 as ExecuteRewindRequestSchema, f6 as ExecuteRewindResponse, f7 as ExecuteRewindResult, f8 as ExecuteRewindResultSchema, f9 as ExecuteToolConfirmationDetails, fa as ExecuteToolConfirmationDetailsSchema, fb as ExitSpecModeConfirmationDetails, fc as ExitSpecModeConfirmationDetailsSchema, fd as FACTORY_CLIENT_HEADER, fe as FACTORY_CLIENT_VERSION, ff as FACTORY_PROTOCOL_VERSION, fg as FactoryApiOptions, fh as FactoryDaemonConfig, fi as FactoryDaemonTransport, fj as FactoryDroidEvents, fk as FactoryDroidMessage, fl as FactoryDroidMessageRole, fm as FactoryDroidMessageSchema, fn as FeatureStatus, fo as FeatureSuccessState, fp as FeatureSuccessStateSchema, fq as FeedbackResource, fr as FileTransfersResource, fs as ForkSessionOptions, ft as ForkSessionRequest, fu as ForkSessionRequestSchema, fv as ForkSessionResponse, fw as ForkSessionResult, fx as ForkSessionResultSchema, fy as GetComputerByNameOptions, fz as GetComputerMetricsOptions, fA as GetComputerOptions, fB as GetContextDocumentByPathOptions, fC as GetContextDocumentOptions, fD as GetContextSessionOptions, fE as GetContextSpaceOptions, fF as GetContextStatsRequest, fG as GetContextStatsRequestParams, fH as GetContextStatsRequestParamsSchema, fI as GetContextStatsRequestSchema, fJ as GetContextStatsResponse, dD as GetContextStatsResultSchema, fK as GetMachineTemplateOptions, fL as GetRewindInfoRequest, fM as GetRewindInfoRequestParamsSchema, fN as GetRewindInfoRequestSchema, fO as GetRewindInfoResponse, fP as GetRewindInfoResultSchema, fQ as GetSessionMessagesOptions, fR as GitRepoInfo, fS as GitRepoInfoSchema, fT as GitResource, fU as Handoff, fV as HandoffItemsDismissedEntry, fW as HandoffItemsDismissedEntrySchema, fX as HandoffSchema, fY as HookCommand, fZ as HookCommandSchema, f_ as HookExecution, f$ as HookExecutionCompletedNotification, g0 as HookExecutionCompletedNotificationSchema, g1 as HookExecutionStartedNotification, g2 as HookExecutionStartedNotificationSchema, g3 as HookResult, g4 as HookResultSchema, g5 as HttpHeader, g6 as HttpHeaderSchema, g7 as HttpMcpConfigSchema, g8 as IDaemonClient, g9 as IPC_DAEMON_URL, ga as IToolProgressStore, gb as ImageBlock, gc as ImageBlockSchema, gd as InProcessMessageHandler, ge as InitializeResult, gf as InitializeSessionRequest, gg as InitializeSessionRequestParamsSchema, gh as InitializeSessionRequestSchema, gi as InitializeSessionResponseSchema, gj as InitializeSessionResult, gk as InitializeSessionResultSchema, gl as InteractiveCheck, gm as InteractiveCheckSchema, gn as InterruptResult, go as InterruptSessionRequest, gp as InterruptSessionRequestParams, gq as InterruptSessionRequestParamsSchema, gr as InterruptSessionRequestSchema, gs as InterruptSessionResponse, gt as InterruptSessionResponseSchema, gu as InterruptSessionResult, gv as InterruptSessionResultSchema, gw as InvalidSessionCwdError, gx as IssueSeverity, gy as JSONRPC_VERSION, gz as JsonArray, gA as JsonArraySchema, gB as JsonObject, gC as JsonObjectSchema, gD as JsonPrimitive, gE as JsonRpcEnvelope, gF as JsonRpcEnvelopeSchema, gG as JsonRpcError, gH as JsonRpcErrorCode, gI as JsonRpcErrorSchema, gJ as JsonRpcMessage, gK as JsonRpcMessageSchema, gL as JsonRpcMessageType, gM as JsonRpcNotification, gN as JsonRpcNotificationSchema, gO as JsonRpcRequest, gP as JsonRpcRequestError, gQ as JsonRpcRequestSchema, gR as JsonRpcResponse, gS as JsonRpcResponseFailure, gT as JsonRpcResponseFailureSchema, gU as JsonRpcResponseSchema, gV as JsonRpcResponseSuccess, gW as JsonRpcResponseSuccessSchema, gX as JsonValue, gY as JsonValueSchema, gZ as KillWorkerSessionRequest, g_ as KillWorkerSessionRequestParams, g$ as KillWorkerSessionRequestParamsSchema, h0 as KillWorkerSessionRequestSchema, h1 as KillWorkerSessionResponse, h2 as KillWorkerSessionResponseSchema, h3 as KillWorkerSessionResult, h4 as KillWorkerSessionResultSchema, h5 as LEGACY_FACTORY_API_VERSION, h6 as LOCAL_MACHINE_ID, h7 as ListComputersOptions, h8 as ListContextDocumentsOptions, h9 as ListContextDocumentsResponse, ha as ListContextDocumentsResult, hb as ListContextSessionsOptions, hc as ListContextSessionsResponse, hd as ListContextSessionsResult, he as ListContextSpacesOptions, hf as ListContextSpacesResponse, hg as ListDaemonSessionsOptions, hh as ListEnvironmentsOptions, hi as ListMachineTemplatesOptions, hj as ListMcpRegistryRequest, hk as ListMcpRegistryRequestParams, hl as ListMcpRegistryRequestParamsSchema, hm as ListMcpRegistryRequestSchema, hn as ListMcpRegistryResponse, ho as ListMcpRegistryResult, hp as ListMcpRegistryResultSchema, hq as ListMcpServersRequest, hr as ListMcpServersRequestParams, hs as ListMcpServersRequestParamsSchema, ht as ListMcpServersRequestSchema, hu as ListMcpServersResponse, hv as ListMcpServersResultSchema, hw as ListMcpToolsRequest, hx as ListMcpToolsRequestParams, hy as ListMcpToolsRequestParamsSchema, hz as ListMcpToolsRequestSchema, hA as ListMcpToolsResponse, hB as ListMcpToolsResult, hC as ListMcpToolsResultSchema, hD as ListModelsOptionsSchema, hE as ListModelsResult, hF as ListModelsResultSchema, hG as ListRemoteSessionElicitationsOptions, hH as ListRemoteSessionsOptions, hI as ListSessionElicitationsResponse, hJ as ListSessionElicitationsResponseSchema, hK as ListSkillsRequest, hL as ListSkillsRequestParamsSchema, hM as ListSkillsRequestSchema, hN as ListSkillsResponse, hO as ListSkillsResultSchema, hP as ListToolsRequest, hQ as ListToolsRequestParamsSchema, hR as ListToolsRequestSchema, hS as ListToolsResponseSchema, hT as ListToolsResponseWithSchemas, hU as ListToolsResponseWithSchemasSchema, hV as ListToolsResult, hW as ListToolsResultSchema, hX as ListToolsResultWithSchemas, hY as ListToolsResultWithSchemasSchema, hZ as LoadResult, h_ as LoadSessionRequest, h$ as LoadSessionRequestParamsSchema, i0 as LoadSessionRequestSchema, i1 as LoadSessionResponseSchema, i2 as LoadSessionResult, i3 as LoadSessionResultSchema, i4 as LogMetadata, i5 as MACHINE_TYPE_WEBSOCKET_OVERRIDES, i6 as MANAGED_COMPUTER_MAX_RETRIES, i7 as MCP_AUTH_TIMEOUT, i8 as MachineConnectionConfig, i9 as MachineInfo, ia as MachineTemplate, ib as MachineTemplateBuildStatus, ic as MachineTemplateBuildStatusSchema, id as MachineTemplateListResponse, ie as MachineTemplateListResponseSchema, ig as MachineTemplateSchema, ih as MachineType, ii as MarketplacesResource, ij as McpAuthCompleted, ik as McpAuthCompletedNotification, il as McpAuthCompletedNotificationSchema, im as McpAuthOutcome, io as McpAuthRequired, ip as McpAuthRequiredNotification, iq as McpAuthRequiredNotificationSchema, ir as McpHttpServerConfigFields, is as McpHttpServerConfigFieldsSchema, it as McpRegistryServer, iu as McpRegistryServerSchema, iv as McpResource, iw as McpServerConfigSchema, ix as McpServerStatus, iy as McpServerStatusInfo, iz as McpServerStatusInfoSchema, iA as McpServerType, iB as McpSseServerConfigFields, iC as McpSseServerConfigFieldsSchema, iD as McpStatus, iE as McpStatusChanged, iF as McpStatusChangedNotification, iG as McpStatusChangedNotificationSchema, iH as McpStatusSummary, iI as McpStatusSummarySchema, iJ as McpStdioServerConfigFields, iK as McpStdioServerConfigFieldsSchema, iL as McpToolConfirmationDetails, iM as McpToolConfirmationDetailsSchema, iN as McpToolInfoSchema, iO as McpToolInputSchema, iP as McpToolInputSchemaSchema, iQ as MessageRouterEvents, iR as MessageVisibility, iS as Metric, iT as MetricLabels, iU as MilestoneValidationTriggeredEntry, iV as MilestoneValidationTriggeredEntrySchema, iW as MissionAcceptedEntry, iX as MissionAcceptedEntrySchema, iY as MissionFeature, iZ as MissionFeatureSchema, i_ as MissionFeaturesChanged, i$ as MissionFeaturesChangedNotification, j0 as MissionFeaturesChangedNotificationSchema, j1 as MissionHeartbeat, j2 as MissionHeartbeatNotification, j3 as MissionHeartbeatNotificationSchema, j4 as MissionPausedEntry, j5 as MissionPausedEntrySchema, j6 as MissionProgressEntry, j7 as MissionProgressEntryNotification, j8 as MissionProgressEntryNotificationSchema, j9 as MissionResumedEntry, ja as MissionResumedEntrySchema, jb as MissionRunStartedEntry, jc as MissionRunStartedEntrySchema, jd as MissionSnapshot, je as MissionSnapshotSchema, jf as MissionSnapshotStore, jg as MissionState, jh as MissionStateChanged, ji as MissionStateChangedNotification, jj as MissionStateChangedNotificationSchema, jk as MissionStoreInterface, jl as MissionWorkerCompleted, jm as MissionWorkerCompletedNotification, jn as MissionWorkerCompletedNotificationSchema, jo as MissionWorkerStarted, jp as MissionWorkerStartedNotification, jq as MissionWorkerStartedNotificationSchema, jr as MissionsResource, js as ModelInfoSchema, jt as ModelMetadata, ju as ModelMetadataSchema, jv as ModelProvider, jw as ModelsResource, jx as MultiMissionStateManager, jy as MultiSessionStateManager, jz as NotificationDispatcherEvents, jA as NotificationHookInput, jB as OpenedSessionSummary, jC as OtelTracing, jD as OutgoingMessage, jE as OutputFormat, jF as OutputFormatSchema, jG as OutputFormatType, jH as PendingAskUserRequest, jI as PendingPermission, jJ as PendingRequest, jK as PendingUserAction, jL as PermissionRequestHandlerEvents, jM as PermissionResolved, jN as PermissionResolvedNotification, jO as PermissionResolvedNotificationSchema, jP as PickOptionsRequest, jQ as PickOptionsRequestParams, jR as PickOptionsRequestParamsSchema, jS as PickOptionsRequestSchema, jT as PickOptionsResponse, jU as PickOptionsResponseSchema, jV as PickOptionsResult, jW as PickOptionsResultSchema, jX as PickOptionsRow, jY as PickOptionsRowSchema, jZ as PickOptionsUnavailableError, j_ as PluginsResource, j$ as PreCompactHookInput, k0 as ProcessExitError, k1 as ProgressLogEntry, k2 as ProgressLogEntrySchema, k3 as ProgressLogEntryType, k4 as ProposeMissionConfirmationDetails, k5 as ProposeMissionConfirmationDetailsSchema, k6 as ProtocolError, k7 as ProxyResource, k8 as QueuedUserMessageDisplayGroup, k9 as QueuedUserMessageKind, ka as QueuedUserMessageState, kb as REWIND_TIMEOUT, kc as ReadContextSessionRecordsOptions, kd as ReadContextSessionRecordsResponse, ke as RedactedThinkingBlock, kf as RedactedThinkingBlockSchema, kg as RefreshComputerOptions, kh as RefreshComputerResponse, ki as RefreshComputerResponseSchema, kj as RegisterContextSessionOptions, kk as RelayConnectionError, kl as RelayResource, km as RemoteSession, kn as RemoteSessionListResponse, ko as RemoteSessionListResponseSchema, kp as RemoteSessionSchema, kq as RemoveMcpServerRequest, kr as RemoveMcpServerRequestParamsSchema, ks as RemoveMcpServerRequestSchema, kt as RemoveMcpServerResponse, ku as RemoveMcpServerResultSchema, kv as RenameSessionRequest, kw as RenameSessionRequestParamsSchema, kx as RenameSessionRequestSchema, ky as RenameSessionResponse, kz as RenameSessionResult, kA as RenameSessionResultSchema, kB as RequestCancelledError, kC as RequestManagerEvents, kD as RequestPermissionRequest, kE as RequestPermissionRequestParams, kF as RequestPermissionRequestParamsSchema, kG as RequestPermissionRequestSchema, kH as RequestPermissionResponse, kI as RequestPermissionResponseSchema, kJ as RequestPermissionResult, kK as RequestPermissionResultSchema, kL as RequestPermissionSelection, kM as RestartComputerOptions, kN as ResumeDaemonSessionOptions, kO as RetryInstallDepsOptions, kP as RetryOptions, kQ as RetryWarnLogger, kR as RewindEvictedFile, kS as RewindEvictedFileSchema, kT as RewindFileCreation, kU as RewindFileCreationSchema, kV as RewindFileSnapshot, kW as RewindFileSnapshotSchema, kX as RewindSessionParams, kY as RewindSessionResult, kZ as SDK_TAG, k_ as SDK_VERSION, k$ as SESSION_INIT_TIMEOUT, l0 as SLACK_DELEGATION_MAX_RETRIES, l1 as SearchSessionSummary, l2 as SearchSessionsResult, l3 as SemanticDiffResource, l4 as ServerRequestHandlerType, l5 as Session, l6 as SessionArtifact, l7 as SessionArtifactAction, l8 as SessionArtifactKind, l9 as SessionArtifactProvider, la as SessionArtifactSchema, lb as SessionArtifactSource, lc as SessionArtifactsSchema, ld as SessionElicitation, le as SessionElicitationSchema, lf as SessionEndHookInput, lg as SessionError, lh as SessionInitializedOutcome, li as SessionManagerConfig, lj as SessionMessage, lk as SessionMetadataSchema, ll as SessionNotFoundError, lm as SessionNotification, ln as SessionNotificationParams, lo as SessionNotificationParamsSchema, lp as SessionNotificationPayload, lq as SessionNotificationPayloadSchema, lr as SessionNotificationSchema, ls as SessionNotificationSchemaList, lt as SessionNotificationType, lu as SessionOperationsResource, lv as SessionPendingRequest, lw as SessionPlatform, lx as SessionReplacedError, ly as SessionReplacementError, lz as SessionSettingsFile, lA as SessionSettingsFileSchema, lB as SessionSettingsSchema, lC as SessionSourceSchema, lD as SessionStartEvent, lE as SessionStartEventSchema, lF as SessionStartHookInput, lG as SessionSummary, lH as SessionTagSchema, lI as SessionTitleUpdated, lJ as SessionTitleUpdatedNotification, lK as SessionTitleUpdatedNotificationSchema, lL as SessionTokenUsageChangedNotification, lM as SessionTokenUsageChangedNotificationSchema, lN as SessionWebSocketConnectionEvents, lO as SessionWorkingDirectoryChanged, lP as SessionsResource, lQ as SetSkillDisabledRequest, lR as SetSkillDisabledRequestParamsSchema, lS as SetSkillDisabledRequestSchema, lT as SetSkillDisabledResponse, lU as SetSkillDisabledResultSchema, lV as SettingsResource, lW as SettingsUpdated, lX as SettingsUpdatedNotification, lY as SettingsUpdatedNotificationSchema, lZ as SettingsUpdatedPayload, l_ as SettingsUpdatedPayloadSchema, l$ as SkillDeviation, m0 as SkillDeviationSchema, m1 as SkillFeedback, m2 as SkillFeedbackSchema, m3 as SkillInfo, m4 as SkillInfoSchema, m5 as SkillLocation, m6 as SkillResource, m7 as SkillResourceSchema, m8 as SkillsResource, m9 as SpanAttribute, ma as SpanEvent, mb as SpanName, mc as SseMcpConfig, md as SseMcpConfigSchema, me as SshResource, mf as StartMissionRunConfirmationDetails, mg as StartMissionRunConfirmationDetailsSchema, mh as StartWorkstreamOptions, mi as StdioMcpConfig, mj as StdioMcpConfigSchema, mk as StopHookInput, ml as StoredAskUserAction, mm as StoredPermissionAction, mn as StreamStateTracker, mo as StructuredOutput, mp as StructuredOutputError, mq as StructuredOutputErrorSchema, mr as StructuredOutputFields, ms as StructuredOutputNotification, mt as StructuredOutputNotificationSchema, mu as SubagentStopHookInput, mv as SubmitBugReportRequest, mw as SubmitBugReportRequestParams, mx as SubmitBugReportRequestParamsSchema, my as SubmitBugReportRequestSchema, mz as SubmitBugReportResponse, mA as SubmitBugReportResult, mB as SubmitBugReportResultSchema, mC as SubmitMcpAuthCodeRequest, mD as SubmitMcpAuthCodeRequestParams, mE as SubmitMcpAuthCodeRequestSchema, mF as SubmitMcpAuthCodeResponse, mG as SubmitMcpAuthCodeResult, mH as SubmitMcpAuthCodeResultSchema, mI as SuccessResult, mJ as SuccessResultSchema, mK as TerminalMetadata, mL as TerminalSerializedState, mM as TerminalsResource, mN as TestCase, mO as TestCaseSchema, mP as TestFile, mQ as TestFileSchema, mR as Tests, mS as TestsSchema, mT as TextBlock, mU as TextBlockSchema, mV as ThinkingBlock, mW as ThinkingBlockSchema, mX as ThinkingTextComplete, mY as ThinkingTextCompleteNotification, mZ as ThinkingTextCompleteNotificationSchema, m_ as ThinkingTextDelta, m$ as ThinkingTextDeltaNotification, n0 as ThinkingTextDeltaNotificationSchema, n1 as TimeoutError, n2 as ToggleMcpServerRequest, n3 as ToggleMcpServerRequestParamsSchema, n4 as ToggleMcpServerRequestSchema, n5 as ToggleMcpServerResponse, n6 as ToggleMcpServerResultSchema, n7 as ToggleMcpToolRequest, n8 as ToggleMcpToolRequestParams, n9 as ToggleMcpToolRequestParamsSchema, na as ToggleMcpToolRequestSchema, nb as ToggleMcpToolResponse, nc as ToggleMcpToolResult, nd as ToggleMcpToolResultSchema, ne as TokenUsage, nf as TokenUsageSchema, ng as TokenUsageUpdate, nh as ToolCallDelta, ni as ToolCallNotification, nj as ToolCallNotificationSchema, nk as ToolConfirmationDetails, nl as ToolConfirmationDetailsSchema, nm as ToolConfirmationInfo, nn as ToolConfirmationInfoSchema, no as ToolConfirmationListItem, np as ToolConfirmationListItemSchema, nq as ToolConfirmationType, nr as ToolHookInput, ns as ToolJsonSchema, nt as ToolJsonSchemaSchema, nu as ToolProgress, nv as ToolProgressNotifier, nw as ToolProgressUpdate, nx as ToolProgressUpdateNotification, ny as ToolProgressUpdateNotificationSchema, nz as ToolProgressUpdateSchema, nA as ToolResult, nB as ToolResultBlock, nC as ToolResultBlockSchema, nD as ToolResultNotification, nE as ToolResultNotificationSchema, nF as ToolResultSchemaDescriptor, nG as ToolResultSchemaDescriptorSchema, nH as ToolSchemas, nI as ToolSchemasSchema, nJ as ToolSelectionOverridesSchema, nK as ToolSource, nL as ToolSourceSchema, nM as ToolUse, nN as ToolUseBlock, nO as ToolUseBlockSchema, nP as ToolUseSchema, nQ as TraceContext, nR as TraceContextMeta, nS as TraceContextMetaSchema, nT as TunnelConnection, nU as TunnelConnectionOptions, nV as UnstableResource, nW as UpdateComputerOptions, nX as UpdateContextDocumentOptions, nY as UpdateCronOptions, nZ as UpdateSessionSettingsOptions, n_ as UpdateSessionSettingsRequest, n$ as UpdateSessionSettingsRequestParamsSchema, o0 as UpdateSessionSettingsRequestSchema, o1 as UpdateSessionSettingsResponse, o2 as UpdateSessionSettingsResponseSchema, o3 as UpdateSessionSettingsResultSchema, o4 as UpdatesResource, o5 as UploadContextFilePartOptions, o6 as UseMissionStoreSnapshotParams, o7 as UserPromptSubmitHookInput, o8 as Verification, o9 as VerificationCommand, oa as VerificationCommandSchema, ob as VerificationSchema, oc as WebSocketConnectionConfig, od as WebSocketConnectionError, lN as WebSocketConnectionEvents, oe as WebSocketDaemonTransport, of as WebSocketDaemonTransportConfig, og as WorkerCompletedEntry, oh as WorkerCompletedEntrySchema, oi as WorkerFailedEntry, oj as WorkerFailedEntrySchema, ok as WorkerPausedEntry, ol as WorkerPausedEntrySchema, om as WorkerSelectedFeatureEntry, on as WorkerSelectedFeatureEntrySchema, oo as WorkerStartedEntry, op as WorkerStartedEntrySchema, oq as WorkerStateInfo, or as WorkerStateInfoSchema, os as WorkingStateChanged, ot as WorkspaceResource, ou as WorkstreamMachine, ov as WorkstreamMachineTargetKind, ow as WorkstreamSettings, ox as WorkstreamSettingsUpdate, oy as WorkstreamSummary, oz as WorkstreamsResource, oA as answerRemoteSessionElicitation, oB as appendContextSession, oC as buildUserMessageContentBlocks, oD as configureDaemonCoreDeps, oE as connectAndAuthenticate, oF as connectToDaemon, oG as connectWithRetry, oH as convertNotificationToStreamMessage, oI as createComputer, oJ as createContextDocument, oK as createContextFile, oL as createContextSpace, oM as createResponseSchema, oN as createWebSocketDaemonClient, oO as defaultDaemonCoreDeps, oP as deleteComputer, oQ as deleteContextDocument, oR as deleteContextFile, oS as filterMessagesForUI, oT as getComputer, oU as getComputerByName, oV as getComputerMetrics, oW as getContextDocument, oX as getContextDocumentByPath, oY as getContextSession, oZ as getContextSpace, o_ as getMachineTemplate, o$ as getPermissionToolInputForDisplay, p0 as getQueuedUserMessageDisplayGroup, p1 as getQueuedUserMessageReviewPriority, p2 as getSubagentCallingMetadata, p3 as getToolResultBlocks, p4 as getToolResultToolUseId, p5 as hasDecoupledInteractionSettings, p6 as hasSubagentSessionTag, p7 as inspectJsonRpcEnvelope, p8 as isDaemonQueuedMessageKind, p9 as isPendingToolResultMarker, pa as isPersistedHookMessage, pb as isReviewableQueuedMessageKind, pc as listComputers, pd as listContextDocuments, pe as listContextSessions, pf as listContextSpaces, pg as listEnvironments, ph as listMachineTemplates, pi as listRemoteSessionElicitations, pj as listRemoteSessions, pk as machineTypeToMachineConnectionType, pl as readContextFilePart, pm as readContextSessionRecords, pn as recordComputerConnectSli, po as refreshComputer, pp as registerContextSession, pq as restartComputer, pr as retryInstallDeps, ps as retryWithLogger, pt as sumTokenUsage, pu as summarizeSessionToolUsage, pv as toError, pw as updateComputer, px as updateContextDocument, py as uploadContextFilePart } from './index-Cf2WtJqJ.mjs';
|
|
3
3
|
import EventEmitter from 'events';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { StdioOptions, ChildProcess } from 'child_process';
|
|
@@ -8,8 +8,7 @@ import '@opentelemetry/api';
|
|
|
8
8
|
import 'eventemitter3';
|
|
9
9
|
|
|
10
10
|
declare class IpcDaemonClientTransport implements DaemonClientTransport {
|
|
11
|
-
private
|
|
12
|
-
private connected;
|
|
11
|
+
private connectionId;
|
|
13
12
|
private readonly channel;
|
|
14
13
|
private unsubscribeMessage;
|
|
15
14
|
private unsubscribeDisconnect;
|
|
@@ -48,9 +47,8 @@ declare class IpcDaemonClientTransport implements DaemonClientTransport {
|
|
|
48
47
|
* propagation live in exactly one place; the runtime handles frames.
|
|
49
48
|
*/
|
|
50
49
|
declare class InProcessDaemonClientTransport implements DaemonClientTransport {
|
|
51
|
-
private
|
|
50
|
+
private connectionId;
|
|
52
51
|
private readonly options;
|
|
53
|
-
private connected;
|
|
54
52
|
private readonly unsubscribeFns;
|
|
55
53
|
private readonly handlers;
|
|
56
54
|
constructor(options: InProcessDaemonClientTransportOptions);
|
|
@@ -61,7 +59,7 @@ declare class InProcessDaemonClientTransport implements DaemonClientTransport {
|
|
|
61
59
|
isRelayConnection(): boolean;
|
|
62
60
|
isSecureChannel(): boolean;
|
|
63
61
|
getTransportKind(): DaemonClientTransportKind.InProcess;
|
|
64
|
-
send(data: JsonRpcMessage): void
|
|
62
|
+
send(data: JsonRpcMessage): Promise<void>;
|
|
65
63
|
on<T extends keyof DaemonClientTransportEvents>(event: T, handler: DaemonClientTransportEvents[T]): void;
|
|
66
64
|
off<T extends keyof DaemonClientTransportEvents>(event: T, handler: DaemonClientTransportEvents[T]): void;
|
|
67
65
|
/**
|
|
@@ -251,6 +249,9 @@ interface ManagedProcess {
|
|
|
251
249
|
* Options controlling the Windows Job Object spawn retry wrapper.
|
|
252
250
|
*/
|
|
253
251
|
interface SpawnWithRetryOptions {
|
|
252
|
+
/** Working directory and executable used to describe an observed spawn failure. */
|
|
253
|
+
cwd?: string;
|
|
254
|
+
execPath?: string;
|
|
254
255
|
/** Max number of retries after the initial spawn. */
|
|
255
256
|
maxRetries?: number;
|
|
256
257
|
/** Backoff schedule in ms between attempts. */
|
|
@@ -279,7 +280,21 @@ interface SpawnWithRetryOptions {
|
|
|
279
280
|
logger?: Logger;
|
|
280
281
|
}
|
|
281
282
|
|
|
283
|
+
/**
|
|
284
|
+
* True for a DroidConnectionEndedError or a ProcessExitError, directly or as
|
|
285
|
+
* the cause of a ProtocolError (a failed send wraps the transport's error):
|
|
286
|
+
* the droid's spawn failed, its process exited, or its transport was closed,
|
|
287
|
+
* never connected, or could not write to the droid. False for every other
|
|
288
|
+
* error, including a plain ConnectionError such as a failed Factory API
|
|
289
|
+
* request.
|
|
290
|
+
*/
|
|
291
|
+
declare function isDroidConnectionEnded(error: unknown): boolean;
|
|
282
292
|
type McpSettingsLevel = SettingsLevel.User;
|
|
293
|
+
/**
|
|
294
|
+
* A host answering on behalf of another client names the answer's provenance
|
|
295
|
+
* itself; once it has, this client's own supplier never labels that answer.
|
|
296
|
+
*/
|
|
297
|
+
type ResponseMetadataSetter = (meta: TraceContextMeta) => void;
|
|
283
298
|
type PermissionHandlerResult = RequestPermissionHandlerResult | ToolConfirmationOutcome | RequestPermissionResult;
|
|
284
299
|
/**
|
|
285
300
|
* Derive the JSON-RPC error code for an outgoing failure response. An error can
|
|
@@ -297,9 +312,18 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
297
312
|
private pickOptionsHandlers;
|
|
298
313
|
private pendingPermissionRequests;
|
|
299
314
|
private pendingAskUserRequests;
|
|
315
|
+
/**
|
|
316
|
+
* Queued (non-blocking) AskUser requests that arrived before an AskUser
|
|
317
|
+
* handler was set, as when a reloaded session asks its pending queued sets
|
|
318
|
+
* again during the load. Answering one without a handler would record it
|
|
319
|
+
* as dismissed, and the agent never waits on it, so it waits for the
|
|
320
|
+
* handler instead.
|
|
321
|
+
*/
|
|
322
|
+
private heldQueuedAskUserRequests;
|
|
300
323
|
private pendingPickOptionsRequests;
|
|
301
324
|
private currentSessionId;
|
|
302
325
|
private peerProtocolVersion;
|
|
326
|
+
private peerEnforcesQueueOwnership;
|
|
303
327
|
/**
|
|
304
328
|
* Sticky error from a transport failure. Once set, all subsequent
|
|
305
329
|
* `sendRequest()` calls throw this error immediately, preventing
|
|
@@ -307,13 +331,40 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
307
331
|
*/
|
|
308
332
|
private transportError;
|
|
309
333
|
private completedTurnObserved;
|
|
334
|
+
/**
|
|
335
|
+
* Set once the droid sends `droid.disconnect`. It reads no further
|
|
336
|
+
* requests from then on, so it no longer counts as connected even while its
|
|
337
|
+
* transport stays open.
|
|
338
|
+
*/
|
|
339
|
+
private disconnected;
|
|
310
340
|
private readonly logger;
|
|
311
341
|
private readonly tracing;
|
|
312
342
|
private readonly onRequestSettled;
|
|
313
343
|
private readonly getRequestAttribution;
|
|
314
344
|
constructor(options: DroidClientOptions, deps?: ExecCoreDeps);
|
|
315
345
|
get sessionId(): string | null;
|
|
346
|
+
/**
|
|
347
|
+
* The session that an inbound prompt or transport fault belongs to. A
|
|
348
|
+
* session start or load in flight owns it, because the CLI replays a loaded
|
|
349
|
+
* session's pending prompts before it answers the load; otherwise the
|
|
350
|
+
* current session does. Undefined when that is ambiguous: a start with no
|
|
351
|
+
* session id yet, or several starts and loads in flight.
|
|
352
|
+
*
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
get addressedSessionId(): string | undefined;
|
|
316
356
|
get isConnected(): boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Whether the worker runs in a child process. A daemon's shutdown cuts such
|
|
359
|
+
* a worker off from its owner before closing it, and from then on it reads
|
|
360
|
+
* no request; a worker hosted in this process still answers.
|
|
361
|
+
*/
|
|
362
|
+
get runsInChildProcess(): boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Whether the runner refuses a queue change from someone other than the
|
|
365
|
+
* prompt's author. Older runners ignore the author on such a change.
|
|
366
|
+
*/
|
|
367
|
+
get enforcesQueueOwnership(): boolean;
|
|
317
368
|
private requireMcpOAuthOptOutSupport;
|
|
318
369
|
private validateMcpServersProtocolSupport;
|
|
319
370
|
initializeSession(params: InitializeSessionRequestParams): Promise<InitializeSessionResponse>;
|
|
@@ -330,7 +381,7 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
330
381
|
interruptSession(params?: InterruptSessionParams): Promise<InterruptSessionResponse>;
|
|
331
382
|
closeSession(params?: CloseSessionParams): Promise<CloseSessionResponse>;
|
|
332
383
|
killWorkerSession(params: KillWorkerSessionParams): Promise<KillWorkerSessionResponse>;
|
|
333
|
-
updateSessionSettings(params: UpdateSessionSettingsRequestParams, requestId?: string): Promise<UpdateSessionSettingsResponse>;
|
|
384
|
+
updateSessionSettings(params: Omit<UpdateSessionSettingsRequestParams, 'tags' | 'tagPatch'> & SessionTagsUpdate, requestId?: string): Promise<UpdateSessionSettingsResponse>;
|
|
334
385
|
changeWorkingDirectory(params: ChangeWorkingDirectoryParams): Promise<ChangeWorkingDirectoryResponse>;
|
|
335
386
|
toggleMcpServer(params: {
|
|
336
387
|
serverName: string;
|
|
@@ -365,7 +416,8 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
365
416
|
listCommands(): Promise<z.infer<typeof ListCommandsResponseSchema>>;
|
|
366
417
|
getContextStats(): Promise<z.infer<typeof GetContextStatsResponseSchema>>;
|
|
367
418
|
getContextBreakdown(): Promise<z.infer<typeof GetContextBreakdownResponseSchema>>;
|
|
368
|
-
|
|
419
|
+
killBackgroundProcess(processId: string): Promise<z.infer<typeof KillBackgroundProcessResponseSchema>>;
|
|
420
|
+
submitBugReport(userComment: string, clientLogs?: string, source?: SubmitBugReportRequest['params']['source'], tuiLogs?: string): Promise<z.infer<typeof SubmitBugReportResponseSchema>>;
|
|
369
421
|
getRewindInfo(params: {
|
|
370
422
|
messageId: string;
|
|
371
423
|
}, timeout?: number): Promise<z.infer<typeof GetRewindInfoResponseSchema>>;
|
|
@@ -385,6 +437,12 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
385
437
|
customInstructions?: string;
|
|
386
438
|
mode?: 'handoff';
|
|
387
439
|
}): Promise<z.infer<typeof CompactSessionResponseSchema>>;
|
|
440
|
+
/** Summarizes the session the way `/handoff` does, without writing anything. */
|
|
441
|
+
getHandoffSummary(): Promise<z.infer<typeof GetHandoffSummaryResponseSchema>>;
|
|
442
|
+
/** Writes the short summary people joining a shared copy read first. */
|
|
443
|
+
summarizeForMembers(params: {
|
|
444
|
+
handoffSummary: string;
|
|
445
|
+
}): Promise<z.infer<typeof SummarizeForMembersResponseSchema>>;
|
|
388
446
|
forkSession(params?: z.infer<typeof ForkSessionRequestParamsSchema>): Promise<z.infer<typeof ForkSessionResponseSchema>>;
|
|
389
447
|
renameSession(params: RenameSessionRequestParams, requestId?: string): Promise<z.infer<typeof RenameSessionResponseSchema>>;
|
|
390
448
|
warmupCache(): Promise<z.infer<typeof WarmupCacheResponseSchema>>;
|
|
@@ -392,11 +450,11 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
392
450
|
type?: string;
|
|
393
451
|
}): () => void;
|
|
394
452
|
onError(callback: (error: Error) => void): () => void;
|
|
395
|
-
setPermissionHandler(handler: (event: RequestPermissionEvent) => Promise<PermissionHandlerResult> | PermissionHandlerResult): void;
|
|
453
|
+
setPermissionHandler(handler: (event: RequestPermissionEvent, setResponseMetadata?: ResponseMetadataSetter) => Promise<PermissionHandlerResult> | PermissionHandlerResult): void;
|
|
396
454
|
clearPermissionHandler(): void;
|
|
397
|
-
setAskUserHandler(handler: (event: AskUserEvent) => Promise<AskUserResult> | AskUserResult): void;
|
|
455
|
+
setAskUserHandler(handler: (event: AskUserEvent, setResponseMetadata?: ResponseMetadataSetter) => Promise<AskUserResult> | AskUserResult): void;
|
|
398
456
|
clearAskUserHandler(): void;
|
|
399
|
-
setPickOptionsHandler(handler: (event: PickOptionsEvent) => Promise<PickOptionsResult> | PickOptionsResult): void;
|
|
457
|
+
setPickOptionsHandler(handler: (event: PickOptionsEvent, setResponseMetadata?: ResponseMetadataSetter) => Promise<PickOptionsResult> | PickOptionsResult): void;
|
|
400
458
|
clearPickOptionsHandler(): void;
|
|
401
459
|
close(options?: {
|
|
402
460
|
closeTransportFirst?: boolean;
|
|
@@ -404,7 +462,11 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
404
462
|
private rejectAllPending;
|
|
405
463
|
private settleRequest;
|
|
406
464
|
private notifyRequestSettled;
|
|
465
|
+
/** `_meta` for an answer this client gives itself: its caller and the current trace context. */
|
|
466
|
+
private responseMetadata;
|
|
467
|
+
private sendResponse;
|
|
407
468
|
private sendRequest;
|
|
469
|
+
private writeRequest;
|
|
408
470
|
private handleMessage;
|
|
409
471
|
private handleResponse;
|
|
410
472
|
private handleEvent;
|
|
@@ -424,8 +486,10 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
424
486
|
* every
|
|
425
487
|
*/
|
|
426
488
|
private logDroppedEventParseError;
|
|
489
|
+
private reportHandlerFailure;
|
|
427
490
|
private handlePermissionRequest;
|
|
428
491
|
private handleAskUserRequest;
|
|
492
|
+
private answerAskUserRequest;
|
|
429
493
|
/**
|
|
430
494
|
* Same shape as the ask-user round trip: the handler (a UI) resolves with
|
|
431
495
|
* the user's selection, and any failure or missing handler answers the CLI
|
|
@@ -451,6 +515,10 @@ declare class DroidClient extends EventEmitter<DroidEventMap> {
|
|
|
451
515
|
*/
|
|
452
516
|
declare function withJsonRpcCodec(transport: StringFramedDroidClientTransport, deps?: ExecCoreDeps): DroidClientTransport;
|
|
453
517
|
|
|
518
|
+
type SpawnContext = {
|
|
519
|
+
cwd?: string;
|
|
520
|
+
execPath?: string;
|
|
521
|
+
};
|
|
454
522
|
/**
|
|
455
523
|
* Internal implementation of ManagedProcess
|
|
456
524
|
*/
|
|
@@ -475,11 +543,10 @@ declare class ManagedProcessImpl implements ManagedProcess {
|
|
|
475
543
|
private processError;
|
|
476
544
|
private queuedSendPromise;
|
|
477
545
|
private readonly logger;
|
|
478
|
-
constructor(childProcess: ChildProcess, logPrefix: string, spawnContext:
|
|
479
|
-
cwd?: string;
|
|
480
|
-
execPath?: string;
|
|
481
|
-
} | undefined, deps: ExecCoreDeps, transportLoggerDeps?: ExecCoreDeps);
|
|
546
|
+
constructor(childProcess: ChildProcess, logPrefix: string, spawnContext: SpawnContext | undefined, deps: ExecCoreDeps, transportLoggerDeps?: ExecCoreDeps);
|
|
482
547
|
get childProcess(): ChildProcess;
|
|
548
|
+
/** Wait for the runtime's spawn result without replacing the transport's error handler. */
|
|
549
|
+
waitForSpawn(): Promise<void>;
|
|
483
550
|
private setupHandlers;
|
|
484
551
|
private handleStdoutLine;
|
|
485
552
|
private finalizeExit;
|
|
@@ -534,7 +601,7 @@ declare class DroidProcessManager {
|
|
|
534
601
|
* as spawned. This does not retry Windows Job Object spawn failures — use
|
|
535
602
|
* {@link DroidProcessManager#spawnWithWindowsRetry} for that.
|
|
536
603
|
*/
|
|
537
|
-
spawn(config: DroidProcessConfig):
|
|
604
|
+
spawn(config: DroidProcessConfig): ManagedProcessImpl;
|
|
538
605
|
/**
|
|
539
606
|
* Spawn a droid process with automatic retry for the Windows Job Object
|
|
540
607
|
* spawn error class (FAC-19070). On non-Windows platforms this behaves
|
|
@@ -594,7 +661,10 @@ declare function resolveExecCoreDeps(observability: DroidObservability | undefin
|
|
|
594
661
|
* `gracePeriodMs`. If the child exits early AND the exit looks like a Job
|
|
595
662
|
* Object failure (stderr marker, or non-zero exit without an explicit
|
|
596
663
|
* permanent-failure 'error' event), we dispose the dead child and respawn
|
|
597
|
-
* up to `maxRetries`.
|
|
664
|
+
* up to `maxRetries`. Only a child that survives the window is returned.
|
|
665
|
+
* Observed child failures reject with a DroidConnectionEndedError. A
|
|
666
|
+
* synchronous throw from spawnFactory passes through unchanged and is never
|
|
667
|
+
* retried.
|
|
598
668
|
*/
|
|
599
669
|
declare function spawnWithWindowsJobObjectRetry(spawnFactory: () => ChildProcess, options?: SpawnWithRetryOptions): Promise<ChildProcess>;
|
|
600
670
|
|
|
@@ -687,19 +757,37 @@ interface SessionInitOptions extends ToolSelectionOverrides {
|
|
|
687
757
|
disableBuiltinSkills?: boolean;
|
|
688
758
|
}
|
|
689
759
|
|
|
760
|
+
type EnvironmentSelector = {
|
|
761
|
+
id: string;
|
|
762
|
+
} | {
|
|
763
|
+
name: string;
|
|
764
|
+
};
|
|
765
|
+
|
|
766
|
+
/** Private local-exec contract. DroidClient itself is the unchanged local adapter. */
|
|
767
|
+
type SessionOperations = Pick<DroidClient, 'onNotification' | 'onError' | 'addUserMessage' | 'interruptSession' | 'closeSession' | 'close' | 'loadSession' | 'updateSessionSettings' | 'addMcpServer' | 'removeMcpServer' | 'toggleMcpServer' | 'listMcpServers' | 'listMcpTools' | 'refreshConnectorToolCatalog' | 'listTools' | 'authenticateMcpServer' | 'listSkills' | 'setSkillDisabled' | 'getRewindInfo' | 'executeRewind' | 'compactSession' | 'forkSession' | 'getContextStats' | 'renameSession'>;
|
|
768
|
+
interface SessionLifecycle {
|
|
769
|
+
shutdown: () => Promise<void>;
|
|
770
|
+
abort: (close: () => Promise<void>) => void;
|
|
771
|
+
}
|
|
772
|
+
|
|
690
773
|
type NotificationCallback = (notification: Record<string, unknown>) => void;
|
|
691
774
|
interface NotificationFilter {
|
|
692
775
|
type?: string;
|
|
693
776
|
}
|
|
694
777
|
/** Aggregated result from a one-shot {@link run} call. */
|
|
695
|
-
type DroidResult = DroidResultMessage
|
|
778
|
+
type DroidResult = DroidResultMessage & {
|
|
779
|
+
readonly computerId?: string;
|
|
780
|
+
};
|
|
696
781
|
interface CreateSessionOptions extends SessionInitOptions, HandlerOptions, TransportCreationOptions {
|
|
697
782
|
abortSignal?: AbortSignal;
|
|
783
|
+
/** Launch a new unlisted Computer from an accessible Factory Environment. */
|
|
784
|
+
environment?: EnvironmentSelector;
|
|
785
|
+
/** Factory REST API origin for Environment launches. */
|
|
786
|
+
baseUrl?: string;
|
|
698
787
|
}
|
|
699
788
|
interface ResumeSessionOptions extends Pick<CreateSessionOptions, 'apiKey' | 'execPath' | 'execArgs' | 'env' | 'permissionHandler' | 'askUserHandler' | 'transport' | 'abortSignal' | 'observability' | 'disabledToolIds' | 'autoRejectPermissionRequests' | 'disableBuiltinSkills' | 'sessionSource'> {
|
|
700
789
|
mcpServers?: DroidMcpServerConfig[];
|
|
701
790
|
}
|
|
702
|
-
|
|
703
791
|
type ToolInfo = Omit<ExecToolInfo, 'id' | 'llmId' | 'currentlyAllowed'> & {
|
|
704
792
|
id: ExecToolInfo['llmId'];
|
|
705
793
|
allowed: ExecToolInfo['currentlyAllowed'];
|
|
@@ -711,8 +799,10 @@ type ListToolsOptions = ListToolsRequestParams;
|
|
|
711
799
|
type DroidSessionUpdateSettingsOptions = UpdateSessionSettingsRequestParams;
|
|
712
800
|
type ReplacementLoadParams = Omit<LoadSessionRequestParams, 'sessionId'>;
|
|
713
801
|
interface SessionRuntime {
|
|
802
|
+
readonly computerId?: string;
|
|
714
803
|
abortSignal?: AbortSignal;
|
|
715
804
|
loadParams: ReplacementLoadParams;
|
|
805
|
+
lifecycle?: SessionLifecycle;
|
|
716
806
|
}
|
|
717
807
|
interface SessionMetadataSnapshot {
|
|
718
808
|
settings: SessionSettings;
|
|
@@ -722,6 +812,7 @@ interface SessionMetadataSnapshot {
|
|
|
722
812
|
declare class DroidSession {
|
|
723
813
|
private readonly _runtime;
|
|
724
814
|
private readonly _client;
|
|
815
|
+
private readonly _lifecycle;
|
|
725
816
|
private readonly _sessionId;
|
|
726
817
|
private _settings;
|
|
727
818
|
private _cwd;
|
|
@@ -733,8 +824,9 @@ declare class DroidSession {
|
|
|
733
824
|
private readonly _activeBridges;
|
|
734
825
|
private readonly _notificationCleanups;
|
|
735
826
|
/** @internal */
|
|
736
|
-
constructor(client:
|
|
827
|
+
constructor(client: SessionOperations, sessionId: string, metadata: SessionMetadataSnapshot, _runtime: SessionRuntime, cleanupCallbacks?: Array<() => Promise<void> | void>);
|
|
737
828
|
get id(): string;
|
|
829
|
+
get computerId(): string | undefined;
|
|
738
830
|
get settings(): Readonly<SessionSettings>;
|
|
739
831
|
get cwd(): string | undefined;
|
|
740
832
|
/** Yields message-level events until the final `result` message. */
|
|
@@ -843,4 +935,4 @@ declare function listSessions(options?: ListSessionsOptions): Promise<SessionMet
|
|
|
843
935
|
*/
|
|
844
936
|
declare function listModels(options?: ListModelsOptions & TransportCreationOptions): Promise<ModelInfo[]>;
|
|
845
937
|
|
|
846
|
-
export { AddMcpServerRequestParams, AddMcpServerResponseSchema, AddMcpServerResult, AuthenticateMcpServerRequestParams, AuthenticateMcpServerResponseSchema, AuthenticateMcpServerResult, AutonomyLevel, CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC, CancelMcpAuthResponseSchema, ClearMcpAuthResponseSchema, type CommandResolver, CompactSessionRequestParams, CompactSessionResponseSchema, type CreateSessionOptions, DaemonClientTransport, DaemonClientTransportEvents, DaemonIpcMessageChannel, DroidClient, DroidClientEvent, DroidClientOptions, DroidClientTransport, type DroidEventMap, type DroidEventType, DroidInteractionMode, type DroidMcpServerConfig, DroidObservability, type DroidProcessConfig, DroidProcessManager, type DroidProcessManagerOptions, DroidProcessMode, type DroidResult, DroidResultMessage, DroidSession, type DroidSessionUpdateSettingsOptions, DroidStreamEvent, DroidStreamMessage, type DroidTool, type DroidToolOptions, type DroidToolResult, type EnvironmentResolver, type ExecCoreDeps, ExecToolInfo, ExecuteRewindRequestParams, ExecuteRewindResponseSchema, type FactoryPathResolver, ForkSessionRequestParams, ForkSessionRequestParamsSchema, ForkSessionResponseSchema, GetContextStatsResponseSchema, GetContextStatsResult, GetRewindInfoRequestParams, GetRewindInfoResponseSchema, GetRewindInfoResult, HttpMcpConfig, InProcessDaemonClientTransport, InProcessDaemonClientTransportOptions, InitializeSessionRequestParams, InitializeSessionResponse, IpcDaemonClientTransport, ListMcpRegistryResponseSchema, ListMcpServersResponseSchema, ListMcpServersResult, ListMcpToolsResponseSchema, ListModelsOptions, ListSessionsOptions, ListSkillsRequestParams, ListSkillsResponseSchema, ListSkillsResult, type ListToolsOptions, ListToolsRequestParams, ListToolsResponse, LoadSessionRequestParams, LoadSessionResponse, type Logger, type ManagedProcess, ManagedProcessImpl, McpServerConfig, McpToolInfo, MessageOptions, type Metrics, ModelInfo, ProcessTransport, ProcessTransportOptions, type ProcessTransportSpawnExtensions, type ProcessTransportSpawnOptions, ReasoningEffort, RemoveMcpServerRequestParams, RemoveMcpServerResponseSchema, RemoveMcpServerResult, RenameSessionRequestParams$1 as RenameSessionRequestParams, RenameSessionResponseSchema, RequestPermissionHandlerResult, type ResolvedDroidCommand, type ResumeSessionOptions, type RunOptions, type RuntimeSettingsAuthority, SdkMcpServer, type SdkMcpServerOptions, SessionCompactionOutcome, SessionMetadata, SessionRewindOutcome, SessionSettings, SessionSource, SessionTag, SetSkillDisabledRequestParams, SetSkillDisabledResponseSchema, SetSkillDisabledResult, SettingsLevel, type SpawnWithRetryOptions, StringFramedDroidClientTransport, SubmitBugReportResponseSchema, SubmitMcpAuthCodeRequestParamsSchema, SubmitMcpAuthCodeResponseSchema, SystemPromptConfig, ToggleMcpServerRequestParams, ToggleMcpServerResponseSchema, ToggleMcpServerResult, ToggleMcpToolResponseSchema, ToolConfirmationOutcome, type ToolInfo, type ToolInfoWithSchemas, ToolSelectionOverrides, type Tracing, TransportDirection, UpdateSessionSettingsRequestParams, UpdateSessionSettingsResult, WINDOWS_JOB_OBJECT_ERROR_MARKER, __resetTransportLoggerForTests, createSdkMcpServer, createSession, isTransportLoggingEnabled, listModels, listSessions, logTransportMessage, noopLogger, resolveExecCoreDeps, resumeSession, run, spawnWithWindowsJobObjectRetry, tool, withJsonRpcCodec };
|
|
938
|
+
export { AddMcpServerRequestParams, AddMcpServerResponseSchema, AddMcpServerResult, AuthenticateMcpServerRequestParams, AuthenticateMcpServerResponseSchema, AuthenticateMcpServerResult, AutonomyLevel, CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC, CancelMcpAuthResponseSchema, ClearMcpAuthResponseSchema, type CommandResolver, CompactSessionRequestParams, CompactSessionResponseSchema, type CreateSessionOptions, DaemonClientTransport, DaemonClientTransportEvents, DaemonIpcMessageChannel, DroidClient, DroidClientEvent, DroidClientOptions, DroidClientTransport, type DroidEventMap, type DroidEventType, DroidInteractionMode, type DroidMcpServerConfig, DroidObservability, type DroidProcessConfig, DroidProcessManager, type DroidProcessManagerOptions, DroidProcessMode, type DroidResult, DroidResultMessage, DroidSession, type DroidSessionUpdateSettingsOptions, DroidStreamEvent, DroidStreamMessage, type DroidTool, type DroidToolOptions, type DroidToolResult, type EnvironmentResolver, type ExecCoreDeps, ExecToolInfo, ExecuteRewindRequestParams, ExecuteRewindResponseSchema, type FactoryPathResolver, ForkSessionRequestParams, ForkSessionRequestParamsSchema, ForkSessionResponseSchema, GetContextStatsResponseSchema, GetContextStatsResult, GetRewindInfoRequestParams, GetRewindInfoResponseSchema, GetRewindInfoResult, HttpMcpConfig, InProcessDaemonClientTransport, InProcessDaemonClientTransportOptions, InitializeSessionRequestParams, InitializeSessionResponse, IpcDaemonClientTransport, ListMcpRegistryResponseSchema, ListMcpServersResponseSchema, ListMcpServersResult, ListMcpToolsResponseSchema, ListModelsOptions, ListSessionsOptions, ListSkillsRequestParams, ListSkillsResponseSchema, ListSkillsResult, type ListToolsOptions, ListToolsRequestParams, ListToolsResponse, LoadSessionRequestParams, LoadSessionResponse, type Logger, type ManagedProcess, ManagedProcessImpl, McpServerConfig, McpToolInfo, MessageOptions, type Metrics, ModelInfo, ProcessTransport, ProcessTransportOptions, type ProcessTransportSpawnExtensions, type ProcessTransportSpawnOptions, ReasoningEffort, RemoveMcpServerRequestParams, RemoveMcpServerResponseSchema, RemoveMcpServerResult, RenameSessionRequestParams$1 as RenameSessionRequestParams, RenameSessionResponseSchema, RequestPermissionHandlerResult, type ResolvedDroidCommand, type ResumeSessionOptions, type RunOptions, type RuntimeSettingsAuthority, SdkMcpServer, type SdkMcpServerOptions, SessionCompactionOutcome, SessionMetadata, SessionRewindOutcome, SessionSettings, SessionSource, SessionTag, SetSkillDisabledRequestParams, SetSkillDisabledResponseSchema, SetSkillDisabledResult, SettingsLevel, type SpawnWithRetryOptions, StringFramedDroidClientTransport, SubmitBugReportResponseSchema, SubmitMcpAuthCodeRequestParamsSchema, SubmitMcpAuthCodeResponseSchema, SystemPromptConfig, ToggleMcpServerRequestParams, ToggleMcpServerResponseSchema, ToggleMcpServerResult, ToggleMcpToolResponseSchema, ToolConfirmationOutcome, type ToolInfo, type ToolInfoWithSchemas, ToolSelectionOverrides, type Tracing, TransportDirection, UpdateSessionSettingsRequestParams, UpdateSessionSettingsResult, WINDOWS_JOB_OBJECT_ERROR_MARKER, __resetTransportLoggerForTests, createSdkMcpServer, createSession, isDroidConnectionEnded, isTransportLoggingEnabled, listModels, listSessions, logTransportMessage, noopLogger, resolveExecCoreDeps, resumeSession, run, spawnWithWindowsJobObjectRetry, tool, withJsonRpcCodec };
|