@factory/droid-sdk 0.8.0 → 0.9.1

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/dist/node.js CHANGED
@@ -441,7 +441,11 @@
441
441
 
442
442
 
443
443
 
444
- var _chunk4G2RKM2Hjs = require('./chunk-4G2RKM2H.js');
444
+
445
+
446
+
447
+
448
+ var _chunkYSKO6SPTjs = require('./chunk-YSKO6SPT.js');
445
449
 
446
450
  // src/exec-core/client.ts
447
451
  var _events = require('events'); var _events2 = _interopRequireDefault(_events);
@@ -776,11 +780,11 @@ function resolveExecCoreDeps(observability, fallback = defaultExecCoreDeps) {
776
780
 
777
781
  // src/exec-core/client.ts
778
782
  function getResponseId(response) {
779
- const parsed = _chunk4G2RKM2Hjs.JsonRpcBaseResponseSchema.safeParse(response);
783
+ const parsed = _chunkYSKO6SPTjs.JsonRpcBaseResponseSchema.safeParse(response);
780
784
  return parsed.success ? parsed.data.id : void 0;
781
785
  }
782
- var JsonRpcEnvelopePeekSchema = _chunk4G2RKM2Hjs.JsonRpcEnvelopeSchema.partial().extend({
783
- type: _zod.z.nativeEnum(_chunk4G2RKM2Hjs.JsonRpcMessageType).optional(),
786
+ var JsonRpcEnvelopePeekSchema = _chunkYSKO6SPTjs.JsonRpcEnvelopeSchema.partial().extend({
787
+ type: _zod.z.nativeEnum(_chunkYSKO6SPTjs.JsonRpcMessageType).optional(),
784
788
  method: _zod.z.string().optional(),
785
789
  id: _zod.z.string().nullable().optional()
786
790
  }).passthrough();
@@ -791,8 +795,8 @@ function inspectJsonRpcEnvelope2(message) {
791
795
  }
792
796
  const envelope = result.data;
793
797
  return {
794
- protocolVersionMismatch: envelope.factoryProtocolVersion !== void 0 && envelope.factoryProtocolVersion !== _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION ? {
795
- localFactoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
798
+ protocolVersionMismatch: envelope.factoryProtocolVersion !== void 0 && envelope.factoryProtocolVersion !== _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION ? {
799
+ localFactoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
796
800
  peerFactoryProtocolVersion: envelope.factoryProtocolVersion,
797
801
  messageType: envelope.type,
798
802
  method: envelope.method,
@@ -821,6 +825,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
821
825
 
822
826
 
823
827
 
828
+
824
829
  constructor(options, deps = defaultExecCoreDeps) {
825
830
  super();_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);;
826
831
  this.transport = options.transport;
@@ -830,6 +835,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
830
835
  this.requestTimeout = _nullishCoalesce(options.requestTimeout, () => ( DEFAULT_REQUEST_TIMEOUT2));
831
836
  this.sessionInitTimeout = _nullishCoalesce(options.sessionInitTimeout, () => ( SESSION_INIT_TIMEOUT2));
832
837
  this.onRequestSettled = options.onRequestSettled;
838
+ this.getRequestAttribution = options.getRequestAttribution;
833
839
  this.transport.onMessage((message) => {
834
840
  void this.handleMessage(message).catch((error) => {
835
841
  const err = error instanceof Error ? error : new Error(String(error));
@@ -843,7 +849,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
843
849
  });
844
850
  this.transport.onError((error) => {
845
851
  const err = error instanceof Error ? error : new Error(String(error));
846
- const expectedCleanExit = err instanceof _chunk4G2RKM2Hjs.ProcessExitError && err.exitCode === 0 && this.completedTurnObserved;
852
+ const expectedCleanExit = err instanceof _chunkYSKO6SPTjs.ProcessExitError && err.exitCode === 0 && this.completedTurnObserved;
847
853
  if (expectedCleanExit) {
848
854
  this.logger.info("[DroidClient] Process exited after completed turn", {
849
855
  exitCode: err.exitCode
@@ -871,14 +877,14 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
871
877
  return this.transport.isConnected;
872
878
  }
873
879
  requireMcpOAuthOptOutSupport() {
874
- if (this.peerProtocolVersion === _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION) {
880
+ if (this.peerProtocolVersion === _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION) {
875
881
  return;
876
882
  }
877
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)(
883
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)(
878
884
  "MCP OAuth opt-out requires a confirmed matching Droid protocol version. The connected Droid reported an incompatible protocol version and cannot disable OAuth for MCP servers.",
879
885
  {
880
886
  value: {
881
- localFactoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
887
+ localFactoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
882
888
  peerFactoryProtocolVersion: this.peerProtocolVersion
883
889
  }
884
890
  }
@@ -891,10 +897,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
891
897
  }
892
898
  async initializeSession(params) {
893
899
  const request = {
894
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
895
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
900
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
901
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
896
902
  type: "request",
897
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
903
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
898
904
  id: _uuid.v4.call(void 0, ),
899
905
  method: "droid.initialize_session" /* INITIALIZE_SESSION */,
900
906
  params
@@ -903,10 +909,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
903
909
  request,
904
910
  this.sessionInitTimeout
905
911
  );
906
- const response = _chunk4G2RKM2Hjs.InitializeSessionResponseSchema.parse(rawResponse);
912
+ const response = _chunkYSKO6SPTjs.InitializeSessionResponseSchema.parse(rawResponse);
907
913
  this.peerProtocolVersion = response.factoryProtocolVersion;
908
914
  if (response.error) {
909
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Initialize session request failed", {
915
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Initialize session request failed", {
910
916
  requestId: request.id,
911
917
  code: response.error.code,
912
918
  message: response.error.message,
@@ -914,16 +920,16 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
914
920
  });
915
921
  }
916
922
  this.validateMcpServersProtocolSupport(params.mcpServers);
917
- const result = _chunk4G2RKM2Hjs.InitializeSessionResultSchema.parse(response.result);
923
+ const result = _chunkYSKO6SPTjs.InitializeSessionResultSchema.parse(response.result);
918
924
  this.currentSessionId = result.sessionId;
919
925
  return response;
920
926
  }
921
927
  async loadSession(params) {
922
928
  const request = {
923
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
924
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
929
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
930
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
925
931
  type: "request",
926
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
932
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
927
933
  id: _uuid.v4.call(void 0, ),
928
934
  method: "droid.load_session" /* LOAD_SESSION */,
929
935
  params
@@ -932,19 +938,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
932
938
  request,
933
939
  this.sessionInitTimeout
934
940
  );
935
- const response = _chunk4G2RKM2Hjs.LoadSessionResponseSchema.parse(rawResponse);
941
+ const response = _chunkYSKO6SPTjs.LoadSessionResponseSchema.parse(rawResponse);
936
942
  this.peerProtocolVersion = response.factoryProtocolVersion;
937
943
  if (response.error) {
938
944
  const isSessionNotFound = response.error.code === -32004 /* ENTITY_NOT_FOUND */;
939
945
  if (isSessionNotFound) {
940
- throw new (0, _chunk4G2RKM2Hjs.SessionNotFoundError)(params.sessionId, {
946
+ throw new (0, _chunkYSKO6SPTjs.SessionNotFoundError)(params.sessionId, {
941
947
  requestId: request.id,
942
948
  code: response.error.code,
943
949
  message: response.error.message,
944
950
  data: response.error.data
945
951
  });
946
952
  }
947
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Load session request failed", {
953
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Load session request failed", {
948
954
  requestId: request.id,
949
955
  code: response.error.code,
950
956
  message: response.error.message,
@@ -957,35 +963,27 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
957
963
  }
958
964
  async addUserMessage(params, requestId) {
959
965
  if (!this.currentSessionId) {
960
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
966
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
961
967
  "No active session. Call initializeSession or loadSession first."
962
968
  );
963
969
  }
964
970
  this.completedTurnObserved = false;
965
971
  const request = {
966
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
967
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
972
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
973
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
968
974
  type: "request",
969
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
975
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
970
976
  id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
971
977
  method: "droid.add_user_message" /* ADD_USER_MESSAGE */,
972
978
  params: {
973
- ...params.messageId && { messageId: params.messageId },
974
- text: params.text,
975
- images: params.images,
976
- imagePaths: params.imagePaths,
977
- files: params.files,
978
- outputFormat: params.outputFormat,
979
- ...params.skipAgentLoop && { skipAgentLoop: params.skipAgentLoop },
980
- queuePlacement: _nullishCoalesce(params.queuePlacement, () => ( "end_of_turn")) /* EndOfTurn */,
981
- ...params.role && { role: params.role },
982
- ...params.visibility && { visibility: params.visibility }
979
+ ...params,
980
+ queuePlacement: _nullishCoalesce(params.queuePlacement, () => ( "end_of_turn")) /* EndOfTurn */
983
981
  }
984
982
  };
985
983
  const rawResponse = await this.sendRequest(request);
986
- const response = _chunk4G2RKM2Hjs.AddUserMessageResponseSchema.parse(rawResponse);
984
+ const response = _chunkYSKO6SPTjs.AddUserMessageResponseSchema.parse(rawResponse);
987
985
  if (response.error) {
988
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Add user message request failed", {
986
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Add user message request failed", {
989
987
  requestId: request.id,
990
988
  code: response.error.code,
991
989
  message: response.error.message,
@@ -1002,23 +1000,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1002
1000
  */
1003
1001
  async appendMessages(params, requestId) {
1004
1002
  if (!this.currentSessionId) {
1005
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1003
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1006
1004
  "No active session. Call initializeSession or loadSession first."
1007
1005
  );
1008
1006
  }
1009
1007
  const request = {
1010
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1011
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1008
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1009
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1012
1010
  type: "request",
1013
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1011
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1014
1012
  id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
1015
1013
  method: "droid.append_messages" /* APPEND_MESSAGES */,
1016
1014
  params
1017
1015
  };
1018
1016
  const rawResponse = await this.sendRequest(request);
1019
- const response = _chunk4G2RKM2Hjs.AppendMessagesResponseSchema.parse(rawResponse);
1017
+ const response = _chunkYSKO6SPTjs.AppendMessagesResponseSchema.parse(rawResponse);
1020
1018
  if (response.error) {
1021
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Append messages request failed", {
1019
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Append messages request failed", {
1022
1020
  requestId: request.id,
1023
1021
  code: response.error.code,
1024
1022
  message: response.error.message,
@@ -1029,23 +1027,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1029
1027
  }
1030
1028
  async resolveQueuedUserMessage(params) {
1031
1029
  if (!this.currentSessionId) {
1032
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1030
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1033
1031
  "No active session. Call initializeSession or loadSession first."
1034
1032
  );
1035
1033
  }
1036
1034
  const request = {
1037
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1038
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1035
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1036
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1039
1037
  type: "request",
1040
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1038
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1041
1039
  id: _uuid.v4.call(void 0, ),
1042
1040
  method: "droid.resolve_queued_user_message" /* RESOLVE_QUEUED_USER_MESSAGE */,
1043
1041
  params
1044
1042
  };
1045
1043
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1046
- const response = _chunk4G2RKM2Hjs.ResolveQueuedUserMessageResponseSchema.parse(rawResponse);
1044
+ const response = _chunkYSKO6SPTjs.ResolveQueuedUserMessageResponseSchema.parse(rawResponse);
1047
1045
  if (response.error) {
1048
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Resolve queued user message request failed", {
1046
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Resolve queued user message request failed", {
1049
1047
  requestId: request.id,
1050
1048
  code: response.error.code,
1051
1049
  message: response.error.message,
@@ -1056,23 +1054,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1056
1054
  }
1057
1055
  async interruptSession(params = {}) {
1058
1056
  if (!this.currentSessionId) {
1059
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1057
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1060
1058
  "No active session. Call initializeSession or loadSession first."
1061
1059
  );
1062
1060
  }
1063
1061
  const request = {
1064
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1065
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1062
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1063
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1066
1064
  type: "request",
1067
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1065
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1068
1066
  id: _uuid.v4.call(void 0, ),
1069
1067
  method: "droid.interrupt_session" /* INTERRUPT_SESSION */,
1070
1068
  params
1071
1069
  };
1072
1070
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1073
- const response = _chunk4G2RKM2Hjs.InterruptSessionResponseSchema.parse(rawResponse);
1071
+ const response = _chunkYSKO6SPTjs.InterruptSessionResponseSchema.parse(rawResponse);
1074
1072
  if (response.error) {
1075
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Interrupt session request failed", {
1073
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Interrupt session request failed", {
1076
1074
  requestId: request.id,
1077
1075
  code: response.error.code,
1078
1076
  message: response.error.message,
@@ -1083,23 +1081,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1083
1081
  }
1084
1082
  async closeSession(params = {}) {
1085
1083
  if (!this.currentSessionId) {
1086
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1084
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1087
1085
  "No active session. Call initializeSession or loadSession first."
1088
1086
  );
1089
1087
  }
1090
1088
  const request = {
1091
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1092
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1089
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1090
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1093
1091
  type: "request",
1094
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1092
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1095
1093
  id: _uuid.v4.call(void 0, ),
1096
1094
  method: "droid.close_session" /* CLOSE_SESSION */,
1097
1095
  params
1098
1096
  };
1099
1097
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1100
- const response = _chunk4G2RKM2Hjs.CloseSessionResponseSchema.parse(rawResponse);
1098
+ const response = _chunkYSKO6SPTjs.CloseSessionResponseSchema.parse(rawResponse);
1101
1099
  if (response.error) {
1102
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Close session request failed", {
1100
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Close session request failed", {
1103
1101
  requestId: request.id,
1104
1102
  code: response.error.code,
1105
1103
  message: response.error.message,
@@ -1110,23 +1108,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1110
1108
  }
1111
1109
  async killWorkerSession(params) {
1112
1110
  if (!this.currentSessionId) {
1113
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1111
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1114
1112
  "No active session. Call initializeSession or loadSession first."
1115
1113
  );
1116
1114
  }
1117
1115
  const request = {
1118
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1119
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1116
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1117
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1120
1118
  type: "request",
1121
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1119
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1122
1120
  id: _uuid.v4.call(void 0, ),
1123
1121
  method: "droid.kill_worker_session" /* KILL_WORKER_SESSION */,
1124
1122
  params
1125
1123
  };
1126
1124
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1127
- const response = _chunk4G2RKM2Hjs.KillWorkerSessionResponseSchema.parse(rawResponse);
1125
+ const response = _chunkYSKO6SPTjs.KillWorkerSessionResponseSchema.parse(rawResponse);
1128
1126
  if (response.error) {
1129
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Kill worker session request failed", {
1127
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Kill worker session request failed", {
1130
1128
  requestId: request.id,
1131
1129
  code: response.error.code,
1132
1130
  message: response.error.message,
@@ -1137,23 +1135,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1137
1135
  }
1138
1136
  async updateSessionSettings(params, requestId) {
1139
1137
  if (!this.currentSessionId) {
1140
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1138
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1141
1139
  "No active session. Call initializeSession or loadSession first."
1142
1140
  );
1143
1141
  }
1144
1142
  const request = {
1145
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1146
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1143
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1144
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1147
1145
  type: "request",
1148
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1146
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1149
1147
  id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
1150
1148
  method: "droid.update_session_settings" /* UPDATE_SESSION_SETTINGS */,
1151
1149
  params
1152
1150
  };
1153
1151
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1154
- const responseParsed = _chunk4G2RKM2Hjs.UpdateSessionSettingsResponseSchema.safeParse(rawResponse);
1152
+ const responseParsed = _chunkYSKO6SPTjs.UpdateSessionSettingsResponseSchema.safeParse(rawResponse);
1155
1153
  if (!responseParsed.success) {
1156
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)(
1154
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)(
1157
1155
  "Invalid update session settings response format",
1158
1156
  {
1159
1157
  requestId: request.id,
@@ -1165,7 +1163,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1165
1163
  }
1166
1164
  const response = responseParsed.data;
1167
1165
  if (response.error) {
1168
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Update session settings request failed", {
1166
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Update session settings request failed", {
1169
1167
  requestId: request.id,
1170
1168
  code: response.error.code,
1171
1169
  message: response.error.message,
@@ -1176,23 +1174,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1176
1174
  }
1177
1175
  async changeWorkingDirectory(params) {
1178
1176
  if (!this.currentSessionId) {
1179
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1177
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1180
1178
  "No active session. Call initializeSession or loadSession first."
1181
1179
  );
1182
1180
  }
1183
1181
  const request = {
1184
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1185
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1182
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1183
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1186
1184
  type: "request",
1187
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1185
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1188
1186
  id: _uuid.v4.call(void 0, ),
1189
1187
  method: "droid.change_working_directory" /* CHANGE_WORKING_DIRECTORY */,
1190
1188
  params
1191
1189
  };
1192
1190
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1193
- const response = _chunk4G2RKM2Hjs.ChangeWorkingDirectoryResponseSchema.parse(rawResponse);
1191
+ const response = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResponseSchema.parse(rawResponse);
1194
1192
  if (response.error) {
1195
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Change working directory request failed", {
1193
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Change working directory request failed", {
1196
1194
  requestId: request.id,
1197
1195
  code: response.error.code,
1198
1196
  message: response.error.message,
@@ -1203,15 +1201,15 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1203
1201
  }
1204
1202
  async toggleMcpServer(params) {
1205
1203
  if (!this.currentSessionId) {
1206
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1204
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1207
1205
  "No active session. Call initializeSession or loadSession first."
1208
1206
  );
1209
1207
  }
1210
1208
  const request = {
1211
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1212
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1209
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1210
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1213
1211
  type: "request",
1214
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1212
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1215
1213
  id: _uuid.v4.call(void 0, ),
1216
1214
  method: "droid.toggle_mcp_server" /* TOGGLE_MCP_SERVER */,
1217
1215
  params: {
@@ -1221,20 +1219,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1221
1219
  }
1222
1220
  };
1223
1221
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1224
- const response = _chunk4G2RKM2Hjs.ToggleMcpServerResponseSchema.parse(rawResponse);
1222
+ const response = _chunkYSKO6SPTjs.ToggleMcpServerResponseSchema.parse(rawResponse);
1225
1223
  return response;
1226
1224
  }
1227
1225
  async authenticateMcpServer(params) {
1228
1226
  if (!this.currentSessionId) {
1229
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1227
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1230
1228
  "No active session. Call initializeSession or loadSession first."
1231
1229
  );
1232
1230
  }
1233
1231
  const request = {
1234
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1235
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1232
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1233
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1236
1234
  type: "request",
1237
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1235
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1238
1236
  id: _uuid.v4.call(void 0, ),
1239
1237
  method: "droid.authenticate_mcp_server" /* AUTHENTICATE_MCP_SERVER */,
1240
1238
  params: {
@@ -1242,20 +1240,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1242
1240
  }
1243
1241
  };
1244
1242
  const rawResponse = await this.sendRequest(request, MCP_AUTH_TIMEOUT2);
1245
- const response = _chunk4G2RKM2Hjs.AuthenticateMcpServerResponseSchema.parse(rawResponse);
1243
+ const response = _chunkYSKO6SPTjs.AuthenticateMcpServerResponseSchema.parse(rawResponse);
1246
1244
  return response;
1247
1245
  }
1248
1246
  async cancelMcpAuth(params) {
1249
1247
  if (!this.currentSessionId) {
1250
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1248
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1251
1249
  "No active session. Call initializeSession or loadSession first."
1252
1250
  );
1253
1251
  }
1254
1252
  const request = {
1255
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1256
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1253
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1254
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1257
1255
  type: "request",
1258
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1256
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1259
1257
  id: _uuid.v4.call(void 0, ),
1260
1258
  method: "droid.cancel_mcp_auth" /* CANCEL_MCP_AUTH */,
1261
1259
  params: {
@@ -1263,20 +1261,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1263
1261
  }
1264
1262
  };
1265
1263
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1266
- const response = _chunk4G2RKM2Hjs.CancelMcpAuthResponseSchema.parse(rawResponse);
1264
+ const response = _chunkYSKO6SPTjs.CancelMcpAuthResponseSchema.parse(rawResponse);
1267
1265
  return response;
1268
1266
  }
1269
1267
  async clearMcpAuth(params) {
1270
1268
  if (!this.currentSessionId) {
1271
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1269
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1272
1270
  "No active session. Call initializeSession or loadSession first."
1273
1271
  );
1274
1272
  }
1275
1273
  const request = {
1276
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1277
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1274
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1275
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1278
1276
  type: "request",
1279
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1277
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1280
1278
  id: _uuid.v4.call(void 0, ),
1281
1279
  method: "droid.clear_mcp_auth" /* CLEAR_MCP_AUTH */,
1282
1280
  params: {
@@ -1284,12 +1282,12 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1284
1282
  }
1285
1283
  };
1286
1284
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1287
- const response = _chunk4G2RKM2Hjs.ClearMcpAuthResponseSchema.parse(rawResponse);
1285
+ const response = _chunkYSKO6SPTjs.ClearMcpAuthResponseSchema.parse(rawResponse);
1288
1286
  return response;
1289
1287
  }
1290
1288
  async addMcpServer(params) {
1291
1289
  if (!this.currentSessionId) {
1292
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1290
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1293
1291
  "No active session. Call initializeSession or loadSession first."
1294
1292
  );
1295
1293
  }
@@ -1297,302 +1295,302 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1297
1295
  this.requireMcpOAuthOptOutSupport();
1298
1296
  }
1299
1297
  const request = {
1300
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1301
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1298
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1299
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1302
1300
  type: "request",
1303
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1301
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1304
1302
  id: _uuid.v4.call(void 0, ),
1305
1303
  method: "droid.add_mcp_server" /* ADD_MCP_SERVER */,
1306
1304
  params
1307
1305
  };
1308
1306
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1309
- const response = _chunk4G2RKM2Hjs.AddMcpServerResponseSchema.parse(rawResponse);
1307
+ const response = _chunkYSKO6SPTjs.AddMcpServerResponseSchema.parse(rawResponse);
1310
1308
  return response;
1311
1309
  }
1312
1310
  async removeMcpServer(params) {
1313
1311
  if (!this.currentSessionId) {
1314
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1312
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1315
1313
  "No active session. Call initializeSession or loadSession first."
1316
1314
  );
1317
1315
  }
1318
1316
  const request = {
1319
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1320
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1317
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1318
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1321
1319
  type: "request",
1322
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1320
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1323
1321
  id: _uuid.v4.call(void 0, ),
1324
1322
  method: "droid.remove_mcp_server" /* REMOVE_MCP_SERVER */,
1325
1323
  params
1326
1324
  };
1327
1325
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1328
- const response = _chunk4G2RKM2Hjs.RemoveMcpServerResponseSchema.parse(rawResponse);
1326
+ const response = _chunkYSKO6SPTjs.RemoveMcpServerResponseSchema.parse(rawResponse);
1329
1327
  return response;
1330
1328
  }
1331
1329
  async listModels(params = {}) {
1332
1330
  const request = {
1333
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1334
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1331
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1332
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1335
1333
  type: "request",
1336
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1334
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1337
1335
  id: _uuid.v4.call(void 0, ),
1338
1336
  method: "droid.list_models" /* LIST_MODELS */,
1339
1337
  params
1340
1338
  };
1341
1339
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1342
- return _chunk4G2RKM2Hjs.ListModelsResponseSchema.parse(rawResponse);
1340
+ return _chunkYSKO6SPTjs.ListModelsResponseSchema.parse(rawResponse);
1343
1341
  }
1344
1342
  async listMcpRegistry() {
1345
1343
  if (!this.currentSessionId) {
1346
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1344
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1347
1345
  "No active session. Call initializeSession or loadSession first."
1348
1346
  );
1349
1347
  }
1350
1348
  const request = {
1351
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1352
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1349
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1350
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1353
1351
  type: "request",
1354
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1352
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1355
1353
  id: _uuid.v4.call(void 0, ),
1356
1354
  method: "droid.list_mcp_registry" /* LIST_MCP_REGISTRY */,
1357
1355
  params: {}
1358
1356
  };
1359
1357
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1360
- const response = _chunk4G2RKM2Hjs.ListMcpRegistryResponseSchema.parse(rawResponse);
1358
+ const response = _chunkYSKO6SPTjs.ListMcpRegistryResponseSchema.parse(rawResponse);
1361
1359
  return response;
1362
1360
  }
1363
1361
  async listMcpTools() {
1364
1362
  if (!this.currentSessionId) {
1365
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1363
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1366
1364
  "No active session. Call initializeSession or loadSession first."
1367
1365
  );
1368
1366
  }
1369
1367
  const request = {
1370
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1371
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1368
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1369
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1372
1370
  type: "request",
1373
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1371
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1374
1372
  id: _uuid.v4.call(void 0, ),
1375
1373
  method: "droid.list_mcp_tools" /* LIST_MCP_TOOLS */,
1376
1374
  params: {}
1377
1375
  };
1378
1376
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1379
- const response = _chunk4G2RKM2Hjs.ListMcpToolsResponseSchema.parse(rawResponse);
1377
+ const response = _chunkYSKO6SPTjs.ListMcpToolsResponseSchema.parse(rawResponse);
1380
1378
  return response;
1381
1379
  }
1382
1380
  async listTools(params = {}) {
1383
1381
  const request = {
1384
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1385
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1382
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1383
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1386
1384
  type: "request",
1387
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1385
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1388
1386
  id: _uuid.v4.call(void 0, ),
1389
1387
  method: "droid.list_tools" /* LIST_TOOLS */,
1390
1388
  params
1391
1389
  };
1392
1390
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1393
- const response = _chunk4G2RKM2Hjs.ListToolsResponseSchema.parse(rawResponse);
1391
+ const response = _chunkYSKO6SPTjs.ListToolsResponseSchema.parse(rawResponse);
1394
1392
  return response;
1395
1393
  }
1396
1394
  async listMcpServers() {
1397
1395
  if (!this.currentSessionId) {
1398
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1396
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1399
1397
  "No active session. Call initializeSession or loadSession first."
1400
1398
  );
1401
1399
  }
1402
1400
  const request = {
1403
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1404
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1401
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1402
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1405
1403
  type: "request",
1406
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1404
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1407
1405
  id: _uuid.v4.call(void 0, ),
1408
1406
  method: "droid.list_mcp_servers" /* LIST_MCP_SERVERS */,
1409
1407
  params: {}
1410
1408
  };
1411
1409
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1412
- const response = _chunk4G2RKM2Hjs.ListMcpServersResponseSchema.parse(rawResponse);
1410
+ const response = _chunkYSKO6SPTjs.ListMcpServersResponseSchema.parse(rawResponse);
1413
1411
  return response;
1414
1412
  }
1415
1413
  async toggleMcpTool(serverName, toolName, enabled) {
1416
1414
  if (!this.currentSessionId) {
1417
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1415
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1418
1416
  "No active session. Call initializeSession or loadSession first."
1419
1417
  );
1420
1418
  }
1421
1419
  const request = {
1422
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1423
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1420
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1421
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1424
1422
  type: "request",
1425
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1423
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1426
1424
  id: _uuid.v4.call(void 0, ),
1427
1425
  method: "droid.toggle_mcp_tool" /* TOGGLE_MCP_TOOL */,
1428
1426
  params: { serverName, toolName, enabled }
1429
1427
  };
1430
1428
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1431
- const response = _chunk4G2RKM2Hjs.ToggleMcpToolResponseSchema.parse(rawResponse);
1429
+ const response = _chunkYSKO6SPTjs.ToggleMcpToolResponseSchema.parse(rawResponse);
1432
1430
  return response;
1433
1431
  }
1434
1432
  async submitMcpAuthCode(params) {
1435
1433
  if (!this.currentSessionId) {
1436
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1434
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1437
1435
  "No active session. Call initializeSession or loadSession first."
1438
1436
  );
1439
1437
  }
1440
1438
  const request = {
1441
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1442
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1439
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1440
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1443
1441
  type: "request",
1444
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1442
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1445
1443
  id: _uuid.v4.call(void 0, ),
1446
1444
  method: "droid.submit_mcp_auth_code" /* SUBMIT_MCP_AUTH_CODE */,
1447
1445
  params
1448
1446
  };
1449
1447
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1450
- const response = _chunk4G2RKM2Hjs.SubmitMcpAuthCodeResponseSchema.parse(rawResponse);
1448
+ const response = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResponseSchema.parse(rawResponse);
1451
1449
  return response;
1452
1450
  }
1453
1451
  async submitMcpAuthError(params) {
1454
1452
  if (!this.currentSessionId) {
1455
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1453
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1456
1454
  "No active session. Call initializeSession or loadSession first."
1457
1455
  );
1458
1456
  }
1459
1457
  const request = {
1460
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1461
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1458
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1459
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1462
1460
  type: "request",
1463
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1461
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1464
1462
  id: _uuid.v4.call(void 0, ),
1465
1463
  method: "droid.submit_mcp_auth_error" /* SUBMIT_MCP_AUTH_ERROR */,
1466
1464
  params
1467
1465
  };
1468
1466
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1469
- const response = _chunk4G2RKM2Hjs.SubmitMcpAuthErrorResponseSchema.parse(rawResponse);
1467
+ const response = _chunkYSKO6SPTjs.SubmitMcpAuthErrorResponseSchema.parse(rawResponse);
1470
1468
  return response;
1471
1469
  }
1472
1470
  async listSkills() {
1473
1471
  if (!this.currentSessionId) {
1474
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1472
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1475
1473
  "No active session. Call initializeSession or loadSession first."
1476
1474
  );
1477
1475
  }
1478
1476
  const request = {
1479
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1480
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1477
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1478
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1481
1479
  type: "request",
1482
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1480
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1483
1481
  id: _uuid.v4.call(void 0, ),
1484
1482
  method: "droid.list_skills" /* LIST_SKILLS */,
1485
1483
  params: {}
1486
1484
  };
1487
1485
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1488
- const response = _chunk4G2RKM2Hjs.ListSkillsResponseSchema.parse(rawResponse);
1486
+ const response = _chunkYSKO6SPTjs.ListSkillsResponseSchema.parse(rawResponse);
1489
1487
  return response;
1490
1488
  }
1491
1489
  async setSkillDisabled(skillName, disabled, settingsLevel) {
1492
1490
  if (!this.currentSessionId) {
1493
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1491
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1494
1492
  "No active session. Call initializeSession or loadSession first."
1495
1493
  );
1496
1494
  }
1497
1495
  const request = {
1498
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1499
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1496
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1497
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1500
1498
  type: "request",
1501
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1499
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1502
1500
  id: _uuid.v4.call(void 0, ),
1503
1501
  method: "droid.set_skill_disabled" /* SET_SKILL_DISABLED */,
1504
1502
  params: { skillName, disabled, settingsLevel }
1505
1503
  };
1506
1504
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1507
- return _chunk4G2RKM2Hjs.SetSkillDisabledResponseSchema.parse(rawResponse);
1505
+ return _chunkYSKO6SPTjs.SetSkillDisabledResponseSchema.parse(rawResponse);
1508
1506
  }
1509
1507
  async listCommands() {
1510
1508
  if (!this.currentSessionId) {
1511
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1509
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1512
1510
  "No active session. Call initializeSession or loadSession first."
1513
1511
  );
1514
1512
  }
1515
1513
  const request = {
1516
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1517
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1514
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1515
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1518
1516
  type: "request",
1519
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1517
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1520
1518
  id: _uuid.v4.call(void 0, ),
1521
1519
  method: "droid.list_commands" /* LIST_COMMANDS */,
1522
1520
  params: {}
1523
1521
  };
1524
1522
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1525
- const response = _chunk4G2RKM2Hjs.ListCommandsResponseSchema.parse(rawResponse);
1523
+ const response = _chunkYSKO6SPTjs.ListCommandsResponseSchema.parse(rawResponse);
1526
1524
  return response;
1527
1525
  }
1528
1526
  async getContextStats() {
1529
1527
  if (!this.currentSessionId) {
1530
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1528
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1531
1529
  "No active session. Call initializeSession or loadSession first."
1532
1530
  );
1533
1531
  }
1534
1532
  const request = {
1535
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1536
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1533
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1534
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1537
1535
  type: "request",
1538
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1536
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1539
1537
  id: _uuid.v4.call(void 0, ),
1540
1538
  method: "droid.get_context_stats" /* GET_CONTEXT_STATS */,
1541
1539
  params: {}
1542
1540
  };
1543
1541
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1544
- const response = _chunk4G2RKM2Hjs.GetContextStatsResponseSchema.parse(rawResponse);
1542
+ const response = _chunkYSKO6SPTjs.GetContextStatsResponseSchema.parse(rawResponse);
1545
1543
  return response;
1546
1544
  }
1547
1545
  async getContextBreakdown() {
1548
1546
  if (!this.currentSessionId) {
1549
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1547
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1550
1548
  "No active session. Call initializeSession or loadSession first."
1551
1549
  );
1552
1550
  }
1553
1551
  const request = {
1554
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1555
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1552
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1553
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1556
1554
  type: "request",
1557
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1555
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1558
1556
  id: _uuid.v4.call(void 0, ),
1559
1557
  method: "droid.get_context_breakdown" /* GET_CONTEXT_BREAKDOWN */,
1560
1558
  params: {}
1561
1559
  };
1562
1560
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1563
- const response = _chunk4G2RKM2Hjs.GetContextBreakdownResponseSchema.parse(rawResponse);
1561
+ const response = _chunkYSKO6SPTjs.GetContextBreakdownResponseSchema.parse(rawResponse);
1564
1562
  return response;
1565
1563
  }
1566
1564
  async submitBugReport(userComment, clientLogs, source) {
1567
1565
  if (!this.currentSessionId) {
1568
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1566
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1569
1567
  "No active session. Call initializeSession or loadSession first."
1570
1568
  );
1571
1569
  }
1572
1570
  const request = {
1573
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1574
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1571
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1572
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1575
1573
  type: "request",
1576
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1574
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1577
1575
  id: _uuid.v4.call(void 0, ),
1578
1576
  method: "droid.submit_bug_report" /* SUBMIT_BUG_REPORT */,
1579
1577
  params: { userComment, clientLogs, source }
1580
1578
  };
1581
1579
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1582
- const response = _chunk4G2RKM2Hjs.SubmitBugReportResponseSchema.parse(rawResponse);
1580
+ const response = _chunkYSKO6SPTjs.SubmitBugReportResponseSchema.parse(rawResponse);
1583
1581
  return response;
1584
1582
  }
1585
1583
  async getRewindInfo(params, timeout = this.requestTimeout) {
1586
1584
  if (!this.currentSessionId) {
1587
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1585
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1588
1586
  "No active session. Call initializeSession or loadSession first."
1589
1587
  );
1590
1588
  }
1591
1589
  const request = {
1592
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1593
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1590
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1591
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1594
1592
  type: "request",
1595
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1593
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1596
1594
  id: _uuid.v4.call(void 0, ),
1597
1595
  method: "droid.get_rewind_info" /* GET_REWIND_INFO */,
1598
1596
  params: {
@@ -1601,19 +1599,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1601
1599
  }
1602
1600
  };
1603
1601
  const rawResponse = await this.sendRequest(request, timeout);
1604
- return _chunk4G2RKM2Hjs.GetRewindInfoResponseSchema.parse(rawResponse);
1602
+ return _chunkYSKO6SPTjs.GetRewindInfoResponseSchema.parse(rawResponse);
1605
1603
  }
1606
1604
  async executeRewind(params) {
1607
1605
  if (!this.currentSessionId) {
1608
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1606
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1609
1607
  "No active session. Call initializeSession or loadSession first."
1610
1608
  );
1611
1609
  }
1612
1610
  const request = {
1613
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1614
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1611
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1612
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1615
1613
  type: "request",
1616
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1614
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1617
1615
  id: _uuid.v4.call(void 0, ),
1618
1616
  method: "droid.execute_rewind" /* EXECUTE_REWIND */,
1619
1617
  params: {
@@ -1628,19 +1626,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1628
1626
  request,
1629
1627
  this.requestTimeout * 2
1630
1628
  );
1631
- return _chunk4G2RKM2Hjs.ExecuteRewindResponseSchema.parse(rawResponse);
1629
+ return _chunkYSKO6SPTjs.ExecuteRewindResponseSchema.parse(rawResponse);
1632
1630
  }
1633
1631
  async compactSession(params) {
1634
1632
  if (!this.currentSessionId) {
1635
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1633
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1636
1634
  "No active session. Call initializeSession or loadSession first."
1637
1635
  );
1638
1636
  }
1639
1637
  const request = {
1640
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1641
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1638
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1639
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1642
1640
  type: "request",
1643
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1641
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1644
1642
  id: _uuid.v4.call(void 0, ),
1645
1643
  method: "droid.compact_session" /* COMPACT_SESSION */,
1646
1644
  params: {
@@ -1648,37 +1646,37 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1648
1646
  }
1649
1647
  };
1650
1648
  const rawResponse = await this.sendRequest(request, COMPACTION_TIMEOUT2);
1651
- return _chunk4G2RKM2Hjs.CompactSessionResponseSchema.parse(rawResponse);
1649
+ return _chunkYSKO6SPTjs.CompactSessionResponseSchema.parse(rawResponse);
1652
1650
  }
1653
1651
  async forkSession(params) {
1654
1652
  if (!this.currentSessionId) {
1655
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1653
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1656
1654
  "No active session. Call initializeSession or loadSession first."
1657
1655
  );
1658
1656
  }
1659
1657
  const request = {
1660
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1661
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1658
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1659
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1662
1660
  type: "request",
1663
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1661
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1664
1662
  id: _uuid.v4.call(void 0, ),
1665
1663
  method: "droid.fork_session" /* FORK_SESSION */,
1666
1664
  params: _nullishCoalesce(params, () => ( {}))
1667
1665
  };
1668
1666
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1669
- return _chunk4G2RKM2Hjs.ForkSessionResponseSchema.parse(rawResponse);
1667
+ return _chunkYSKO6SPTjs.ForkSessionResponseSchema.parse(rawResponse);
1670
1668
  }
1671
1669
  async renameSession(params, requestId) {
1672
1670
  if (!this.currentSessionId) {
1673
- throw new (0, _chunk4G2RKM2Hjs.SessionError)(
1671
+ throw new (0, _chunkYSKO6SPTjs.SessionError)(
1674
1672
  "No active session. Call initializeSession or loadSession first."
1675
1673
  );
1676
1674
  }
1677
1675
  const request = {
1678
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1679
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1676
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1677
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1680
1678
  type: "request",
1681
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1679
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1682
1680
  id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
1683
1681
  method: "droid.rename_session" /* RENAME_SESSION */,
1684
1682
  params: {
@@ -1686,18 +1684,18 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1686
1684
  }
1687
1685
  };
1688
1686
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1689
- return _chunk4G2RKM2Hjs.RenameSessionResponseSchema.parse(rawResponse);
1687
+ return _chunkYSKO6SPTjs.RenameSessionResponseSchema.parse(rawResponse);
1690
1688
  }
1691
1689
  async warmupCache() {
1692
1690
  const response = {
1693
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
1694
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
1691
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
1692
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
1695
1693
  type: "response",
1696
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
1694
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
1697
1695
  id: _uuid.v4.call(void 0, ),
1698
1696
  result: {}
1699
1697
  };
1700
- return _chunk4G2RKM2Hjs.WarmupCacheResponseSchema.parse(response);
1698
+ return _chunkYSKO6SPTjs.WarmupCacheResponseSchema.parse(response);
1701
1699
  }
1702
1700
  onNotification(callback, filter) {
1703
1701
  const handler = (notification) => {
@@ -1741,7 +1739,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1741
1739
  this.askUserHandlers.delete("default");
1742
1740
  }
1743
1741
  async close() {
1744
- const closeError = new (0, _chunk4G2RKM2Hjs.ConnectionError)(
1742
+ const closeError = new (0, _chunkYSKO6SPTjs.ConnectionError)(
1745
1743
  "Droid client closed: pending requests cancelled"
1746
1744
  );
1747
1745
  this.rejectAllPending(closeError);
@@ -1782,12 +1780,18 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1782
1780
  if (this.transportError) {
1783
1781
  throw this.transportError;
1784
1782
  }
1783
+ const requestAttribution = _optionalChain([this, 'access', _16 => _16.getRequestAttribution, 'optionalCall', _17 => _17()]);
1784
+ const _meta = {
1785
+ ...requestAttribution && { requestAttribution }
1786
+ };
1787
+ this.tracing.injectContext(_meta, this.tracing.getCurrentContext());
1788
+ const requestWithMeta = _meta.traceparent || _meta.requestAttribution ? { ...request, _meta } : request;
1785
1789
  const responsePromise = new Promise(
1786
1790
  (resolve2, reject) => {
1787
1791
  const timeoutId = timeout ? setTimeout(() => {
1788
1792
  this.settleRequest(request.id);
1789
1793
  reject(
1790
- new (0, _chunk4G2RKM2Hjs.TimeoutError)("Send request timed out", {
1794
+ new (0, _chunkYSKO6SPTjs.TimeoutError)("Send request timed out", {
1791
1795
  requestId: request.id,
1792
1796
  method: request.method,
1793
1797
  timeout
@@ -1802,9 +1806,6 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1802
1806
  });
1803
1807
  }
1804
1808
  );
1805
- const _meta = {};
1806
- this.tracing.injectContext(_meta, this.tracing.getCurrentContext());
1807
- const requestWithMeta = _meta.traceparent ? { ...request, _meta } : request;
1808
1809
  try {
1809
1810
  this.logger.info("[DroidClient] [daemon -> droid] sending request", {
1810
1811
  requestId: request.id,
@@ -1819,7 +1820,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1819
1820
  }
1820
1821
  this.settleRequest(request.id);
1821
1822
  pending.reject(
1822
- new (0, _chunk4G2RKM2Hjs.ProtocolError)("[daemon -> droid] Failed to send request", {
1823
+ new (0, _chunkYSKO6SPTjs.ProtocolError)("[daemon -> droid] Failed to send request", {
1823
1824
  requestId: request.id,
1824
1825
  cause: error
1825
1826
  })
@@ -1836,7 +1837,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1836
1837
  } else if ("method" in parsed) {
1837
1838
  await this.handleEvent(parsed);
1838
1839
  } else {
1839
- throw new (0, _chunk4G2RKM2Hjs.ProtocolError)("Invalid message format", {
1840
+ throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Invalid message format", {
1840
1841
  message
1841
1842
  });
1842
1843
  }
@@ -1855,116 +1856,116 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1855
1856
  let validatedResponse;
1856
1857
  switch (pending.method) {
1857
1858
  case "droid.initialize_session" /* INITIALIZE_SESSION */:
1858
- validatedResponse = _chunk4G2RKM2Hjs.InitializeSessionResponseSchema.parse(response);
1859
+ validatedResponse = _chunkYSKO6SPTjs.InitializeSessionResponseSchema.parse(response);
1859
1860
  break;
1860
1861
  case "droid.load_session" /* LOAD_SESSION */:
1861
- validatedResponse = _chunk4G2RKM2Hjs.LoadSessionResponseSchema.parse(response);
1862
+ validatedResponse = _chunkYSKO6SPTjs.LoadSessionResponseSchema.parse(response);
1862
1863
  break;
1863
1864
  case "droid.add_user_message" /* ADD_USER_MESSAGE */:
1864
- validatedResponse = _chunk4G2RKM2Hjs.AddUserMessageResponseSchema.parse(response);
1865
+ validatedResponse = _chunkYSKO6SPTjs.AddUserMessageResponseSchema.parse(response);
1865
1866
  break;
1866
1867
  case "droid.append_messages" /* APPEND_MESSAGES */:
1867
- validatedResponse = _chunk4G2RKM2Hjs.AppendMessagesResponseSchema.parse(response);
1868
+ validatedResponse = _chunkYSKO6SPTjs.AppendMessagesResponseSchema.parse(response);
1868
1869
  break;
1869
1870
  case "droid.resolve_queued_user_message" /* RESOLVE_QUEUED_USER_MESSAGE */:
1870
- validatedResponse = _chunk4G2RKM2Hjs.ResolveQueuedUserMessageResponseSchema.parse(response);
1871
+ validatedResponse = _chunkYSKO6SPTjs.ResolveQueuedUserMessageResponseSchema.parse(response);
1871
1872
  break;
1872
1873
  case "droid.interrupt_session" /* INTERRUPT_SESSION */:
1873
- validatedResponse = _chunk4G2RKM2Hjs.InterruptSessionResponseSchema.parse(response);
1874
+ validatedResponse = _chunkYSKO6SPTjs.InterruptSessionResponseSchema.parse(response);
1874
1875
  break;
1875
1876
  case "droid.close_session" /* CLOSE_SESSION */:
1876
- validatedResponse = _chunk4G2RKM2Hjs.CloseSessionResponseSchema.parse(response);
1877
+ validatedResponse = _chunkYSKO6SPTjs.CloseSessionResponseSchema.parse(response);
1877
1878
  break;
1878
1879
  case "droid.update_session_settings" /* UPDATE_SESSION_SETTINGS */:
1879
- validatedResponse = _chunk4G2RKM2Hjs.UpdateSessionSettingsResponseSchema.parse(response);
1880
+ validatedResponse = _chunkYSKO6SPTjs.UpdateSessionSettingsResponseSchema.parse(response);
1880
1881
  break;
1881
1882
  case "droid.change_working_directory" /* CHANGE_WORKING_DIRECTORY */:
1882
- validatedResponse = _chunk4G2RKM2Hjs.ChangeWorkingDirectoryResponseSchema.parse(response);
1883
+ validatedResponse = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResponseSchema.parse(response);
1883
1884
  break;
1884
1885
  case "droid.toggle_mcp_server" /* TOGGLE_MCP_SERVER */:
1885
- validatedResponse = _chunk4G2RKM2Hjs.ToggleMcpServerResponseSchema.parse(response);
1886
+ validatedResponse = _chunkYSKO6SPTjs.ToggleMcpServerResponseSchema.parse(response);
1886
1887
  break;
1887
1888
  case "droid.authenticate_mcp_server" /* AUTHENTICATE_MCP_SERVER */:
1888
- validatedResponse = _chunk4G2RKM2Hjs.AuthenticateMcpServerResponseSchema.parse(response);
1889
+ validatedResponse = _chunkYSKO6SPTjs.AuthenticateMcpServerResponseSchema.parse(response);
1889
1890
  break;
1890
1891
  case "droid.cancel_mcp_auth" /* CANCEL_MCP_AUTH */:
1891
- validatedResponse = _chunk4G2RKM2Hjs.CancelMcpAuthResponseSchema.parse(response);
1892
+ validatedResponse = _chunkYSKO6SPTjs.CancelMcpAuthResponseSchema.parse(response);
1892
1893
  break;
1893
1894
  case "droid.clear_mcp_auth" /* CLEAR_MCP_AUTH */:
1894
- validatedResponse = _chunk4G2RKM2Hjs.ClearMcpAuthResponseSchema.parse(response);
1895
+ validatedResponse = _chunkYSKO6SPTjs.ClearMcpAuthResponseSchema.parse(response);
1895
1896
  break;
1896
1897
  case "droid.add_mcp_server" /* ADD_MCP_SERVER */:
1897
- validatedResponse = _chunk4G2RKM2Hjs.AddMcpServerResponseSchema.parse(response);
1898
+ validatedResponse = _chunkYSKO6SPTjs.AddMcpServerResponseSchema.parse(response);
1898
1899
  break;
1899
1900
  case "droid.remove_mcp_server" /* REMOVE_MCP_SERVER */:
1900
- validatedResponse = _chunk4G2RKM2Hjs.RemoveMcpServerResponseSchema.parse(response);
1901
+ validatedResponse = _chunkYSKO6SPTjs.RemoveMcpServerResponseSchema.parse(response);
1901
1902
  break;
1902
1903
  case "droid.list_models" /* LIST_MODELS */:
1903
- validatedResponse = _chunk4G2RKM2Hjs.ListModelsResponseSchema.parse(response);
1904
+ validatedResponse = _chunkYSKO6SPTjs.ListModelsResponseSchema.parse(response);
1904
1905
  break;
1905
1906
  case "droid.list_mcp_registry" /* LIST_MCP_REGISTRY */:
1906
- validatedResponse = _chunk4G2RKM2Hjs.ListMcpRegistryResponseSchema.parse(response);
1907
+ validatedResponse = _chunkYSKO6SPTjs.ListMcpRegistryResponseSchema.parse(response);
1907
1908
  break;
1908
1909
  case "droid.list_mcp_tools" /* LIST_MCP_TOOLS */:
1909
- validatedResponse = _chunk4G2RKM2Hjs.ListMcpToolsResponseSchema.parse(response);
1910
+ validatedResponse = _chunkYSKO6SPTjs.ListMcpToolsResponseSchema.parse(response);
1910
1911
  break;
1911
1912
  case "droid.list_tools" /* LIST_TOOLS */:
1912
- validatedResponse = _chunk4G2RKM2Hjs.ListToolsResponseSchema.parse(response);
1913
+ validatedResponse = _chunkYSKO6SPTjs.ListToolsResponseSchema.parse(response);
1913
1914
  break;
1914
1915
  case "droid.toggle_mcp_tool" /* TOGGLE_MCP_TOOL */:
1915
- validatedResponse = _chunk4G2RKM2Hjs.ToggleMcpToolResponseSchema.parse(response);
1916
+ validatedResponse = _chunkYSKO6SPTjs.ToggleMcpToolResponseSchema.parse(response);
1916
1917
  break;
1917
1918
  case "droid.submit_mcp_auth_code" /* SUBMIT_MCP_AUTH_CODE */:
1918
- validatedResponse = _chunk4G2RKM2Hjs.SubmitMcpAuthCodeResponseSchema.parse(response);
1919
+ validatedResponse = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResponseSchema.parse(response);
1919
1920
  break;
1920
1921
  case "droid.submit_mcp_auth_error" /* SUBMIT_MCP_AUTH_ERROR */:
1921
- validatedResponse = _chunk4G2RKM2Hjs.SubmitMcpAuthErrorResponseSchema.parse(response);
1922
+ validatedResponse = _chunkYSKO6SPTjs.SubmitMcpAuthErrorResponseSchema.parse(response);
1922
1923
  break;
1923
1924
  case "droid.kill_worker_session" /* KILL_WORKER_SESSION */:
1924
- validatedResponse = _chunk4G2RKM2Hjs.KillWorkerSessionResponseSchema.parse(response);
1925
+ validatedResponse = _chunkYSKO6SPTjs.KillWorkerSessionResponseSchema.parse(response);
1925
1926
  break;
1926
1927
  case "droid.list_skills" /* LIST_SKILLS */:
1927
- validatedResponse = _chunk4G2RKM2Hjs.ListSkillsResponseSchema.parse(response);
1928
+ validatedResponse = _chunkYSKO6SPTjs.ListSkillsResponseSchema.parse(response);
1928
1929
  break;
1929
1930
  case "droid.set_skill_disabled" /* SET_SKILL_DISABLED */:
1930
- validatedResponse = _chunk4G2RKM2Hjs.SetSkillDisabledResponseSchema.parse(response);
1931
+ validatedResponse = _chunkYSKO6SPTjs.SetSkillDisabledResponseSchema.parse(response);
1931
1932
  break;
1932
1933
  case "droid.list_commands" /* LIST_COMMANDS */:
1933
- validatedResponse = _chunk4G2RKM2Hjs.ListCommandsResponseSchema.parse(response);
1934
+ validatedResponse = _chunkYSKO6SPTjs.ListCommandsResponseSchema.parse(response);
1934
1935
  break;
1935
1936
  case "droid.submit_bug_report" /* SUBMIT_BUG_REPORT */:
1936
- validatedResponse = _chunk4G2RKM2Hjs.SubmitBugReportResponseSchema.parse(response);
1937
+ validatedResponse = _chunkYSKO6SPTjs.SubmitBugReportResponseSchema.parse(response);
1937
1938
  break;
1938
1939
  case "droid.list_mcp_servers" /* LIST_MCP_SERVERS */:
1939
- validatedResponse = _chunk4G2RKM2Hjs.ListMcpServersResponseSchema.parse(response);
1940
+ validatedResponse = _chunkYSKO6SPTjs.ListMcpServersResponseSchema.parse(response);
1940
1941
  break;
1941
1942
  case "droid.get_rewind_info" /* GET_REWIND_INFO */:
1942
- validatedResponse = _chunk4G2RKM2Hjs.GetRewindInfoResponseSchema.parse(response);
1943
+ validatedResponse = _chunkYSKO6SPTjs.GetRewindInfoResponseSchema.parse(response);
1943
1944
  break;
1944
1945
  case "droid.execute_rewind" /* EXECUTE_REWIND */:
1945
- validatedResponse = _chunk4G2RKM2Hjs.ExecuteRewindResponseSchema.parse(response);
1946
+ validatedResponse = _chunkYSKO6SPTjs.ExecuteRewindResponseSchema.parse(response);
1946
1947
  break;
1947
1948
  case "droid.compact_session" /* COMPACT_SESSION */:
1948
- validatedResponse = _chunk4G2RKM2Hjs.CompactSessionResponseSchema.parse(response);
1949
+ validatedResponse = _chunkYSKO6SPTjs.CompactSessionResponseSchema.parse(response);
1949
1950
  break;
1950
1951
  case "droid.fork_session" /* FORK_SESSION */:
1951
- validatedResponse = _chunk4G2RKM2Hjs.ForkSessionResponseSchema.parse(response);
1952
+ validatedResponse = _chunkYSKO6SPTjs.ForkSessionResponseSchema.parse(response);
1952
1953
  break;
1953
1954
  case "droid.rename_session" /* RENAME_SESSION */:
1954
- validatedResponse = _chunk4G2RKM2Hjs.RenameSessionResponseSchema.parse(response);
1955
+ validatedResponse = _chunkYSKO6SPTjs.RenameSessionResponseSchema.parse(response);
1955
1956
  break;
1956
1957
  case "droid.get_context_stats" /* GET_CONTEXT_STATS */:
1957
- validatedResponse = _chunk4G2RKM2Hjs.GetContextStatsResponseSchema.parse(response);
1958
+ validatedResponse = _chunkYSKO6SPTjs.GetContextStatsResponseSchema.parse(response);
1958
1959
  break;
1959
1960
  case "droid.get_context_breakdown" /* GET_CONTEXT_BREAKDOWN */:
1960
- validatedResponse = _chunk4G2RKM2Hjs.GetContextBreakdownResponseSchema.parse(response);
1961
+ validatedResponse = _chunkYSKO6SPTjs.GetContextBreakdownResponseSchema.parse(response);
1961
1962
  break;
1962
1963
  case "droid.warmup_cache" /* WARMUP_CACHE */:
1963
- validatedResponse = _chunk4G2RKM2Hjs.WarmupCacheResponseSchema.parse(response);
1964
+ validatedResponse = _chunkYSKO6SPTjs.WarmupCacheResponseSchema.parse(response);
1964
1965
  break;
1965
1966
  default: {
1966
1967
  const exhaustiveCheck = pending.method;
1967
- throw new (0, _chunk4G2RKM2Hjs.DroidClientError)(
1968
+ throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
1968
1969
  "Unsupported method in response handler",
1969
1970
  {
1970
1971
  method: exhaustiveCheck
@@ -1978,7 +1979,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1978
1979
  this.settleRequest(responseId);
1979
1980
  pending.resolve(validatedResponse);
1980
1981
  } else {
1981
- const validatedResponse = _chunk4G2RKM2Hjs.JsonRpcBaseResponseSchema.parse(response);
1982
+ const validatedResponse = _chunkYSKO6SPTjs.JsonRpcBaseResponseSchema.parse(response);
1982
1983
  this.logger.info(
1983
1984
  "[DroidClient] Received response for request not in pending map",
1984
1985
  {
@@ -1996,7 +1997,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1996
1997
  message: issue.message
1997
1998
  })) : void 0;
1998
1999
  this.logger.exception(error, "Invalid response format", {
1999
- method: _optionalChain([pending, 'optionalAccess', _16 => _16.method]),
2000
+ method: _optionalChain([pending, 'optionalAccess', _18 => _18.method]),
2000
2001
  requestId: _nullishCoalesce(responseId, () => ( void 0)),
2001
2002
  zodIssues
2002
2003
  });
@@ -2022,10 +2023,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2022
2023
  }
2023
2024
  this.settleRequest(responseId);
2024
2025
  const syntheticFailure = {
2025
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
2026
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
2026
2027
  type: "response",
2027
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
2028
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
2028
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
2029
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
2029
2030
  id: responseId,
2030
2031
  error: {
2031
2032
  code,
@@ -2038,7 +2039,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2038
2039
  }
2039
2040
  async handleEvent(event) {
2040
2041
  try {
2041
- const validatedEvent = _chunk4G2RKM2Hjs.CliRequestOrNotificationSchema.parse(event);
2042
+ const validatedEvent = _chunkYSKO6SPTjs.CliRequestOrNotificationSchema.parse(event);
2042
2043
  if (validatedEvent.method === "droid.session_notification" /* SESSION_NOTIFICATION */) {
2043
2044
  const notification = validatedEvent.params.notification;
2044
2045
  if (notification.type === "agent_turn_completed" /* AGENT_TURN_COMPLETED */) {
@@ -2073,10 +2074,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2073
2074
  const code = error instanceof _zod.z.ZodError ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */;
2074
2075
  const message = code === -32600 /* INVALID_REQUEST */ ? "Invalid request format" : "Internal error while handling request";
2075
2076
  const errorResponse = {
2076
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
2077
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
2077
2078
  type: "response",
2078
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
2079
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
2079
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
2080
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
2080
2081
  id,
2081
2082
  error: {
2082
2083
  code,
@@ -2142,7 +2143,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2142
2143
  }
2143
2144
  this.logger.info("[DroidClient] Handling permission request", {
2144
2145
  requestId: event.id,
2145
- toolCount: event.params.toolUses.length
2146
+ count: event.params.toolUses.length
2146
2147
  });
2147
2148
  this.emit("request_permission" /* REQUEST_PERMISSION */, event);
2148
2149
  let selectedOption = "cancel" /* Cancel */;
@@ -2167,11 +2168,11 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2167
2168
  );
2168
2169
  const handlerResult = await handlerPromise;
2169
2170
  if (typeof handlerResult === "string" && handlerResult === "proceed_edit" /* ProceedEdit */) {
2170
- throw new (0, _chunk4G2RKM2Hjs.DroidClientError)(
2171
+ throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
2171
2172
  "Permission handler returned proceed_edit without editedSpecContent"
2172
2173
  );
2173
2174
  }
2174
- const parsedHandlerResult = _chunk4G2RKM2Hjs.RequestPermissionResultSchema.safeParse(
2175
+ const parsedHandlerResult = _chunkYSKO6SPTjs.RequestPermissionResultSchema.safeParse(
2175
2176
  typeof handlerResult === "string" ? { selectedOption: handlerResult } : handlerResult
2176
2177
  );
2177
2178
  if (parsedHandlerResult.success) {
@@ -2179,7 +2180,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2179
2180
  comment = parsedHandlerResult.data.comment;
2180
2181
  editedSpecContent = parsedHandlerResult.data.editedSpecContent;
2181
2182
  } else {
2182
- throw new (0, _chunk4G2RKM2Hjs.DroidClientError)(
2183
+ throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
2183
2184
  "Permission handler returned invalid result",
2184
2185
  {
2185
2186
  cause: parsedHandlerResult.error
@@ -2189,7 +2190,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2189
2190
  if (!event.params.options.some(
2190
2191
  (option) => option.value === selectedOption
2191
2192
  )) {
2192
- throw new (0, _chunk4G2RKM2Hjs.DroidClientError)(
2193
+ throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
2193
2194
  `Permission handler selected unavailable option: ${selectedOption}`
2194
2195
  );
2195
2196
  }
@@ -2212,9 +2213,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2212
2213
  this.pendingPermissionRequests.delete(event.id);
2213
2214
  const cancelResponse = {
2214
2215
  type: "response",
2215
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
2216
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
2217
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
2216
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
2217
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
2218
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
2218
2219
  id: event.id,
2219
2220
  result: {
2220
2221
  selectedOption: "cancel" /* Cancel */
@@ -2240,9 +2241,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2240
2241
  }
2241
2242
  const response = {
2242
2243
  type: "response",
2243
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
2244
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
2245
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
2244
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
2245
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
2246
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
2246
2247
  id: event.id,
2247
2248
  result: {
2248
2249
  selectedOption,
@@ -2260,7 +2261,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2260
2261
  this.logger.info("[DroidClient] Handling ask-user request", {
2261
2262
  requestId: event.id,
2262
2263
  toolCallId: event.params.toolCallId,
2263
- questionCount: event.params.questions.length
2264
+ count: event.params.questions.length
2264
2265
  });
2265
2266
  this.emit("ask_user" /* ASK_USER */, event);
2266
2267
  let result = { cancelled: true, answers: [] };
@@ -2279,11 +2280,11 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2279
2280
  this.pendingAskUserRequests.delete(event.id);
2280
2281
  });
2281
2282
  });
2282
- const parsedResult = _chunk4G2RKM2Hjs.AskUserResultSchema.safeParse(
2283
+ const parsedResult = _chunkYSKO6SPTjs.AskUserResultSchema.safeParse(
2283
2284
  await handlerPromise
2284
2285
  );
2285
2286
  if (!parsedResult.success) {
2286
- throw new (0, _chunk4G2RKM2Hjs.DroidClientError)(
2287
+ throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
2287
2288
  "AskUser handler returned invalid result",
2288
2289
  {
2289
2290
  cause: parsedResult.error
@@ -2294,7 +2295,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2294
2295
  this.logger.info("[DroidClient] Ask-user handler resolved", {
2295
2296
  requestId: event.id,
2296
2297
  cancelled: _nullishCoalesce(result.cancelled, () => ( false)),
2297
- answerCount: result.answers.length
2298
+ count: result.answers.length
2298
2299
  });
2299
2300
  } catch (error) {
2300
2301
  this.logger.exception(error, "Failed to handle ask-user request");
@@ -2307,9 +2308,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2307
2308
  );
2308
2309
  this.pendingAskUserRequests.delete(event.id);
2309
2310
  const cancelResponse = {
2310
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
2311
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
2312
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
2311
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
2312
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
2313
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
2313
2314
  type: "response",
2314
2315
  id: event.id,
2315
2316
  result: {
@@ -2330,9 +2331,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2330
2331
  }
2331
2332
  const response = {
2332
2333
  type: "response",
2333
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
2334
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
2335
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
2334
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
2335
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
2336
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
2336
2337
  id: event.id,
2337
2338
  result
2338
2339
  };
@@ -2344,17 +2345,17 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2344
2345
  }
2345
2346
  static getErrorType(error) {
2346
2347
  switch (error.constructor) {
2347
- case _chunk4G2RKM2Hjs.ConnectionError:
2348
+ case _chunkYSKO6SPTjs.ConnectionError:
2348
2349
  return "ConnectionError" /* CONNECTION_ERROR */;
2349
- case _chunk4G2RKM2Hjs.ProtocolError:
2350
+ case _chunkYSKO6SPTjs.ProtocolError:
2350
2351
  return "ProtocolError" /* PROTOCOL_ERROR */;
2351
- case _chunk4G2RKM2Hjs.SessionError:
2352
+ case _chunkYSKO6SPTjs.SessionError:
2352
2353
  return "SessionError" /* SESSION_ERROR */;
2353
- case _chunk4G2RKM2Hjs.TimeoutError:
2354
+ case _chunkYSKO6SPTjs.TimeoutError:
2354
2355
  return "TimeoutError" /* TIMEOUT_ERROR */;
2355
- case _chunk4G2RKM2Hjs.ProcessExitError:
2356
+ case _chunkYSKO6SPTjs.ProcessExitError:
2356
2357
  return "ProcessExitError" /* PROCESS_EXIT_ERROR */;
2357
- case _chunk4G2RKM2Hjs.DroidClientError:
2358
+ case _chunkYSKO6SPTjs.DroidClientError:
2358
2359
  return "DroidClientError" /* DROID_CLIENT_ERROR */;
2359
2360
  default:
2360
2361
  return "Error" /* ERROR */;
@@ -2366,7 +2367,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2366
2367
  message: error.message,
2367
2368
  errorType: _DroidClient.getErrorType(error),
2368
2369
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
2369
- ...error instanceof _chunk4G2RKM2Hjs.ProcessExitError && error.exitCode !== void 0 ? { exitCode: error.exitCode } : {},
2370
+ ...error instanceof _chunkYSKO6SPTjs.ProcessExitError && error.exitCode !== void 0 ? { exitCode: error.exitCode } : {},
2370
2371
  error: {
2371
2372
  name: error.name,
2372
2373
  message: error.message
@@ -2392,10 +2393,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2392
2393
  */
2393
2394
  static createNotificationEvent(notification) {
2394
2395
  return {
2395
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION2,
2396
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
2396
2397
  type: "notification",
2397
- factoryApiVersion: _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION,
2398
- factoryProtocolVersion: _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION,
2398
+ factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
2399
+ factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
2399
2400
  method: "droid.session_notification" /* SESSION_NOTIFICATION */,
2400
2401
  params: { notification }
2401
2402
  };
@@ -2570,7 +2571,7 @@ function logTransportMessage(direction, message, childPid, deps = defaultExecCor
2570
2571
  }
2571
2572
  }
2572
2573
  async function __resetTransportLoggerForTests(deps = defaultExecCoreDeps) {
2573
- const stream = _nullishCoalesce(_optionalChain([state, 'optionalAccess', _17 => _17.stream]), () => ( null));
2574
+ const stream = _nullishCoalesce(_optionalChain([state, 'optionalAccess', _19 => _19.stream]), () => ( null));
2574
2575
  state = null;
2575
2576
  enabledCache = null;
2576
2577
  if (!stream) return;
@@ -2602,13 +2603,13 @@ function describeSpawnError(error, context) {
2602
2603
  return `Failed to start Droid: ${error.message}`;
2603
2604
  }
2604
2605
  if (error.code === "ENOENT") {
2605
- if (_optionalChain([context, 'optionalAccess', _18 => _18.cwd]) && !fs3.default.existsSync(context.cwd)) {
2606
+ if (_optionalChain([context, 'optionalAccess', _20 => _20.cwd]) && !fs3.default.existsSync(context.cwd)) {
2606
2607
  return `Failed to start Droid: working directory does not exist (${context.cwd})`;
2607
2608
  }
2608
- return `Failed to start Droid: executable not found${_optionalChain([context, 'optionalAccess', _19 => _19.execPath]) ? ` (${context.execPath})` : ""}`;
2609
+ return `Failed to start Droid: executable not found${_optionalChain([context, 'optionalAccess', _21 => _21.execPath]) ? ` (${context.execPath})` : ""}`;
2609
2610
  }
2610
2611
  if (error.code === "EACCES") {
2611
- return `Failed to start Droid: permission denied${_optionalChain([context, 'optionalAccess', _20 => _20.execPath]) ? ` (${context.execPath})` : ""}`;
2612
+ return `Failed to start Droid: permission denied${_optionalChain([context, 'optionalAccess', _22 => _22.execPath]) ? ` (${context.execPath})` : ""}`;
2612
2613
  }
2613
2614
  return `Failed to start Droid: ${error.code}`;
2614
2615
  }
@@ -2651,13 +2652,13 @@ var ManagedProcessImpl = (_class2 = class {
2651
2652
 
2652
2653
  get childProcess() {
2653
2654
  if (!this._childProcess) {
2654
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Process not connected");
2655
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Process not connected");
2655
2656
  }
2656
2657
  return this._childProcess;
2657
2658
  }
2658
2659
  setupHandlers() {
2659
2660
  if (!this.childProcess.stdout) {
2660
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Failed to get process stdout");
2661
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to get process stdout");
2661
2662
  }
2662
2663
  this.readlineInterface = readline.createInterface({
2663
2664
  input: this.childProcess.stdout,
@@ -2670,7 +2671,7 @@ var ManagedProcessImpl = (_class2 = class {
2670
2671
  logTransportMessage(
2671
2672
  "in" /* In */,
2672
2673
  trimmedLine,
2673
- _optionalChain([this, 'access', _21 => _21._childProcess, 'optionalAccess', _22 => _22.pid]),
2674
+ _optionalChain([this, 'access', _23 => _23._childProcess, 'optionalAccess', _24 => _24.pid]),
2674
2675
  this.transportLoggerDeps
2675
2676
  );
2676
2677
  this.messageHandler(trimmedLine);
@@ -2684,12 +2685,12 @@ var ManagedProcessImpl = (_class2 = class {
2684
2685
  }
2685
2686
  });
2686
2687
  this.childProcess.on("error", (error) => {
2687
- this.processError = new (0, _chunk4G2RKM2Hjs.ConnectionError)(
2688
+ this.processError = new (0, _chunkYSKO6SPTjs.ConnectionError)(
2688
2689
  describeSpawnError(error, this.spawnContext),
2689
2690
  {
2690
2691
  error,
2691
- cwd: _optionalChain([this, 'access', _23 => _23.spawnContext, 'optionalAccess', _24 => _24.cwd]),
2692
- execPath: _optionalChain([this, 'access', _25 => _25.spawnContext, 'optionalAccess', _26 => _26.execPath])
2692
+ cwd: _optionalChain([this, 'access', _25 => _25.spawnContext, 'optionalAccess', _26 => _26.cwd]),
2693
+ execPath: _optionalChain([this, 'access', _27 => _27.spawnContext, 'optionalAccess', _28 => _28.execPath])
2693
2694
  }
2694
2695
  );
2695
2696
  if (!this.isClosing && this.errorHandler) {
@@ -2700,7 +2701,7 @@ var ManagedProcessImpl = (_class2 = class {
2700
2701
  this.exitDrainTimer = setTimeout(() => {
2701
2702
  this.finalizeExit(code, signal);
2702
2703
  }, EXIT_STDIO_DRAIN_TIMEOUT_MS);
2703
- _optionalChain([this, 'access', _27 => _27.exitDrainTimer, 'access', _28 => _28.unref, 'optionalCall', _29 => _29()]);
2704
+ _optionalChain([this, 'access', _29 => _29.exitDrainTimer, 'access', _30 => _30.unref, 'optionalCall', _31 => _31()]);
2704
2705
  });
2705
2706
  this.childProcess.on("close", (code, signal) => {
2706
2707
  this.finalizeExit(code, signal);
@@ -2729,7 +2730,7 @@ var ManagedProcessImpl = (_class2 = class {
2729
2730
  this.readlineInterface = null;
2730
2731
  }
2731
2732
  if (!this.isClosing) {
2732
- this.processError = new (0, _chunk4G2RKM2Hjs.ProcessExitError)(
2733
+ this.processError = new (0, _chunkYSKO6SPTjs.ProcessExitError)(
2733
2734
  describeExitError(code, signal),
2734
2735
  {
2735
2736
  exitCode: _nullishCoalesce(code, () => ( void 0)),
@@ -2746,27 +2747,27 @@ var ManagedProcessImpl = (_class2 = class {
2746
2747
  throw this.processError;
2747
2748
  }
2748
2749
  if (!this._childProcess || !this._childProcess.stdin) {
2749
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Process not connected");
2750
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Process not connected");
2750
2751
  }
2751
2752
  const previousSends = this.queuedSendPromise;
2752
2753
  this.queuedSendPromise = (async () => {
2753
2754
  await previousSends.catch(() => {
2754
2755
  });
2755
2756
  if (!this._childProcess || !this._childProcess.stdin || this._childProcess.killed || this.isClosing) {
2756
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Process disconnected before write");
2757
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Process disconnected before write");
2757
2758
  }
2758
2759
  await new Promise((resolve2, reject) => {
2759
2760
  try {
2760
2761
  if (!this._childProcess || !this._childProcess.stdin) {
2761
- reject(new (0, _chunk4G2RKM2Hjs.ConnectionError)("Process stdin unavailable"));
2762
+ reject(new (0, _chunkYSKO6SPTjs.ConnectionError)("Process stdin unavailable"));
2762
2763
  return;
2763
2764
  }
2764
2765
  const stdin = this._childProcess.stdin;
2765
2766
  if ("writable" in stdin && !stdin.writable) {
2766
- reject(new (0, _chunk4G2RKM2Hjs.ConnectionError)("Process stdin is not writable"));
2767
+ reject(new (0, _chunkYSKO6SPTjs.ConnectionError)("Process stdin is not writable"));
2767
2768
  return;
2768
2769
  }
2769
- const childPid = _optionalChain([this, 'access', _30 => _30._childProcess, 'optionalAccess', _31 => _31.pid]);
2770
+ const childPid = _optionalChain([this, 'access', _32 => _32._childProcess, 'optionalAccess', _33 => _33.pid]);
2770
2771
  stdin.write(`${message}
2771
2772
  `, (error) => {
2772
2773
  if (error) {
@@ -2779,13 +2780,13 @@ var ManagedProcessImpl = (_class2 = class {
2779
2780
  const errorMessage = error.message || String(error);
2780
2781
  if (errorMessage.includes("EPIPE") || errorMessage.includes("ECONNRESET")) {
2781
2782
  reject(
2782
- new (0, _chunk4G2RKM2Hjs.ConnectionError)("Process stdin closed during write", {
2783
+ new (0, _chunkYSKO6SPTjs.ConnectionError)("Process stdin closed during write", {
2783
2784
  error
2784
2785
  })
2785
2786
  );
2786
2787
  } else {
2787
2788
  reject(
2788
- new (0, _chunk4G2RKM2Hjs.ConnectionError)("Failed to write to process stdin", {
2789
+ new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to write to process stdin", {
2789
2790
  error
2790
2791
  })
2791
2792
  );
@@ -2809,7 +2810,7 @@ var ManagedProcessImpl = (_class2 = class {
2809
2810
  }
2810
2811
  );
2811
2812
  reject(
2812
- new (0, _chunk4G2RKM2Hjs.ConnectionError)("Error writing to process stdin", {
2813
+ new (0, _chunkYSKO6SPTjs.ConnectionError)("Error writing to process stdin", {
2813
2814
  error: error instanceof Error ? error : new Error(String(error))
2814
2815
  })
2815
2816
  );
@@ -2932,11 +2933,11 @@ function observeEarlySpawnFailure(childProcess, gracePeriodMs, sleep) {
2932
2933
  const errorListener = (err) => {
2933
2934
  observation.error = err;
2934
2935
  };
2935
- _optionalChain([childProcess, 'access', _32 => _32.stderr, 'optionalAccess', _33 => _33.on, 'call', _34 => _34("data", stderrListener)]);
2936
+ _optionalChain([childProcess, 'access', _34 => _34.stderr, 'optionalAccess', _35 => _35.on, 'call', _36 => _36("data", stderrListener)]);
2936
2937
  childProcess.once("exit", exitListener);
2937
2938
  childProcess.once("error", errorListener);
2938
2939
  const cleanup = () => {
2939
- _optionalChain([childProcess, 'access', _35 => _35.stderr, 'optionalAccess', _36 => _36.off, 'call', _37 => _37("data", stderrListener)]);
2940
+ _optionalChain([childProcess, 'access', _37 => _37.stderr, 'optionalAccess', _38 => _38.off, 'call', _39 => _39("data", stderrListener)]);
2940
2941
  childProcess.off("exit", exitListener);
2941
2942
  childProcess.off("error", errorListener);
2942
2943
  };
@@ -2993,7 +2994,7 @@ async function spawnWithWindowsJobObjectRetry(spawnFactory, options = {}) {
2993
2994
  stderrTail: observation.stderr.slice(-256)
2994
2995
  });
2995
2996
  try {
2996
- await _optionalChain([options, 'access', _38 => _38.disposeEarlyExited, 'optionalCall', _39 => _39(child)]);
2997
+ await _optionalChain([options, 'access', _40 => _40.disposeEarlyExited, 'optionalCall', _41 => _41(child)]);
2997
2998
  } catch (disposeErr) {
2998
2999
  logWarn(logger, "spawnWithWindowsJobObjectRetry: dispose error", {
2999
3000
  cause: disposeErr instanceof Error ? disposeErr : new Error(String(disposeErr)),
@@ -3003,7 +3004,7 @@ async function spawnWithWindowsJobObjectRetry(spawnFactory, options = {}) {
3003
3004
  await sleep(_nullishCoalesce(_nullishCoalesce(backoff[attempt], () => ( backoff[backoff.length - 1])), () => ( 400)));
3004
3005
  }
3005
3006
  if (lastChild) return lastChild;
3006
- throw new (0, _chunk4G2RKM2Hjs.DroidClientError)(
3007
+ throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
3007
3008
  "spawnWithWindowsJobObjectRetry: exhausted retries without child",
3008
3009
  {}
3009
3010
  );
@@ -3083,7 +3084,7 @@ var DroidProcessManager = class {
3083
3084
  logger: this.logger,
3084
3085
  disposeEarlyExited: (child) => {
3085
3086
  try {
3086
- _optionalChain([child, 'access', _40 => _40.stdin, 'optionalAccess', _41 => _41.end, 'call', _42 => _42()]);
3087
+ _optionalChain([child, 'access', _42 => _42.stdin, 'optionalAccess', _43 => _43.end, 'call', _44 => _44()]);
3087
3088
  } catch (stdinErr) {
3088
3089
  logWarn(
3089
3090
  this.logger,
@@ -3108,7 +3109,7 @@ var DroidProcessManager = class {
3108
3109
  }
3109
3110
  );
3110
3111
  if (!childProcess.stdout || !childProcess.stdin) {
3111
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Failed to get process stdio");
3112
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to get process stdio");
3112
3113
  }
3113
3114
  return new ManagedProcessImpl(
3114
3115
  childProcess,
@@ -3168,7 +3169,7 @@ var DroidProcessManager = class {
3168
3169
  const planned = this.prepareSpawn(config);
3169
3170
  const childProcess = this.invokeNodeSpawn(planned);
3170
3171
  if (!childProcess.stdout || !childProcess.stdin) {
3171
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Failed to get process stdio");
3172
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to get process stdio");
3172
3173
  }
3173
3174
  return {
3174
3175
  logPrefix: planned.logPrefix,
@@ -3201,7 +3202,7 @@ var ProcessTransport = (_class3 = class {
3201
3202
  }
3202
3203
  async connect() {
3203
3204
  if (this.managedProcess && this.managedProcess.isConnected) {
3204
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Transport already connected");
3205
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Transport already connected");
3205
3206
  }
3206
3207
  const config = {
3207
3208
  execPath: this.options.droidExecPath,
@@ -3233,7 +3234,7 @@ var ProcessTransport = (_class3 = class {
3233
3234
  }
3234
3235
  async send(message) {
3235
3236
  if (!this.managedProcess) {
3236
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)("Transport not connected");
3237
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Transport not connected");
3237
3238
  }
3238
3239
  return this.managedProcess.send(message);
3239
3240
  }
@@ -3256,7 +3257,7 @@ var ProcessTransport = (_class3 = class {
3256
3257
  }
3257
3258
  }
3258
3259
  get isConnected() {
3259
- return _nullishCoalesce(_optionalChain([this, 'access', _43 => _43.managedProcess, 'optionalAccess', _44 => _44.isConnected]), () => ( false));
3260
+ return _nullishCoalesce(_optionalChain([this, 'access', _45 => _45.managedProcess, 'optionalAccess', _46 => _46.isConnected]), () => ( false));
3260
3261
  }
3261
3262
  getManagedProcess() {
3262
3263
  return this.managedProcess;
@@ -3267,7 +3268,7 @@ var ProcessTransport = (_class3 = class {
3267
3268
  function resolveApiKey(apiKey) {
3268
3269
  const resolved = _nullishCoalesce(apiKey, () => ( process.env.FACTORY_API_KEY));
3269
3270
  if (!resolved) {
3270
- throw new (0, _chunk4G2RKM2Hjs.DroidClientError)(
3271
+ throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
3271
3272
  "No Factory API key found. Pass `apiKey` when creating the session, or set the FACTORY_API_KEY environment variable."
3272
3273
  );
3273
3274
  }
@@ -3281,7 +3282,12 @@ async function createTransport(options) {
3281
3282
  droidExecPath: options.execPath,
3282
3283
  droidExecExtraArgs: options.execArgs,
3283
3284
  cwd: options.cwd,
3284
- env: { ...options.env, FACTORY_API_KEY: resolveApiKey(options.apiKey) },
3285
+ env: {
3286
+ ...options.env,
3287
+ FACTORY_API_KEY: resolveApiKey(options.apiKey),
3288
+ FACTORY_UPSTREAM_CLIENT_TYPE: "sdk" /* SDK */,
3289
+ FACTORY_UPSTREAM_SDK: _chunkYSKO6SPTjs.SDK_IDENTITY
3290
+ },
3285
3291
  observability: options.observability
3286
3292
  });
3287
3293
  await processTransport.connect();
@@ -3301,7 +3307,8 @@ async function createConfiguredClient(options) {
3301
3307
  const transport = await createTransport(options);
3302
3308
  const client = new DroidClient({
3303
3309
  transport,
3304
- observability: options.observability
3310
+ observability: options.observability,
3311
+ getRequestAttribution: () => _chunkYSKO6SPTjs.SDK_REQUEST_ATTRIBUTION
3305
3312
  });
3306
3313
  setupClientHandlers(client, options);
3307
3314
  return { transport, client };
@@ -3347,13 +3354,14 @@ function buildInitParams(options) {
3347
3354
  ...options.sessionSource !== void 0 && {
3348
3355
  sessionSource: options.sessionSource
3349
3356
  },
3357
+ sessionOriginHint: "sdk" /* Sdk */,
3350
3358
  ...options.autoRejectPermissionRequests !== void 0 && {
3351
3359
  autoRejectPermissionRequests: options.autoRejectPermissionRequests
3352
3360
  },
3353
3361
  ...options.disableBuiltinSkills !== void 0 && {
3354
3362
  disableBuiltinSkills: options.disableBuiltinSkills
3355
3363
  },
3356
- tags: [..._nullishCoalesce(options.tags, () => ( [])), _chunk4G2RKM2Hjs.SDK_TAG]
3364
+ tags: _chunkYSKO6SPTjs.withSdkTag.call(void 0, options.tags)
3357
3365
  };
3358
3366
  }
3359
3367
 
@@ -3415,7 +3423,7 @@ function writeJsonError(res, statusCode, message, headers = {}) {
3415
3423
  });
3416
3424
  res.end(
3417
3425
  JSON.stringify({
3418
- jsonrpc: _chunk4G2RKM2Hjs.JSONRPC_VERSION,
3426
+ jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION,
3419
3427
  error: { code: -32603 /* INTERNAL_ERROR */, message },
3420
3428
  id: null
3421
3429
  })
@@ -3491,7 +3499,7 @@ var SdkMcpServer = (_class4 = class {
3491
3499
  if (!server) {
3492
3500
  return;
3493
3501
  }
3494
- _optionalChain([server, 'access', _45 => _45.closeAllConnections, 'optionalCall', _46 => _46()]);
3502
+ _optionalChain([server, 'access', _47 => _47.closeAllConnections, 'optionalCall', _48 => _48()]);
3495
3503
  server.close();
3496
3504
  await _events.once.call(void 0, server, "close");
3497
3505
  }
@@ -3620,14 +3628,17 @@ var DroidSession = (_class5 = class _DroidSession {
3620
3628
  }
3621
3629
  async *stream(prompt, options) {
3622
3630
  this._ensureNotClosed();
3623
- yield* _chunk4G2RKM2Hjs.streamFromClient.call(void 0,
3631
+ yield* _chunkYSKO6SPTjs.streamFromClient.call(void 0,
3624
3632
  {
3625
3633
  onNotification: (handler) => this._client.onNotification((notification) => {
3626
- const inner = _chunk4G2RKM2Hjs.extractInnerNotification.call(void 0, notification);
3634
+ const inner = _chunkYSKO6SPTjs.extractInnerNotification.call(void 0, notification);
3627
3635
  if (inner) handler(inner);
3628
3636
  }),
3629
3637
  onError: (handler) => this._client.onError(handler),
3630
- addUserMessage: (params) => this._client.addUserMessage(params),
3638
+ addUserMessage: (params) => this._client.addUserMessage({
3639
+ ...params,
3640
+ userMessageSource: "sdk" /* Sdk */
3641
+ }),
3631
3642
  interruptSession: () => this._client.interruptSession()
3632
3643
  },
3633
3644
  this._sessionId,
@@ -3646,7 +3657,7 @@ var DroidSession = (_class5 = class _DroidSession {
3646
3657
  }
3647
3658
  this._status = "closed";
3648
3659
  this._releaseHandleSubscriptions();
3649
- _optionalChain([this, 'access', _47 => _47._cleanupAbortSignal, 'optionalCall', _48 => _48()]);
3660
+ _optionalChain([this, 'access', _49 => _49._cleanupAbortSignal, 'optionalCall', _50 => _50()]);
3650
3661
  this._cleanupAbortSignal = null;
3651
3662
  for (const bridge of this._activeBridges) {
3652
3663
  bridge.signalDone();
@@ -3664,14 +3675,14 @@ var DroidSession = (_class5 = class _DroidSession {
3664
3675
  async updateSettings(params) {
3665
3676
  this._ensureNotClosed();
3666
3677
  const revision = this._settingsRevision;
3667
- const result = _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0,
3678
+ const result = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
3668
3679
  await this._client.updateSessionSettings(params)
3669
3680
  );
3670
3681
  if (params.disabledToolIds !== void 0) {
3671
3682
  this._runtime.loadParams.disabledToolIds = params.disabledToolIds;
3672
3683
  }
3673
3684
  if (this._settingsRevision === revision) {
3674
- this._settings = _chunk4G2RKM2Hjs.mergeSessionSettings.call(void 0, this._settings, params);
3685
+ this._settings = _chunkYSKO6SPTjs.mergeSessionSettings.call(void 0, this._settings, params);
3675
3686
  }
3676
3687
  return result;
3677
3688
  }
@@ -3688,27 +3699,27 @@ var DroidSession = (_class5 = class _DroidSession {
3688
3699
  }
3689
3700
  async addMcpServer(params) {
3690
3701
  this._ensureNotClosed();
3691
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.addMcpServer(params));
3702
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.addMcpServer(params));
3692
3703
  }
3693
3704
  async removeMcpServer(params) {
3694
3705
  this._ensureNotClosed();
3695
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.removeMcpServer(params));
3706
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.removeMcpServer(params));
3696
3707
  }
3697
3708
  async toggleMcpServer(params) {
3698
3709
  this._ensureNotClosed();
3699
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.toggleMcpServer(params));
3710
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.toggleMcpServer(params));
3700
3711
  }
3701
3712
  async listMcpServers() {
3702
3713
  this._ensureNotClosed();
3703
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.listMcpServers());
3714
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listMcpServers());
3704
3715
  }
3705
3716
  async listMcpTools() {
3706
3717
  this._ensureNotClosed();
3707
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.listMcpTools()).tools;
3718
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listMcpTools()).tools;
3708
3719
  }
3709
3720
  async listTools(params = {}) {
3710
3721
  this._ensureNotClosed();
3711
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.listTools(params)).tools.map(
3722
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listTools(params)).tools.map(
3712
3723
  ({ id: _protocolId, llmId, currentlyAllowed, ...tool2 }) => ({
3713
3724
  ...tool2,
3714
3725
  id: llmId,
@@ -3718,17 +3729,17 @@ var DroidSession = (_class5 = class _DroidSession {
3718
3729
  }
3719
3730
  async authenticateMcpServer(params) {
3720
3731
  this._ensureNotClosed();
3721
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0,
3732
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
3722
3733
  await this._client.authenticateMcpServer(params)
3723
3734
  );
3724
3735
  }
3725
3736
  async listSkills() {
3726
3737
  this._ensureNotClosed();
3727
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.listSkills());
3738
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listSkills());
3728
3739
  }
3729
3740
  async setSkillDisabled(params) {
3730
3741
  this._ensureNotClosed();
3731
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0,
3742
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
3732
3743
  await this._client.setSkillDisabled(
3733
3744
  params.skillName,
3734
3745
  params.disabled,
@@ -3738,34 +3749,34 @@ var DroidSession = (_class5 = class _DroidSession {
3738
3749
  }
3739
3750
  async getRewindInfo(params) {
3740
3751
  this._ensureNotClosed();
3741
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.getRewindInfo(params));
3752
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.getRewindInfo(params));
3742
3753
  }
3743
3754
  async rewind(params) {
3744
3755
  const { session, result } = await this._runReplacement(
3745
- () => this._client.executeRewind(params).then(_chunk4G2RKM2Hjs.unwrapResponseResult)
3756
+ () => this._client.executeRewind(params).then(_chunkYSKO6SPTjs.unwrapResponseResult)
3746
3757
  );
3747
3758
  const { newSessionId: _newSessionId, ...metadata } = result;
3748
3759
  return { session, ...metadata };
3749
3760
  }
3750
3761
  async compact(params) {
3751
3762
  const { session, result } = await this._runReplacement(
3752
- () => this._client.compactSession(_nullishCoalesce(params, () => ( {}))).then(_chunk4G2RKM2Hjs.unwrapResponseResult)
3763
+ () => this._client.compactSession(_nullishCoalesce(params, () => ( {}))).then(_chunkYSKO6SPTjs.unwrapResponseResult)
3753
3764
  );
3754
3765
  return { session, removedCount: result.removedCount };
3755
3766
  }
3756
3767
  async fork(params = {}) {
3757
3768
  const { session } = await this._runReplacement(
3758
- () => this._client.forkSession(params).then(_chunk4G2RKM2Hjs.unwrapResponseResult)
3769
+ () => this._client.forkSession(params).then(_chunkYSKO6SPTjs.unwrapResponseResult)
3759
3770
  );
3760
3771
  return session;
3761
3772
  }
3762
3773
  async getContextStats() {
3763
3774
  this._ensureNotClosed();
3764
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.getContextStats());
3775
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.getContextStats());
3765
3776
  }
3766
3777
  async rename(params) {
3767
3778
  this._ensureNotClosed();
3768
- _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, await this._client.renameSession(params));
3779
+ _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.renameSession(params));
3769
3780
  }
3770
3781
  onNotification(callback, filter) {
3771
3782
  this._ensureNotClosed();
@@ -3779,13 +3790,13 @@ var DroidSession = (_class5 = class _DroidSession {
3779
3790
  }
3780
3791
  _ensureNotClosed() {
3781
3792
  if (this._status === "replaced" && this._replacementSessionId) {
3782
- throw new (0, _chunk4G2RKM2Hjs.SessionReplacedError)(
3793
+ throw new (0, _chunkYSKO6SPTjs.SessionReplacedError)(
3783
3794
  this._sessionId,
3784
3795
  this._replacementSessionId
3785
3796
  );
3786
3797
  }
3787
3798
  if (this._status !== "active") {
3788
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)(
3799
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)(
3789
3800
  this._status === "replacing" ? "Session replacement is already in progress." : "Session has been closed. Create a new session to continue."
3790
3801
  );
3791
3802
  }
@@ -3793,7 +3804,7 @@ var DroidSession = (_class5 = class _DroidSession {
3793
3804
  _beginReplacement() {
3794
3805
  this._ensureNotClosed();
3795
3806
  if (this._activeBridges.size > 0) {
3796
- throw new (0, _chunk4G2RKM2Hjs.ConcurrentStreamError)(this._sessionId);
3807
+ throw new (0, _chunkYSKO6SPTjs.ConcurrentStreamError)(this._sessionId);
3797
3808
  }
3798
3809
  this._status = "replacing";
3799
3810
  }
@@ -3809,11 +3820,11 @@ var DroidSession = (_class5 = class _DroidSession {
3809
3820
  throw error;
3810
3821
  }
3811
3822
  if (this._status !== "replacing") {
3812
- throw new (0, _chunk4G2RKM2Hjs.SessionReplacementError)(this._sessionId, result.newSessionId, {
3813
- cause: new (0, _chunk4G2RKM2Hjs.ConnectionError)(
3823
+ throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(this._sessionId, result.newSessionId, {
3824
+ cause: new (0, _chunkYSKO6SPTjs.ConnectionError)(
3814
3825
  "Session closed while replacement was in progress."
3815
3826
  ),
3816
- rollbackError: new (0, _chunk4G2RKM2Hjs.ConnectionError)(
3827
+ rollbackError: new (0, _chunkYSKO6SPTjs.ConnectionError)(
3817
3828
  "The source session was already closed."
3818
3829
  )
3819
3830
  });
@@ -3825,18 +3836,18 @@ var DroidSession = (_class5 = class _DroidSession {
3825
3836
  }
3826
3837
  async _loadReplacement(replacementSessionId) {
3827
3838
  try {
3828
- const loadResult = _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0,
3839
+ const loadResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
3829
3840
  await this._client.loadSession({
3830
3841
  ...this._runtime.loadParams,
3831
3842
  sessionId: replacementSessionId
3832
3843
  })
3833
3844
  );
3834
3845
  if (this._status !== "replacing") {
3835
- throw new (0, _chunk4G2RKM2Hjs.ConnectionError)(
3846
+ throw new (0, _chunkYSKO6SPTjs.ConnectionError)(
3836
3847
  "Session closed while replacement was loading."
3837
3848
  );
3838
3849
  }
3839
- _optionalChain([this, 'access', _49 => _49._cleanupAbortSignal, 'optionalCall', _50 => _50()]);
3850
+ _optionalChain([this, 'access', _51 => _51._cleanupAbortSignal, 'optionalCall', _52 => _52()]);
3840
3851
  this._cleanupAbortSignal = null;
3841
3852
  this._releaseHandleSubscriptions();
3842
3853
  const cleanupCallbacks = this._cleanupCallbacks;
@@ -3853,12 +3864,12 @@ var DroidSession = (_class5 = class _DroidSession {
3853
3864
  return replacement;
3854
3865
  } catch (cause) {
3855
3866
  if (this._status !== "replacing") {
3856
- throw new (0, _chunk4G2RKM2Hjs.SessionReplacementError)(
3867
+ throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(
3857
3868
  this._sessionId,
3858
3869
  replacementSessionId,
3859
3870
  {
3860
3871
  cause,
3861
- rollbackError: new (0, _chunk4G2RKM2Hjs.ConnectionError)(
3872
+ rollbackError: new (0, _chunkYSKO6SPTjs.ConnectionError)(
3862
3873
  "The source session was closed before rollback."
3863
3874
  )
3864
3875
  }
@@ -3866,7 +3877,7 @@ var DroidSession = (_class5 = class _DroidSession {
3866
3877
  }
3867
3878
  let rollbackResult;
3868
3879
  try {
3869
- rollbackResult = _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0,
3880
+ rollbackResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
3870
3881
  await this._client.loadSession({
3871
3882
  ...this._runtime.loadParams,
3872
3883
  sessionId: this._sessionId
@@ -3874,18 +3885,18 @@ var DroidSession = (_class5 = class _DroidSession {
3874
3885
  );
3875
3886
  } catch (rollbackError) {
3876
3887
  await this._disposeAfterFailedRollback();
3877
- throw new (0, _chunk4G2RKM2Hjs.SessionReplacementError)(
3888
+ throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(
3878
3889
  this._sessionId,
3879
3890
  replacementSessionId,
3880
3891
  { cause, rollbackError }
3881
3892
  );
3882
3893
  }
3883
3894
  if (this._status !== "replacing") {
3884
- const rollbackError = new (0, _chunk4G2RKM2Hjs.ConnectionError)(
3895
+ const rollbackError = new (0, _chunkYSKO6SPTjs.ConnectionError)(
3885
3896
  "Session closed while replacement rollback was loading."
3886
3897
  );
3887
3898
  await this._disposeAfterFailedRollback();
3888
- throw new (0, _chunk4G2RKM2Hjs.SessionReplacementError)(
3899
+ throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(
3889
3900
  this._sessionId,
3890
3901
  replacementSessionId,
3891
3902
  { cause, rollbackError }
@@ -3894,24 +3905,24 @@ var DroidSession = (_class5 = class _DroidSession {
3894
3905
  this._settings = rollbackResult.settings;
3895
3906
  this._cwd = rollbackResult.cwd;
3896
3907
  this._status = "active";
3897
- throw new (0, _chunk4G2RKM2Hjs.SessionReplacementError)(this._sessionId, replacementSessionId, {
3908
+ throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(this._sessionId, replacementSessionId, {
3898
3909
  cause
3899
3910
  });
3900
3911
  }
3901
3912
  }
3902
3913
  _bindAbortSignal() {
3903
- this._cleanupAbortSignal = _chunk4G2RKM2Hjs.wireAbortSignal.call(void 0,
3914
+ this._cleanupAbortSignal = _chunkYSKO6SPTjs.wireAbortSignal.call(void 0,
3904
3915
  this._runtime.abortSignal,
3905
3916
  () => void this.close()
3906
3917
  );
3907
3918
  }
3908
3919
  _bindMetadataNotifications() {
3909
3920
  const unsubscribe = this._client.onNotification((notification) => {
3910
- const inner = _chunk4G2RKM2Hjs.extractInnerNotification.call(void 0, notification);
3911
- if (_optionalChain([inner, 'optionalAccess', _51 => _51.type]) === "settings_updated" /* SETTINGS_UPDATED */) {
3912
- this._settings = _chunk4G2RKM2Hjs.mergeSessionSettings.call(void 0, this._settings, inner.settings);
3921
+ const inner = _chunkYSKO6SPTjs.extractInnerNotification.call(void 0, notification);
3922
+ if (_optionalChain([inner, 'optionalAccess', _53 => _53.type]) === "settings_updated" /* SETTINGS_UPDATED */) {
3923
+ this._settings = _chunkYSKO6SPTjs.mergeSessionSettings.call(void 0, this._settings, inner.settings);
3913
3924
  this._settingsRevision++;
3914
- } else if (_optionalChain([inner, 'optionalAccess', _52 => _52.type]) === "session_working_directory_changed" /* SESSION_WORKING_DIRECTORY_CHANGED */) {
3925
+ } else if (_optionalChain([inner, 'optionalAccess', _54 => _54.type]) === "session_working_directory_changed" /* SESSION_WORKING_DIRECTORY_CHANGED */) {
3915
3926
  this._cwd = inner.cwd;
3916
3927
  }
3917
3928
  });
@@ -3926,7 +3937,7 @@ var DroidSession = (_class5 = class _DroidSession {
3926
3937
  }
3927
3938
  async _disposeAfterFailedRollback() {
3928
3939
  this._status = "closed";
3929
- _optionalChain([this, 'access', _53 => _53._cleanupAbortSignal, 'optionalCall', _54 => _54()]);
3940
+ _optionalChain([this, 'access', _55 => _55._cleanupAbortSignal, 'optionalCall', _56 => _56()]);
3930
3941
  this._cleanupAbortSignal = null;
3931
3942
  this._releaseHandleSubscriptions();
3932
3943
  await closeQuietly(this._client);
@@ -3942,13 +3953,14 @@ function createReplacementLoadParams(options, mcpServers) {
3942
3953
  disabledToolIds: options.disabledToolIds,
3943
3954
  autoRejectPermissionRequests: options.autoRejectPermissionRequests,
3944
3955
  disableBuiltinSkills: options.disableBuiltinSkills,
3945
- sessionSource: options.sessionSource
3956
+ sessionSource: options.sessionSource,
3957
+ sessionOriginHint: "sdk" /* Sdk */
3946
3958
  };
3947
3959
  }
3948
3960
  async function createSession(options = {}) {
3949
3961
  const { client } = await createConfiguredClient(options);
3950
- let cleanupInitAbortSignal = _optionalChain([options, 'access', _55 => _55.abortSignal, 'optionalAccess', _56 => _56.aborted]) ? () => {
3951
- } : _chunk4G2RKM2Hjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
3962
+ let cleanupInitAbortSignal = _optionalChain([options, 'access', _57 => _57.abortSignal, 'optionalAccess', _58 => _58.aborted]) ? () => {
3963
+ } : _chunkYSKO6SPTjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
3952
3964
  void closeQuietly(client);
3953
3965
  });
3954
3966
  let sdkMcpServers;
@@ -3958,7 +3970,7 @@ async function createSession(options = {}) {
3958
3970
  ...options,
3959
3971
  mcpServers: sdkMcpServers.mcpServers
3960
3972
  });
3961
- const initResult = _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0,
3973
+ const initResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
3962
3974
  await client.initializeSession(initParams)
3963
3975
  );
3964
3976
  const session = new DroidSession(
@@ -3966,7 +3978,7 @@ async function createSession(options = {}) {
3966
3978
  initResult.sessionId,
3967
3979
  {
3968
3980
  settings: initResult.settings,
3969
- cwd: _nullishCoalesce(_optionalChain([initResult, 'access', _57 => _57.worktree, 'optionalAccess', _58 => _58.path]), () => ( initParams.cwd))
3981
+ cwd: _nullishCoalesce(_optionalChain([initResult, 'access', _59 => _59.worktree, 'optionalAccess', _60 => _60.path]), () => ( initParams.cwd))
3970
3982
  },
3971
3983
  {
3972
3984
  abortSignal: options.abortSignal,
@@ -3983,15 +3995,15 @@ async function createSession(options = {}) {
3983
3995
  return session;
3984
3996
  } catch (error) {
3985
3997
  cleanupInitAbortSignal();
3986
- await _optionalChain([sdkMcpServers, 'optionalAccess', _59 => _59.cleanup, 'call', _60 => _60()]);
3998
+ await _optionalChain([sdkMcpServers, 'optionalAccess', _61 => _61.cleanup, 'call', _62 => _62()]);
3987
3999
  await closeQuietly(client);
3988
4000
  throw error;
3989
4001
  }
3990
4002
  }
3991
4003
  async function resumeSession(sessionId, options = {}) {
3992
4004
  const { client } = await createConfiguredClient(options);
3993
- let cleanupLoadAbortSignal = _optionalChain([options, 'access', _61 => _61.abortSignal, 'optionalAccess', _62 => _62.aborted]) ? () => {
3994
- } : _chunk4G2RKM2Hjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
4005
+ let cleanupLoadAbortSignal = _optionalChain([options, 'access', _63 => _63.abortSignal, 'optionalAccess', _64 => _64.aborted]) ? () => {
4006
+ } : _chunkYSKO6SPTjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
3995
4007
  void closeQuietly(client);
3996
4008
  });
3997
4009
  let sdkMcpServers;
@@ -4001,7 +4013,7 @@ async function resumeSession(sessionId, options = {}) {
4001
4013
  options,
4002
4014
  sdkMcpServers.mcpServers
4003
4015
  );
4004
- const loadResult = _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0,
4016
+ const loadResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
4005
4017
  await client.loadSession({ sessionId, ...replacementLoadParams })
4006
4018
  );
4007
4019
  const session = new DroidSession(
@@ -4020,7 +4032,7 @@ async function resumeSession(sessionId, options = {}) {
4020
4032
  return session;
4021
4033
  } catch (error) {
4022
4034
  cleanupLoadAbortSignal();
4023
- await _optionalChain([sdkMcpServers, 'optionalAccess', _63 => _63.cleanup, 'call', _64 => _64()]);
4035
+ await _optionalChain([sdkMcpServers, 'optionalAccess', _65 => _65.cleanup, 'call', _66 => _66()]);
4024
4036
  await closeQuietly(client);
4025
4037
  throw error;
4026
4038
  }
@@ -4034,7 +4046,7 @@ async function run(prompt, options = {}) {
4034
4046
  ...options,
4035
4047
  includePartialMessages: false
4036
4048
  })) {
4037
- if (msg.type === _chunk4G2RKM2Hjs.DroidMessageType.Result) {
4049
+ if (msg.type === _chunkYSKO6SPTjs.DroidMessageType.Result) {
4038
4050
  return msg;
4039
4051
  }
4040
4052
  }
@@ -4109,11 +4121,11 @@ function loadSettingsFile(directory, sessionId) {
4109
4121
  if (!buf) return null;
4110
4122
  const parsed = parseJsonBuffer(buf);
4111
4123
  if (parsed === null) return null;
4112
- const result = _chunk4G2RKM2Hjs.SessionSettingsFileSchema.safeParse(parsed);
4124
+ const result = _chunkYSKO6SPTjs.SessionSettingsFileSchema.safeParse(parsed);
4113
4125
  return result.success ? result.data : null;
4114
4126
  }
4115
4127
  function getMissionMetadataFromTags(settings) {
4116
- if (!_optionalChain([settings, 'optionalAccess', _65 => _65.tags])) return {};
4128
+ if (!_optionalChain([settings, 'optionalAccess', _67 => _67.tags])) return {};
4117
4129
  const missionTag = settings.tags.find(
4118
4130
  (tag) => tag.name.startsWith(MISSION_TAG_PREFIX)
4119
4131
  );
@@ -4121,8 +4133,8 @@ function getMissionMetadataFromTags(settings) {
4121
4133
  (tag) => tag.name === DECOMP_SESSION_TYPE_TAG
4122
4134
  );
4123
4135
  return {
4124
- decompMissionId: _optionalChain([missionTag, 'optionalAccess', _66 => _66.metadata, 'optionalAccess', _67 => _67[MISSION_ID_METADATA_KEY]]),
4125
- decompSessionType: _optionalChain([roleTag, 'optionalAccess', _68 => _68.metadata, 'optionalAccess', _69 => _69[DECOMP_SESSION_TYPE_METADATA_KEY]])
4136
+ decompMissionId: _optionalChain([missionTag, 'optionalAccess', _68 => _68.metadata, 'optionalAccess', _69 => _69[MISSION_ID_METADATA_KEY]]),
4137
+ decompSessionType: _optionalChain([roleTag, 'optionalAccess', _70 => _70.metadata, 'optionalAccess', _71 => _71[DECOMP_SESSION_TYPE_METADATA_KEY]])
4126
4138
  };
4127
4139
  }
4128
4140
  function parseSessionFile(candidate, ctx) {
@@ -4131,7 +4143,7 @@ function parseSessionFile(candidate, ctx) {
4131
4143
  const scanned = scanBufferForLines(buf);
4132
4144
  const firstParsed = parseJsonBuffer(scanned.firstLine);
4133
4145
  if (firstParsed === null) return null;
4134
- const firstResult = _chunk4G2RKM2Hjs.SessionStartEventSchema.safeParse(firstParsed);
4146
+ const firstResult = _chunkYSKO6SPTjs.SessionStartEventSchema.safeParse(firstParsed);
4135
4147
  if (!firstResult.success) return null;
4136
4148
  const summary = firstResult.data;
4137
4149
  if (ctx.requiredCwd !== void 0 && (summary.cwd === void 0 || path2.resolve(summary.cwd) !== ctx.requiredCwd)) {
@@ -4139,9 +4151,9 @@ function parseSessionFile(candidate, ctx) {
4139
4151
  }
4140
4152
  const settingsName = `${candidate.sessionId}${SETTINGS_SUFFIX}`;
4141
4153
  const settings = candidate.siblingNames.has(settingsName) ? loadSettingsFile(candidate.directory, candidate.sessionId) : null;
4142
- if (_optionalChain([settings, 'optionalAccess', _70 => _70.archivedAt])) return null;
4154
+ if (_optionalChain([settings, 'optionalAccess', _72 => _72.archivedAt])) return null;
4143
4155
  const tagMeta = getMissionMetadataFromTags(settings);
4144
- const decompSessionType = _nullishCoalesce(summary.decompSessionType, () => ( _chunk4G2RKM2Hjs.SessionStartDecompSessionTypeSchema.safeParse(tagMeta.decompSessionType).data));
4156
+ const decompSessionType = _nullishCoalesce(summary.decompSessionType, () => ( _chunkYSKO6SPTjs.SessionStartDecompSessionTypeSchema.safeParse(tagMeta.decompSessionType).data));
4145
4157
  const messageCount = Math.max(0, scanned.nonEmptyLineCount - 1);
4146
4158
  return {
4147
4159
  id: candidate.sessionId,
@@ -4273,7 +4285,7 @@ async function listModels(options = {}) {
4273
4285
  const response = await client.listModels({
4274
4286
  ...includeDisabled !== void 0 && { includeDisabled }
4275
4287
  });
4276
- return _chunk4G2RKM2Hjs.unwrapResponseResult.call(void 0, response).models;
4288
+ return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, response).models;
4277
4289
  } finally {
4278
4290
  await closeQuietly(client);
4279
4291
  }
@@ -4727,5 +4739,6 @@ async function listModels(options = {}) {
4727
4739
 
4728
4740
 
4729
4741
 
4730
- exports.AbortError = _chunk4G2RKM2Hjs.AbortError; exports.AddMcpServerRequestParamsSchema = _chunk4G2RKM2Hjs.AddMcpServerRequestParamsSchema; exports.AddMcpServerRequestSchema = _chunk4G2RKM2Hjs.AddMcpServerRequestSchema; exports.AddMcpServerResponseSchema = _chunk4G2RKM2Hjs.AddMcpServerResponseSchema; exports.AddMcpServerResultSchema = _chunk4G2RKM2Hjs.AddMcpServerResultSchema; exports.AddUserMessageRequestParamsSchema = _chunk4G2RKM2Hjs.AddUserMessageRequestParamsSchema; exports.AddUserMessageRequestSchema = _chunk4G2RKM2Hjs.AddUserMessageRequestSchema; exports.AddUserMessageResponseSchema = _chunk4G2RKM2Hjs.AddUserMessageResponseSchema; exports.AddUserMessageResultSchema = _chunk4G2RKM2Hjs.AddUserMessageResultSchema; exports.ApplyPatchToolConfirmationDetailsSchema = _chunk4G2RKM2Hjs.ApplyPatchToolConfirmationDetailsSchema; exports.AskUserCollectedAnswerSchema = _chunk4G2RKM2Hjs.AskUserCollectedAnswerSchema; exports.AskUserConfirmationDetailsSchema = _chunk4G2RKM2Hjs.AskUserConfirmationDetailsSchema; exports.AskUserQuestionSchema = _chunk4G2RKM2Hjs.AskUserQuestionSchema; exports.AskUserRequestParamsSchema = _chunk4G2RKM2Hjs.AskUserRequestParamsSchema; exports.AskUserRequestSchema = _chunk4G2RKM2Hjs.AskUserRequestSchema; exports.AskUserResponseSchema = _chunk4G2RKM2Hjs.AskUserResponseSchema; exports.AskUserResultSchema = _chunk4G2RKM2Hjs.AskUserResultSchema; exports.AssistantTextCompleteNotificationSchema = _chunk4G2RKM2Hjs.AssistantTextCompleteNotificationSchema; exports.AssistantTextDeltaNotificationSchema = _chunk4G2RKM2Hjs.AssistantTextDeltaNotificationSchema; exports.AuthenticateMcpServerRequestParamsSchema = _chunk4G2RKM2Hjs.AuthenticateMcpServerRequestParamsSchema; exports.AuthenticateMcpServerRequestSchema = _chunk4G2RKM2Hjs.AuthenticateMcpServerRequestSchema; exports.AuthenticateMcpServerResponseSchema = _chunk4G2RKM2Hjs.AuthenticateMcpServerResponseSchema; exports.AuthenticateMcpServerResultSchema = _chunk4G2RKM2Hjs.AuthenticateMcpServerResultSchema; exports.AutonomyLevel = _chunk4G2RKM2Hjs.AutonomyLevel; exports.AvailableModelConfigSchema = _chunk4G2RKM2Hjs.AvailableModelConfigSchema; exports.Base64ImageSourceSchema = _chunk4G2RKM2Hjs.Base64ImageSourceSchema; exports.BaseNotificationSchema = _chunk4G2RKM2Hjs.BaseNotificationSchema; exports.BaseRequestSchema = _chunk4G2RKM2Hjs.BaseRequestSchema; exports.BaseResponseFailureSchema = _chunk4G2RKM2Hjs.BaseResponseFailureSchema; exports.BaseResponseSuccessSchema = _chunk4G2RKM2Hjs.BaseResponseSuccessSchema; exports.CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC = CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC; exports.COMPACTION_TIMEOUT = _chunk4G2RKM2Hjs.COMPACTION_TIMEOUT; exports.CancelMcpAuthRequestParamsSchema = _chunk4G2RKM2Hjs.CancelMcpAuthRequestParamsSchema; exports.CancelMcpAuthRequestSchema = _chunk4G2RKM2Hjs.CancelMcpAuthRequestSchema; exports.CancelMcpAuthResponseSchema = _chunk4G2RKM2Hjs.CancelMcpAuthResponseSchema; exports.CancelMcpAuthResultSchema = _chunk4G2RKM2Hjs.CancelMcpAuthResultSchema; exports.ChangeWorkingDirectoryRequestParamsSchema = _chunk4G2RKM2Hjs.ChangeWorkingDirectoryRequestParamsSchema; exports.ChangeWorkingDirectoryRequestSchema = _chunk4G2RKM2Hjs.ChangeWorkingDirectoryRequestSchema; exports.ChangeWorkingDirectoryResponseSchema = _chunk4G2RKM2Hjs.ChangeWorkingDirectoryResponseSchema; exports.ChangeWorkingDirectoryResultSchema = _chunk4G2RKM2Hjs.ChangeWorkingDirectoryResultSchema; exports.ClearMcpAuthRequestParamsSchema = _chunk4G2RKM2Hjs.ClearMcpAuthRequestParamsSchema; exports.ClearMcpAuthRequestSchema = _chunk4G2RKM2Hjs.ClearMcpAuthRequestSchema; exports.ClearMcpAuthResponseSchema = _chunk4G2RKM2Hjs.ClearMcpAuthResponseSchema; exports.ClearMcpAuthResultSchema = _chunk4G2RKM2Hjs.ClearMcpAuthResultSchema; exports.CliRequestOrNotificationSchema = _chunk4G2RKM2Hjs.CliRequestOrNotificationSchema; exports.ClientDestroyedError = _chunk4G2RKM2Hjs.ClientDestroyedError; exports.ClientRequestSchema = _chunk4G2RKM2Hjs.ClientRequestSchema; exports.ClientUiSurface = _chunk4G2RKM2Hjs.ClientUiSurface; exports.CloseSessionRequestParamsSchema = _chunk4G2RKM2Hjs.CloseSessionRequestParamsSchema; exports.CloseSessionRequestSchema = _chunk4G2RKM2Hjs.CloseSessionRequestSchema; exports.CloseSessionResponseSchema = _chunk4G2RKM2Hjs.CloseSessionResponseSchema; exports.CloseSessionResultSchema = _chunk4G2RKM2Hjs.CloseSessionResultSchema; exports.CompactSessionRequestParamsSchema = _chunk4G2RKM2Hjs.CompactSessionRequestParamsSchema; exports.CompactSessionRequestSchema = _chunk4G2RKM2Hjs.CompactSessionRequestSchema; exports.CompactSessionResponseSchema = _chunk4G2RKM2Hjs.CompactSessionResponseSchema; exports.CompactSessionResultSchema = _chunk4G2RKM2Hjs.CompactSessionResultSchema; exports.ComputeLimitExceededError = _chunk4G2RKM2Hjs.ComputeLimitExceededError; exports.ComputerConnectAttemptTrigger = _chunk4G2RKM2Hjs.ComputerConnectAttemptTrigger; exports.ComputerConnectStartType = _chunk4G2RKM2Hjs.ComputerConnectStartType; exports.ComputerListResponseSchema = _chunk4G2RKM2Hjs.ComputerListResponseSchema; exports.ComputerMetricSchema = _chunk4G2RKM2Hjs.ComputerMetricSchema; exports.ComputerMetricsResponseSchema = _chunk4G2RKM2Hjs.ComputerMetricsResponseSchema; exports.ComputerSchema = _chunk4G2RKM2Hjs.ComputerSchema; exports.ConcurrentStreamError = _chunk4G2RKM2Hjs.ConcurrentStreamError; exports.ConnectionClosedError = _chunk4G2RKM2Hjs.ConnectionClosedError; exports.ConnectionError = _chunk4G2RKM2Hjs.ConnectionError; exports.ConnectionFailureReason = _chunk4G2RKM2Hjs.ConnectionFailureReason; exports.ContentBlockSchema = _chunk4G2RKM2Hjs.ContentBlockSchema; exports.ContextBreakdownCategorySchema = _chunk4G2RKM2Hjs.ContextBreakdownCategorySchema; exports.ContextBreakdownResultSchema = _chunk4G2RKM2Hjs.GetContextBreakdownResultSchema; exports.ContextStatsAccuracy = _chunk4G2RKM2Hjs.ContextStatsAccuracy; exports.ContextStatsSchema = _chunk4G2RKM2Hjs.ContextStatsSchema; exports.CreateMessageNotificationSchema = _chunk4G2RKM2Hjs.CreateMessageNotificationSchema; exports.CreateToolConfirmationDetailsSchema = _chunk4G2RKM2Hjs.CreateToolConfirmationDetailsSchema; exports.DEFAULT_LOCAL_DAEMON_WS_URL = _chunk4G2RKM2Hjs.DEFAULT_LOCAL_DAEMON_WS_URL; exports.DEFAULT_REQUEST_TIMEOUT = _chunk4G2RKM2Hjs.DEFAULT_REQUEST_TIMEOUT; exports.DaemonAuthenticationMode = _chunk4G2RKM2Hjs.DaemonAuthenticationMode; exports.DaemonClient = _chunk4G2RKM2Hjs.DaemonClient; exports.DaemonClientMetaError = _chunk4G2RKM2Hjs.MetaError; exports.DaemonDroidEvent = _chunk4G2RKM2Hjs.DaemonDroidEvent; exports.DaemonRequestPermissionSchema = _chunk4G2RKM2Hjs.DaemonRequestPermissionSchema; exports.DaemonSessionController = _chunk4G2RKM2Hjs.DaemonSessionController; exports.DecompSessionType = _chunk4G2RKM2Hjs.DecompSessionType; exports.DiscoveredIssueSchema = _chunk4G2RKM2Hjs.DiscoveredIssueSchema; exports.DismissalRecordSchema = _chunk4G2RKM2Hjs.DismissalRecordSchema; exports.DismissalType = _chunk4G2RKM2Hjs.DismissalType; exports.DocumentBlockSchema = _chunk4G2RKM2Hjs.DocumentBlockSchema; exports.DocumentSourceSchema = _chunk4G2RKM2Hjs.DocumentSourceSchema; exports.DroidClient = DroidClient; exports.DroidClientError = _chunk4G2RKM2Hjs.DroidClientError; exports.DroidClientEvent = DroidClientEvent; exports.DroidClientMethod = _chunk4G2RKM2Hjs.DroidClientMethod; exports.DroidErrorType = _chunk4G2RKM2Hjs.DroidErrorType; exports.DroidEvent = _chunk4G2RKM2Hjs.DroidEvent; exports.DroidHookEventSchema = _chunk4G2RKM2Hjs.DroidHookEventSchema; exports.DroidHookExecutionResultSchema = _chunk4G2RKM2Hjs.DroidHookExecutionResultSchema; exports.DroidHookOutputSchema = _chunk4G2RKM2Hjs.DroidHookOutputSchema; exports.DroidHookSpecificOutputSchema = _chunk4G2RKM2Hjs.DroidHookSpecificOutputSchema; exports.DroidInteractionMode = _chunk4G2RKM2Hjs.DroidInteractionMode; exports.DroidMessageType = _chunk4G2RKM2Hjs.DroidMessageType; exports.DroidProcessManager = DroidProcessManager; exports.DroidProcessMode = DroidProcessMode; exports.DroidServerMethod = _chunk4G2RKM2Hjs.DroidServerMethod; exports.DroidSession = DroidSession; exports.DroidWorkingState = _chunk4G2RKM2Hjs.DroidWorkingState; exports.DroidWorkingStateChangedNotificationSchema = _chunk4G2RKM2Hjs.DroidWorkingStateChangedNotificationSchema; exports.EditToolConfirmationDetailsSchema = _chunk4G2RKM2Hjs.EditToolConfirmationDetailsSchema; exports.EmptyResultSchema = _chunk4G2RKM2Hjs.EmptyResultSchema; exports.ErrorDetailSchema = _chunk4G2RKM2Hjs.ErrorDetailSchema; exports.ErrorNotificationSchema = _chunk4G2RKM2Hjs.ErrorNotificationSchema; exports.ExecToolInfoSchema = _chunk4G2RKM2Hjs.ExecToolInfoSchema; exports.ExecuteRewindRequestParamsSchema = _chunk4G2RKM2Hjs.ExecuteRewindRequestParamsSchema; exports.ExecuteRewindRequestSchema = _chunk4G2RKM2Hjs.ExecuteRewindRequestSchema; exports.ExecuteRewindResponseSchema = _chunk4G2RKM2Hjs.ExecuteRewindResponseSchema; exports.ExecuteRewindResultSchema = _chunk4G2RKM2Hjs.ExecuteRewindResultSchema; exports.ExecuteToolConfirmationDetailsSchema = _chunk4G2RKM2Hjs.ExecuteToolConfirmationDetailsSchema; exports.ExitSpecModeConfirmationDetailsSchema = _chunk4G2RKM2Hjs.ExitSpecModeConfirmationDetailsSchema; exports.FACTORY_CLIENT_HEADER = _chunk4G2RKM2Hjs.FACTORY_CLIENT_HEADER; exports.FACTORY_CLIENT_VERSION = _chunk4G2RKM2Hjs.FACTORY_CLIENT_VERSION; exports.FACTORY_PROTOCOL_VERSION = _chunk4G2RKM2Hjs.FACTORY_PROTOCOL_VERSION2; exports.FactoryDaemonTransport = _chunk4G2RKM2Hjs.FactoryDaemonTransport; exports.FactoryDroidMessageRole = _chunk4G2RKM2Hjs.FactoryDroidMessageRole; exports.FactoryDroidMessageSchema = _chunk4G2RKM2Hjs.FactoryDroidMessageSchema; exports.FeatureStatus = _chunk4G2RKM2Hjs.FeatureStatus; exports.FeatureSuccessState = _chunk4G2RKM2Hjs.FeatureSuccessState; exports.FeatureSuccessStateSchema = _chunk4G2RKM2Hjs.FeatureSuccessStateSchema; exports.ForkSessionRequestParamsSchema = _chunk4G2RKM2Hjs.ForkSessionRequestParamsSchema; exports.ForkSessionRequestSchema = _chunk4G2RKM2Hjs.ForkSessionRequestSchema; exports.ForkSessionResponseSchema = _chunk4G2RKM2Hjs.ForkSessionResponseSchema; exports.ForkSessionResultSchema = _chunk4G2RKM2Hjs.ForkSessionResultSchema; exports.GetContextStatsRequestParamsSchema = _chunk4G2RKM2Hjs.GetContextStatsRequestParamsSchema; exports.GetContextStatsRequestSchema = _chunk4G2RKM2Hjs.GetContextStatsRequestSchema; exports.GetContextStatsResponseSchema = _chunk4G2RKM2Hjs.GetContextStatsResponseSchema; exports.GetContextStatsResultSchema = _chunk4G2RKM2Hjs.ContextStatsSchema; exports.GetRewindInfoRequestParamsSchema = _chunk4G2RKM2Hjs.GetRewindInfoRequestParamsSchema; exports.GetRewindInfoRequestSchema = _chunk4G2RKM2Hjs.GetRewindInfoRequestSchema; exports.GetRewindInfoResponseSchema = _chunk4G2RKM2Hjs.GetRewindInfoResponseSchema; exports.GetRewindInfoResultSchema = _chunk4G2RKM2Hjs.GetRewindInfoResultSchema; exports.GitRepoInfoSchema = _chunk4G2RKM2Hjs.GitRepoInfoSchema; exports.HandoffItemsDismissedEntrySchema = _chunk4G2RKM2Hjs.HandoffItemsDismissedEntrySchema; exports.HandoffSchema = _chunk4G2RKM2Hjs.HandoffSchema; exports.HookCommandSchema = _chunk4G2RKM2Hjs.HookCommandSchema; exports.HookExecutionCompletedNotificationSchema = _chunk4G2RKM2Hjs.HookExecutionCompletedNotificationSchema; exports.HookExecutionStartedNotificationSchema = _chunk4G2RKM2Hjs.HookExecutionStartedNotificationSchema; exports.HookResultSchema = _chunk4G2RKM2Hjs.HookResultSchema; exports.HttpHeaderSchema = _chunk4G2RKM2Hjs.HttpHeaderSchema; exports.HttpMcpConfigSchema = _chunk4G2RKM2Hjs.HttpMcpSchema; exports.IPC_DAEMON_URL = _chunk4G2RKM2Hjs.IPC_DAEMON_URL; exports.ImageBlockSchema = _chunk4G2RKM2Hjs.ImageBlockSchema; exports.InProcessDaemonClientTransport = _chunk4G2RKM2Hjs.InProcessDaemonClientTransport; exports.InitializeSessionRequestParamsSchema = _chunk4G2RKM2Hjs.InitializeSessionRequestParamsSchema; exports.InitializeSessionRequestSchema = _chunk4G2RKM2Hjs.InitializeSessionRequestSchema; exports.InitializeSessionResponseSchema = _chunk4G2RKM2Hjs.InitializeSessionResponseSchema; exports.InitializeSessionResultSchema = _chunk4G2RKM2Hjs.InitializeSessionResultSchema2; exports.InteractiveCheckSchema = _chunk4G2RKM2Hjs.InteractiveCheckSchema; exports.InterruptSessionRequestParamsSchema = _chunk4G2RKM2Hjs.InterruptSessionRequestParamsSchema; exports.InterruptSessionRequestSchema = _chunk4G2RKM2Hjs.InterruptSessionRequestSchema; exports.InterruptSessionResponseSchema = _chunk4G2RKM2Hjs.InterruptSessionResponseSchema; exports.InterruptSessionResultSchema = _chunk4G2RKM2Hjs.InterruptSessionResultSchema; exports.InvalidSessionCwdError = _chunk4G2RKM2Hjs.InvalidSessionCwdError; exports.IpcDaemonClientTransport = _chunk4G2RKM2Hjs.IpcDaemonClientTransport; exports.IssueSeverity = _chunk4G2RKM2Hjs.IssueSeverity; exports.JSONRPC_VERSION = _chunk4G2RKM2Hjs.JSONRPC_VERSION3; exports.JsonArraySchema = _chunk4G2RKM2Hjs.JsonArraySchema; exports.JsonObjectSchema = _chunk4G2RKM2Hjs.JsonObjectSchema; exports.JsonRpcEnvelopeSchema = _chunk4G2RKM2Hjs.JsonRpcEnvelopeSchema; exports.JsonRpcErrorCode = _chunk4G2RKM2Hjs.JsonRpcErrorCode; exports.JsonRpcErrorSchema = _chunk4G2RKM2Hjs.JsonRpcErrorSchema; exports.JsonRpcMessageSchema = _chunk4G2RKM2Hjs.JsonRpcMessageSchema; exports.JsonRpcMessageType = _chunk4G2RKM2Hjs.JsonRpcMessageType; exports.JsonRpcNotificationSchema = _chunk4G2RKM2Hjs.JsonRpcNotificationSchema; exports.JsonRpcRequestError = _chunk4G2RKM2Hjs.JsonRpcRequestError; exports.JsonRpcRequestSchema = _chunk4G2RKM2Hjs.JsonRpcRequestSchema; exports.JsonRpcResponseFailureSchema = _chunk4G2RKM2Hjs.JsonRpcResponseFailureSchema; exports.JsonRpcResponseSchema = _chunk4G2RKM2Hjs.JsonRpcResponseSchema; exports.JsonRpcResponseSuccessSchema = _chunk4G2RKM2Hjs.JsonRpcResponseSuccessSchema; exports.JsonValueSchema = _chunk4G2RKM2Hjs.JsonValueSchema; exports.KillWorkerSessionRequestParamsSchema = _chunk4G2RKM2Hjs.KillWorkerSessionRequestParamsSchema; exports.KillWorkerSessionRequestSchema = _chunk4G2RKM2Hjs.KillWorkerSessionRequestSchema; exports.KillWorkerSessionResponseSchema = _chunk4G2RKM2Hjs.KillWorkerSessionResponseSchema; exports.KillWorkerSessionResultSchema = _chunk4G2RKM2Hjs.KillWorkerSessionResultSchema; exports.LEGACY_FACTORY_API_VERSION = _chunk4G2RKM2Hjs.LEGACY_FACTORY_API_VERSION2; exports.LOCAL_MACHINE_ID = _chunk4G2RKM2Hjs.LOCAL_MACHINE_ID; exports.ListMcpRegistryRequestParamsSchema = _chunk4G2RKM2Hjs.ListMcpRegistryRequestParamsSchema; exports.ListMcpRegistryRequestSchema = _chunk4G2RKM2Hjs.ListMcpRegistryRequestSchema; exports.ListMcpRegistryResponseSchema = _chunk4G2RKM2Hjs.ListMcpRegistryResponseSchema; exports.ListMcpRegistryResultSchema = _chunk4G2RKM2Hjs.ListMcpRegistryResultSchema; exports.ListMcpServersRequestParamsSchema = _chunk4G2RKM2Hjs.ListMcpServersRequestParamsSchema; exports.ListMcpServersRequestSchema = _chunk4G2RKM2Hjs.ListMcpServersRequestSchema; exports.ListMcpServersResponseSchema = _chunk4G2RKM2Hjs.ListMcpServersResponseSchema; exports.ListMcpServersResultSchema = _chunk4G2RKM2Hjs.ListMcpServersResultSchema; exports.ListMcpToolsRequestParamsSchema = _chunk4G2RKM2Hjs.ListMcpToolsRequestParamsSchema; exports.ListMcpToolsRequestSchema = _chunk4G2RKM2Hjs.ListMcpToolsRequestSchema; exports.ListMcpToolsResponseSchema = _chunk4G2RKM2Hjs.ListMcpToolsResponseSchema; exports.ListMcpToolsResultSchema = _chunk4G2RKM2Hjs.ListMcpToolsResultSchema; exports.ListModelsOptionsSchema = _chunk4G2RKM2Hjs.ListModelsOptionsSchema; exports.ListModelsResultSchema = _chunk4G2RKM2Hjs.ListModelsResultSchema; exports.ListSkillsRequestParamsSchema = _chunk4G2RKM2Hjs.ListSkillsRequestParamsSchema; exports.ListSkillsRequestSchema = _chunk4G2RKM2Hjs.ListSkillsRequestSchema; exports.ListSkillsResponseSchema = _chunk4G2RKM2Hjs.ListSkillsResponseSchema; exports.ListSkillsResultSchema = _chunk4G2RKM2Hjs.ListSkillsResultSchema; exports.ListToolsRequestParamsSchema = _chunk4G2RKM2Hjs.ListToolsRequestParamsSchema; exports.ListToolsRequestSchema = _chunk4G2RKM2Hjs.ListToolsRequestSchema; exports.ListToolsResponseSchema = _chunk4G2RKM2Hjs.ListToolsResponseSchema; exports.ListToolsResultSchema = _chunk4G2RKM2Hjs.ListToolsResultSchema; exports.LoadSessionRequestParamsSchema = _chunk4G2RKM2Hjs.LoadSessionRequestParamsSchema; exports.LoadSessionRequestSchema = _chunk4G2RKM2Hjs.LoadSessionRequestSchema; exports.LoadSessionResponseSchema = _chunk4G2RKM2Hjs.LoadSessionResponseSchema; exports.LoadSessionResultSchema = _chunk4G2RKM2Hjs.LoadSessionResultSchema; exports.MACHINE_TYPE_WEBSOCKET_OVERRIDES = _chunk4G2RKM2Hjs.MACHINE_TYPE_WEBSOCKET_OVERRIDES; exports.MANAGED_COMPUTER_MAX_RETRIES = _chunk4G2RKM2Hjs.MANAGED_COMPUTER_MAX_RETRIES; exports.MCP_AUTH_TIMEOUT = _chunk4G2RKM2Hjs.MCP_AUTH_TIMEOUT; exports.MachineTemplateBuildStatusSchema = _chunk4G2RKM2Hjs.MachineTemplateBuildStatusSchema; exports.MachineTemplateListResponseSchema = _chunk4G2RKM2Hjs.MachineTemplateListResponseSchema; exports.MachineTemplateSchema = _chunk4G2RKM2Hjs.MachineTemplateSchema; exports.MachineType = _chunk4G2RKM2Hjs.MachineType; exports.ManagedProcessImpl = ManagedProcessImpl; exports.McpAuthCompletedNotificationSchema = _chunk4G2RKM2Hjs.McpAuthCompletedNotificationSchema; exports.McpAuthOutcome = _chunk4G2RKM2Hjs.McpAuthOutcome; exports.McpAuthRequiredNotificationSchema = _chunk4G2RKM2Hjs.McpAuthRequiredNotificationSchema; exports.McpHttpServerConfigFieldsSchema = _chunk4G2RKM2Hjs.McpHttpServerConfigFieldsSchema; exports.McpRegistryServerSchema = _chunk4G2RKM2Hjs.McpRegistryServerSchema; exports.McpServerConfigSchema = _chunk4G2RKM2Hjs.McpServerConfigSchema; exports.McpServerStatus = _chunk4G2RKM2Hjs.McpServerStatus; exports.McpServerStatusInfoSchema = _chunk4G2RKM2Hjs.McpServerStatusInfoSchema; exports.McpServerType = _chunk4G2RKM2Hjs.McpServerType; exports.McpSseServerConfigFieldsSchema = _chunk4G2RKM2Hjs.McpSseServerConfigFieldsSchema; exports.McpStatus = _chunk4G2RKM2Hjs.McpStatus; exports.McpStatusChangedNotificationSchema = _chunk4G2RKM2Hjs.McpStatusChangedNotificationSchema; exports.McpStatusSummarySchema = _chunk4G2RKM2Hjs.McpStatusSummarySchema; exports.McpStdioServerConfigFieldsSchema = _chunk4G2RKM2Hjs.McpStdioServerConfigFieldsSchema; exports.McpToolConfirmationDetailsSchema = _chunk4G2RKM2Hjs.McpToolConfirmationDetailsSchema; exports.McpToolInfoSchema = _chunk4G2RKM2Hjs.McpToolInfoSchema; exports.McpToolInputSchemaSchema = _chunk4G2RKM2Hjs.McpToolInputSchemaSchema; exports.MessageVisibility = _chunk4G2RKM2Hjs.MessageVisibility; exports.Metric = _chunk4G2RKM2Hjs.Metric; exports.MilestoneValidationTriggeredEntrySchema = _chunk4G2RKM2Hjs.MilestoneValidationTriggeredEntrySchema; exports.MissionAcceptedEntrySchema = _chunk4G2RKM2Hjs.MissionAcceptedEntrySchema; exports.MissionFeatureSchema = _chunk4G2RKM2Hjs.MissionFeatureSchema; exports.MissionFeaturesChangedNotificationSchema = _chunk4G2RKM2Hjs.MissionFeaturesChangedNotificationSchema; exports.MissionHeartbeatNotificationSchema = _chunk4G2RKM2Hjs.MissionHeartbeatNotificationSchema; exports.MissionPausedEntrySchema = _chunk4G2RKM2Hjs.MissionPausedEntrySchema; exports.MissionProgressEntryNotificationSchema = _chunk4G2RKM2Hjs.MissionProgressEntryNotificationSchema; exports.MissionResumedEntrySchema = _chunk4G2RKM2Hjs.MissionResumedEntrySchema; exports.MissionRunStartedEntrySchema = _chunk4G2RKM2Hjs.MissionRunStartedEntrySchema; exports.MissionSnapshotSchema = _chunk4G2RKM2Hjs.MissionStateSchema; exports.MissionState = _chunk4G2RKM2Hjs.MissionState; exports.MissionStateChangedNotificationSchema = _chunk4G2RKM2Hjs.MissionStateChangedNotificationSchema; exports.MissionWorkerCompletedNotificationSchema = _chunk4G2RKM2Hjs.MissionWorkerCompletedNotificationSchema; exports.MissionWorkerStartedNotificationSchema = _chunk4G2RKM2Hjs.MissionWorkerStartedNotificationSchema; exports.ModelInfoSchema = _chunk4G2RKM2Hjs.ModelInfoSchema; exports.ModelMetadataSchema = _chunk4G2RKM2Hjs.ModelMetadataSchema; exports.ModelProvider = _chunk4G2RKM2Hjs.ModelProvider; exports.MultiMissionStateManager = _chunk4G2RKM2Hjs.MultiMissionStateManager; exports.MultiSessionStateManager = _chunk4G2RKM2Hjs.MultiSessionStateManager; exports.OtelTracing = _chunk4G2RKM2Hjs.OtelTracing; exports.OutputFormatSchema = _chunk4G2RKM2Hjs.OutputFormatSchema; exports.OutputFormatType = _chunk4G2RKM2Hjs.OutputFormatType; exports.PermissionResolvedNotificationSchema = _chunk4G2RKM2Hjs.PermissionResolvedNotificationSchema; exports.ProcessExitError = _chunk4G2RKM2Hjs.ProcessExitError; exports.ProcessTransport = ProcessTransport; exports.ProgressLogEntrySchema = _chunk4G2RKM2Hjs.ProgressLogEntrySchema; exports.ProgressLogEntryType = _chunk4G2RKM2Hjs.ProgressLogEntryType; exports.ProposeMissionConfirmationDetailsSchema = _chunk4G2RKM2Hjs.ProposeMissionConfirmationDetailsSchema; exports.ProtocolError = _chunk4G2RKM2Hjs.ProtocolError; exports.QueuedUserMessageDisplayGroup = _chunk4G2RKM2Hjs.QueuedUserMessageDisplayGroup; exports.QueuedUserMessageKind = _chunk4G2RKM2Hjs.QueuedUserMessageKind; exports.REWIND_TIMEOUT = _chunk4G2RKM2Hjs.REWIND_TIMEOUT; exports.ReasoningEffort = _chunk4G2RKM2Hjs.ReasoningEffort; exports.RedactedThinkingBlockSchema = _chunk4G2RKM2Hjs.RedactedThinkingBlockSchema; exports.RefreshComputerResponseSchema = _chunk4G2RKM2Hjs.RefreshComputerResponseSchema; exports.RelayConnectionError = _chunk4G2RKM2Hjs.RelayConnectionError; exports.RemoteSessionListResponseSchema = _chunk4G2RKM2Hjs.RemoteSessionListResponseSchema; exports.RemoteSessionSchema = _chunk4G2RKM2Hjs.RemoteSessionSchema; exports.RemoveMcpServerRequestParamsSchema = _chunk4G2RKM2Hjs.RemoveMcpServerRequestParamsSchema; exports.RemoveMcpServerRequestSchema = _chunk4G2RKM2Hjs.RemoveMcpServerRequestSchema; exports.RemoveMcpServerResponseSchema = _chunk4G2RKM2Hjs.RemoveMcpServerResponseSchema; exports.RemoveMcpServerResultSchema = _chunk4G2RKM2Hjs.RemoveMcpServerResultSchema; exports.RenameSessionRequestParamsSchema = _chunk4G2RKM2Hjs.RenameSessionRequestParamsSchema; exports.RenameSessionRequestSchema = _chunk4G2RKM2Hjs.RenameSessionRequestSchema; exports.RenameSessionResponseSchema = _chunk4G2RKM2Hjs.RenameSessionResponseSchema; exports.RenameSessionResultSchema = _chunk4G2RKM2Hjs.RenameSessionResultSchema; exports.RequestPermissionRequestParamsSchema = _chunk4G2RKM2Hjs.RequestPermissionRequestParamsSchema; exports.RequestPermissionRequestSchema = _chunk4G2RKM2Hjs.RequestPermissionRequestSchema; exports.RequestPermissionResponseSchema = _chunk4G2RKM2Hjs.RequestPermissionResponseSchema; exports.RequestPermissionResultSchema = _chunk4G2RKM2Hjs.RequestPermissionResultSchema; exports.RewindEvictedFileSchema = _chunk4G2RKM2Hjs.RewindEvictedFileSchema; exports.RewindFileCreationSchema = _chunk4G2RKM2Hjs.RewindFileCreationSchema; exports.RewindFileSnapshotSchema = _chunk4G2RKM2Hjs.RewindFileSnapshotSchema; exports.SDK_TAG = _chunk4G2RKM2Hjs.SDK_TAG; exports.SDK_VERSION = _chunk4G2RKM2Hjs.SDK_VERSION; exports.SESSION_INIT_TIMEOUT = _chunk4G2RKM2Hjs.SESSION_INIT_TIMEOUT; exports.SLACK_DELEGATION_MAX_RETRIES = _chunk4G2RKM2Hjs.SLACK_DELEGATION_MAX_RETRIES; exports.SdkMcpServer = SdkMcpServer; exports.ServerRequestHandlerType = _chunk4G2RKM2Hjs.ServerRequestHandlerType; exports.SessionError = _chunk4G2RKM2Hjs.SessionError; exports.SessionMetadataSchema = _chunk4G2RKM2Hjs.SessionMetadataSchema; exports.SessionNotFoundError = _chunk4G2RKM2Hjs.SessionNotFoundError; exports.SessionNotificationParamsSchema = _chunk4G2RKM2Hjs.SessionNotificationParamsSchema; exports.SessionNotificationPayloadSchema = _chunk4G2RKM2Hjs.SessionNotificationPayloadSchema; exports.SessionNotificationSchema = _chunk4G2RKM2Hjs.SessionNotificationSchema; exports.SessionNotificationSchemaList = _chunk4G2RKM2Hjs.SessionNotificationSchemaList; exports.SessionNotificationType = _chunk4G2RKM2Hjs.SessionNotificationType; exports.SessionPlatform = _chunk4G2RKM2Hjs.SessionPlatform; exports.SessionReplacedError = _chunk4G2RKM2Hjs.SessionReplacedError; exports.SessionReplacementError = _chunk4G2RKM2Hjs.SessionReplacementError; exports.SessionSettingsFileSchema = _chunk4G2RKM2Hjs.SessionSettingsFileSchema; exports.SessionSettingsSchema = _chunk4G2RKM2Hjs.SessionSettingsSchema; exports.SessionSourceSchema = _chunk4G2RKM2Hjs.SessionSourceSchema; exports.SessionStartEventSchema = _chunk4G2RKM2Hjs.SessionStartEventSchema; exports.SessionTagSchema = _chunk4G2RKM2Hjs.SessionTagSchema; exports.SessionTitleUpdatedNotificationSchema = _chunk4G2RKM2Hjs.SessionTitleUpdatedNotificationSchema; exports.SessionTokenUsageChangedNotificationSchema = _chunk4G2RKM2Hjs.SessionTokenUsageChangedNotificationSchema; exports.SetSkillDisabledRequestParamsSchema = _chunk4G2RKM2Hjs.SetSkillDisabledRequestParamsSchema; exports.SetSkillDisabledRequestSchema = _chunk4G2RKM2Hjs.SetSkillDisabledRequestSchema; exports.SetSkillDisabledResponseSchema = _chunk4G2RKM2Hjs.SetSkillDisabledResponseSchema; exports.SetSkillDisabledResultSchema = _chunk4G2RKM2Hjs.SetSkillDisabledResultSchema; exports.SettingsLevel = _chunk4G2RKM2Hjs.SettingsLevel; exports.SettingsUpdatedNotificationSchema = _chunk4G2RKM2Hjs.SettingsUpdatedNotificationSchema; exports.SettingsUpdatedPayloadSchema = _chunk4G2RKM2Hjs.SettingsUpdatedPayloadSchema; exports.SkillDeviationSchema = _chunk4G2RKM2Hjs.SkillDeviationSchema; exports.SkillFeedbackSchema = _chunk4G2RKM2Hjs.SkillFeedbackSchema; exports.SkillInfoSchema = _chunk4G2RKM2Hjs.SkillInfoSchema; exports.SkillLocation = _chunk4G2RKM2Hjs.SkillLocation; exports.SkillResourceSchema = _chunk4G2RKM2Hjs.SkillResourceSchema; exports.SpanAttribute = _chunk4G2RKM2Hjs.SpanAttribute; exports.SpanEvent = _chunk4G2RKM2Hjs.SpanEvent; exports.SpanName = _chunk4G2RKM2Hjs.SpanName; exports.SseMcpConfigSchema = _chunk4G2RKM2Hjs.SseMcpSchema; exports.StartMissionRunConfirmationDetailsSchema = _chunk4G2RKM2Hjs.StartMissionRunConfirmationDetailsSchema; exports.StdioMcpConfigSchema = _chunk4G2RKM2Hjs.StdioMcpSchema; exports.StreamStateTracker = _chunk4G2RKM2Hjs.StreamStateTracker; exports.StructuredOutputErrorSchema = _chunk4G2RKM2Hjs.StructuredOutputErrorSchema; exports.StructuredOutputNotificationSchema = _chunk4G2RKM2Hjs.StructuredOutputNotificationSchema; exports.SubmitBugReportRequestParamsSchema = _chunk4G2RKM2Hjs.SubmitBugReportRequestParamsSchema; exports.SubmitBugReportRequestSchema = _chunk4G2RKM2Hjs.SubmitBugReportRequestSchema; exports.SubmitBugReportResponseSchema = _chunk4G2RKM2Hjs.SubmitBugReportResponseSchema; exports.SubmitBugReportResultSchema = _chunk4G2RKM2Hjs.SubmitBugReportResultSchema; exports.SubmitMcpAuthCodeRequestParamsSchema = _chunk4G2RKM2Hjs.SubmitMcpAuthCodeRequestParamsSchema; exports.SubmitMcpAuthCodeRequestSchema = _chunk4G2RKM2Hjs.SubmitMcpAuthCodeRequestSchema; exports.SubmitMcpAuthCodeResponseSchema = _chunk4G2RKM2Hjs.SubmitMcpAuthCodeResponseSchema; exports.SubmitMcpAuthCodeResultSchema = _chunk4G2RKM2Hjs.SubmitMcpAuthCodeResultSchema; exports.SuccessResultSchema = _chunk4G2RKM2Hjs.SuccessResultSchema; exports.TestCaseSchema = _chunk4G2RKM2Hjs.TestCaseSchema; exports.TestFileSchema = _chunk4G2RKM2Hjs.TestFileSchema; exports.TestsSchema = _chunk4G2RKM2Hjs.TestsSchema; exports.TextBlockSchema = _chunk4G2RKM2Hjs.TextBlockSchema; exports.ThinkingBlockSchema = _chunk4G2RKM2Hjs.ThinkingBlockSchema; exports.ThinkingTextCompleteNotificationSchema = _chunk4G2RKM2Hjs.ThinkingTextCompleteNotificationSchema; exports.ThinkingTextDeltaNotificationSchema = _chunk4G2RKM2Hjs.ThinkingTextDeltaNotificationSchema; exports.TimeoutError = _chunk4G2RKM2Hjs.TimeoutError; exports.ToggleMcpServerRequestParamsSchema = _chunk4G2RKM2Hjs.ToggleMcpServerRequestParamsSchema; exports.ToggleMcpServerRequestSchema = _chunk4G2RKM2Hjs.ToggleMcpServerRequestSchema; exports.ToggleMcpServerResponseSchema = _chunk4G2RKM2Hjs.ToggleMcpServerResponseSchema; exports.ToggleMcpServerResultSchema = _chunk4G2RKM2Hjs.ToggleMcpServerResultSchema; exports.ToggleMcpToolRequestParamsSchema = _chunk4G2RKM2Hjs.ToggleMcpToolRequestParamsSchema; exports.ToggleMcpToolRequestSchema = _chunk4G2RKM2Hjs.ToggleMcpToolRequestSchema; exports.ToggleMcpToolResponseSchema = _chunk4G2RKM2Hjs.ToggleMcpToolResponseSchema; exports.ToggleMcpToolResultSchema = _chunk4G2RKM2Hjs.ToggleMcpToolResultSchema; exports.TokenUsageSchema = _chunk4G2RKM2Hjs.TokenUsageSchema; exports.ToolCallNotificationSchema = _chunk4G2RKM2Hjs.ToolCallNotificationSchema; exports.ToolConfirmationDetailsSchema = _chunk4G2RKM2Hjs.ToolConfirmationDetailsSchema; exports.ToolConfirmationInfoSchema = _chunk4G2RKM2Hjs.ToolConfirmationInfoSchema; exports.ToolConfirmationListItemSchema = _chunk4G2RKM2Hjs.ToolConfirmationListItemSchema; exports.ToolConfirmationOutcome = _chunk4G2RKM2Hjs.ToolConfirmationOutcome; exports.ToolConfirmationType = _chunk4G2RKM2Hjs.ToolConfirmationType; exports.ToolProgressUpdateNotificationSchema = _chunk4G2RKM2Hjs.ToolProgressUpdateNotificationSchema; exports.ToolProgressUpdateSchema = _chunk4G2RKM2Hjs.ToolProgressUpdateSchema; exports.ToolResultBlockSchema = _chunk4G2RKM2Hjs.ToolResultSchema; exports.ToolResultNotificationSchema = _chunk4G2RKM2Hjs.ToolResultNotificationSchema; exports.ToolSelectionOverridesSchema = _chunk4G2RKM2Hjs.ToolSelectionOverridesSchema; exports.ToolUseBlockSchema = _chunk4G2RKM2Hjs.ToolUseSchema; exports.ToolUseSchema = _chunk4G2RKM2Hjs.ToolUseSchema2; exports.TraceContextMetaSchema = _chunk4G2RKM2Hjs.TraceContextMetaSchema; exports.TransportDirection = TransportDirection; exports.TunnelConnection = _chunk4G2RKM2Hjs.TunnelConnection; exports.UpdateSessionSettingsRequestParamsSchema = _chunk4G2RKM2Hjs.UpdateSessionSettingsRequestParamsSchema; exports.UpdateSessionSettingsRequestSchema = _chunk4G2RKM2Hjs.UpdateSessionSettingsRequestSchema; exports.UpdateSessionSettingsResponseSchema = _chunk4G2RKM2Hjs.UpdateSessionSettingsResponseSchema; exports.UpdateSessionSettingsResultSchema = _chunk4G2RKM2Hjs.UpdateSessionSettingsResultSchema; exports.VerificationCommandSchema = _chunk4G2RKM2Hjs.VerificationCommandSchema; exports.VerificationSchema = _chunk4G2RKM2Hjs.VerificationSchema; exports.WINDOWS_JOB_OBJECT_ERROR_MARKER = WINDOWS_JOB_OBJECT_ERROR_MARKER; exports.WebSocketConnectionError = _chunk4G2RKM2Hjs.WebSocketConnectionError; exports.WebSocketDaemonTransport = _chunk4G2RKM2Hjs.WebSocketDaemonTransport; exports.WorkerCompletedEntrySchema = _chunk4G2RKM2Hjs.WorkerCompletedEntrySchema; exports.WorkerFailedEntrySchema = _chunk4G2RKM2Hjs.WorkerFailedEntrySchema; exports.WorkerPausedEntrySchema = _chunk4G2RKM2Hjs.WorkerPausedEntrySchema; exports.WorkerSelectedFeatureEntrySchema = _chunk4G2RKM2Hjs.WorkerSelectedFeatureEntrySchema; exports.WorkerStartedEntrySchema = _chunk4G2RKM2Hjs.WorkerStartedEntrySchema; exports.WorkerStateInfoSchema = _chunk4G2RKM2Hjs.WorkerStateInfoSchema; exports.__resetTransportLoggerForTests = __resetTransportLoggerForTests; exports.buildUserMessageContentBlocks = _chunk4G2RKM2Hjs.buildUserMessageContentBlocks; exports.configureDaemonCoreDeps = _chunk4G2RKM2Hjs.configureDaemonCoreDeps; exports.connectAndAuthenticate = _chunk4G2RKM2Hjs.connectAndAuthenticate; exports.connectToDaemon = _chunk4G2RKM2Hjs.connectToDaemon; exports.connectWithRetry = _chunk4G2RKM2Hjs.connectWithRetry; exports.convertNotificationToStreamMessage = _chunk4G2RKM2Hjs.convertNotificationToStreamMessage; exports.createComputer = _chunk4G2RKM2Hjs.createComputer; exports.createResponseSchema = _chunk4G2RKM2Hjs.createResponseSchema; exports.createSdkMcpServer = createSdkMcpServer; exports.createSession = createSession; exports.createWebSocketDaemonClient = _chunk4G2RKM2Hjs.createWebSocketDaemonClient; exports.defaultDaemonCoreDeps = _chunk4G2RKM2Hjs.defaultDaemonCoreDeps; exports.deleteComputer = _chunk4G2RKM2Hjs.deleteComputer; exports.filterMessagesForUI = _chunk4G2RKM2Hjs.filterMessagesForUI; exports.getComputer = _chunk4G2RKM2Hjs.getComputer; exports.getComputerByName = _chunk4G2RKM2Hjs.getComputerByName; exports.getComputerMetrics = _chunk4G2RKM2Hjs.getComputerMetrics; exports.getMachineTemplate = _chunk4G2RKM2Hjs.getMachineTemplate; exports.getPermissionToolInputForDisplay = _chunk4G2RKM2Hjs.getPermissionToolInputForDisplay; exports.getQueuedUserMessageDisplayGroup = _chunk4G2RKM2Hjs.getQueuedUserMessageDisplayGroup; exports.getQueuedUserMessageReviewPriority = _chunk4G2RKM2Hjs.getQueuedUserMessageReviewPriority; exports.getSubagentCallingMetadata = _chunk4G2RKM2Hjs.getSubagentCallingMetadata; exports.getToolResultBlocks = _chunk4G2RKM2Hjs.getToolResultBlocks; exports.getToolResultToolUseId = _chunk4G2RKM2Hjs.getToolResultToolUseId; exports.hasDecoupledInteractionSettings = _chunk4G2RKM2Hjs.hasDecoupledInteractionSettings; exports.hasSubagentSessionTag = _chunk4G2RKM2Hjs.hasSubagentSessionTag; exports.inspectJsonRpcEnvelope = _chunk4G2RKM2Hjs.inspectJsonRpcEnvelope; exports.isDaemonQueuedMessageKind = _chunk4G2RKM2Hjs.isDaemonQueuedMessageKind; exports.isPendingToolResultMarker = _chunk4G2RKM2Hjs.isPendingToolResultMarker; exports.isPersistedHookMessage = _chunk4G2RKM2Hjs.isPersistedHookMessage; exports.isReviewableQueuedMessageKind = _chunk4G2RKM2Hjs.isReviewableQueuedMessageKind; exports.isTransportLoggingEnabled = isTransportLoggingEnabled; exports.listComputers = _chunk4G2RKM2Hjs.listComputers; exports.listMachineTemplates = _chunk4G2RKM2Hjs.listMachineTemplates; exports.listModels = listModels; exports.listRemoteSessions = _chunk4G2RKM2Hjs.listRemoteSessions; exports.listSessions = listSessions; exports.logTransportMessage = logTransportMessage; exports.machineTypeToMachineConnectionType = _chunk4G2RKM2Hjs.machineTypeToMachineConnectionType; exports.noopLogger = noopLogger; exports.orderMessagesByParentChain = _chunk4G2RKM2Hjs.orderMessagesByParentChain; exports.recordComputerConnectSli = _chunk4G2RKM2Hjs.recordComputerConnectSli; exports.refreshComputer = _chunk4G2RKM2Hjs.refreshComputer; exports.repairParentChainCorruption = _chunk4G2RKM2Hjs.repairParentChainCorruption; exports.resolveExecCoreDeps = resolveExecCoreDeps; exports.restartComputer = _chunk4G2RKM2Hjs.restartComputer; exports.resumeSession = resumeSession; exports.retryInstallDeps = _chunk4G2RKM2Hjs.retryInstallDeps; exports.retryWithLogger = _chunk4G2RKM2Hjs.retryWithLogger; exports.run = run; exports.spawnWithWindowsJobObjectRetry = spawnWithWindowsJobObjectRetry; exports.sumTokenUsage = _chunk4G2RKM2Hjs.sumTokenUsage; exports.summarizeSessionToolUsage = _chunk4G2RKM2Hjs.summarizeSessionToolUsage; exports.toError = _chunk4G2RKM2Hjs.toError; exports.tool = tool; exports.updateComputer = _chunk4G2RKM2Hjs.updateComputer;
4742
+
4743
+ exports.AbortError = _chunkYSKO6SPTjs.AbortError; exports.AddMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.AddMcpServerRequestParamsSchema; exports.AddMcpServerRequestSchema = _chunkYSKO6SPTjs.AddMcpServerRequestSchema; exports.AddMcpServerResponseSchema = _chunkYSKO6SPTjs.AddMcpServerResponseSchema; exports.AddMcpServerResultSchema = _chunkYSKO6SPTjs.AddMcpServerResultSchema; exports.AddUserMessageRequestParamsSchema = _chunkYSKO6SPTjs.AddUserMessageRequestParamsSchema; exports.AddUserMessageRequestSchema = _chunkYSKO6SPTjs.AddUserMessageRequestSchema; exports.AddUserMessageResponseSchema = _chunkYSKO6SPTjs.AddUserMessageResponseSchema; exports.AddUserMessageResultSchema = _chunkYSKO6SPTjs.AddUserMessageResultSchema; exports.ApplyPatchToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.ApplyPatchToolConfirmationDetailsSchema; exports.AskUserCollectedAnswerSchema = _chunkYSKO6SPTjs.AskUserCollectedAnswerSchema; exports.AskUserConfirmationDetailsSchema = _chunkYSKO6SPTjs.AskUserConfirmationDetailsSchema; exports.AskUserQuestionSchema = _chunkYSKO6SPTjs.AskUserQuestionSchema; exports.AskUserRequestParamsSchema = _chunkYSKO6SPTjs.AskUserRequestParamsSchema; exports.AskUserRequestSchema = _chunkYSKO6SPTjs.AskUserRequestSchema; exports.AskUserResponseSchema = _chunkYSKO6SPTjs.AskUserResponseSchema; exports.AskUserResultSchema = _chunkYSKO6SPTjs.AskUserResultSchema; exports.AssistantMessageRetractedNotificationSchema = _chunkYSKO6SPTjs.AssistantMessageRetractedNotificationSchema; exports.AssistantTextCompleteNotificationSchema = _chunkYSKO6SPTjs.AssistantTextCompleteNotificationSchema; exports.AssistantTextDeltaNotificationSchema = _chunkYSKO6SPTjs.AssistantTextDeltaNotificationSchema; exports.AuthenticateMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerRequestParamsSchema; exports.AuthenticateMcpServerRequestSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerRequestSchema; exports.AuthenticateMcpServerResponseSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerResponseSchema; exports.AuthenticateMcpServerResultSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerResultSchema; exports.AutonomyLevel = _chunkYSKO6SPTjs.AutonomyLevel; exports.AvailableModelConfigSchema = _chunkYSKO6SPTjs.AvailableModelConfigSchema; exports.Base64ImageSourceSchema = _chunkYSKO6SPTjs.Base64ImageSourceSchema; exports.BaseNotificationSchema = _chunkYSKO6SPTjs.BaseNotificationSchema; exports.BaseRequestSchema = _chunkYSKO6SPTjs.BaseRequestSchema; exports.BaseResponseFailureSchema = _chunkYSKO6SPTjs.BaseResponseFailureSchema; exports.BaseResponseSuccessSchema = _chunkYSKO6SPTjs.BaseResponseSuccessSchema; exports.CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC = CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC; exports.COMPACTION_TIMEOUT = _chunkYSKO6SPTjs.COMPACTION_TIMEOUT; exports.CancelMcpAuthRequestParamsSchema = _chunkYSKO6SPTjs.CancelMcpAuthRequestParamsSchema; exports.CancelMcpAuthRequestSchema = _chunkYSKO6SPTjs.CancelMcpAuthRequestSchema; exports.CancelMcpAuthResponseSchema = _chunkYSKO6SPTjs.CancelMcpAuthResponseSchema; exports.CancelMcpAuthResultSchema = _chunkYSKO6SPTjs.CancelMcpAuthResultSchema; exports.ChangeWorkingDirectoryRequestParamsSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryRequestParamsSchema; exports.ChangeWorkingDirectoryRequestSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryRequestSchema; exports.ChangeWorkingDirectoryResponseSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResponseSchema; exports.ChangeWorkingDirectoryResultSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResultSchema; exports.ClearMcpAuthRequestParamsSchema = _chunkYSKO6SPTjs.ClearMcpAuthRequestParamsSchema; exports.ClearMcpAuthRequestSchema = _chunkYSKO6SPTjs.ClearMcpAuthRequestSchema; exports.ClearMcpAuthResponseSchema = _chunkYSKO6SPTjs.ClearMcpAuthResponseSchema; exports.ClearMcpAuthResultSchema = _chunkYSKO6SPTjs.ClearMcpAuthResultSchema; exports.CliRequestOrNotificationSchema = _chunkYSKO6SPTjs.CliRequestOrNotificationSchema; exports.ClientDestroyedError = _chunkYSKO6SPTjs.ClientDestroyedError; exports.ClientRequestSchema = _chunkYSKO6SPTjs.ClientRequestSchema; exports.ClientUiSurface = _chunkYSKO6SPTjs.ClientUiSurface; exports.CloseSessionRequestParamsSchema = _chunkYSKO6SPTjs.CloseSessionRequestParamsSchema; exports.CloseSessionRequestSchema = _chunkYSKO6SPTjs.CloseSessionRequestSchema; exports.CloseSessionResponseSchema = _chunkYSKO6SPTjs.CloseSessionResponseSchema; exports.CloseSessionResultSchema = _chunkYSKO6SPTjs.CloseSessionResultSchema; exports.CompactSessionRequestParamsSchema = _chunkYSKO6SPTjs.CompactSessionRequestParamsSchema; exports.CompactSessionRequestSchema = _chunkYSKO6SPTjs.CompactSessionRequestSchema; exports.CompactSessionResponseSchema = _chunkYSKO6SPTjs.CompactSessionResponseSchema; exports.CompactSessionResultSchema = _chunkYSKO6SPTjs.CompactSessionResultSchema; exports.ComputeLimitExceededError = _chunkYSKO6SPTjs.ComputeLimitExceededError; exports.ComputerConnectAttemptTrigger = _chunkYSKO6SPTjs.ComputerConnectAttemptTrigger; exports.ComputerConnectStartType = _chunkYSKO6SPTjs.ComputerConnectStartType; exports.ComputerListResponseSchema = _chunkYSKO6SPTjs.ComputerListResponseSchema; exports.ComputerMetricSchema = _chunkYSKO6SPTjs.ComputerMetricSchema; exports.ComputerMetricsResponseSchema = _chunkYSKO6SPTjs.ComputerMetricsResponseSchema; exports.ComputerSchema = _chunkYSKO6SPTjs.ComputerSchema; exports.ConcurrentStreamError = _chunkYSKO6SPTjs.ConcurrentStreamError; exports.ConnectionClosedError = _chunkYSKO6SPTjs.ConnectionClosedError; exports.ConnectionError = _chunkYSKO6SPTjs.ConnectionError; exports.ConnectionFailureReason = _chunkYSKO6SPTjs.ConnectionFailureReason; exports.ContentBlockSchema = _chunkYSKO6SPTjs.ContentBlockSchema; exports.ContextBreakdownCategorySchema = _chunkYSKO6SPTjs.ContextBreakdownCategorySchema; exports.ContextBreakdownResultSchema = _chunkYSKO6SPTjs.GetContextBreakdownResultSchema; exports.ContextStatsAccuracy = _chunkYSKO6SPTjs.ContextStatsAccuracy; exports.ContextStatsSchema = _chunkYSKO6SPTjs.ContextStatsSchema; exports.CreateMessageNotificationSchema = _chunkYSKO6SPTjs.CreateMessageNotificationSchema; exports.CreateToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.CreateToolConfirmationDetailsSchema; exports.DEFAULT_LOCAL_DAEMON_WS_URL = _chunkYSKO6SPTjs.DEFAULT_LOCAL_DAEMON_WS_URL; exports.DEFAULT_REQUEST_TIMEOUT = _chunkYSKO6SPTjs.DEFAULT_REQUEST_TIMEOUT; exports.DaemonAuthenticationMode = _chunkYSKO6SPTjs.DaemonAuthenticationMode; exports.DaemonClient = _chunkYSKO6SPTjs.DaemonClient; exports.DaemonClientMetaError = _chunkYSKO6SPTjs.MetaError; exports.DaemonDroidEvent = _chunkYSKO6SPTjs.DaemonDroidEvent; exports.DaemonRequestPermissionSchema = _chunkYSKO6SPTjs.DaemonRequestPermissionSchema; exports.DaemonSessionController = _chunkYSKO6SPTjs.DaemonSessionController; exports.DecompSessionType = _chunkYSKO6SPTjs.DecompSessionType; exports.DiscoveredIssueSchema = _chunkYSKO6SPTjs.DiscoveredIssueSchema; exports.DismissalRecordSchema = _chunkYSKO6SPTjs.DismissalRecordSchema; exports.DismissalType = _chunkYSKO6SPTjs.DismissalType; exports.DocumentBlockSchema = _chunkYSKO6SPTjs.DocumentBlockSchema; exports.DocumentSourceSchema = _chunkYSKO6SPTjs.DocumentSourceSchema; exports.DroidClient = DroidClient; exports.DroidClientError = _chunkYSKO6SPTjs.DroidClientError; exports.DroidClientEvent = DroidClientEvent; exports.DroidClientMethod = _chunkYSKO6SPTjs.DroidClientMethod; exports.DroidErrorType = _chunkYSKO6SPTjs.DroidErrorType; exports.DroidEvent = _chunkYSKO6SPTjs.DroidEvent; exports.DroidHookEventSchema = _chunkYSKO6SPTjs.DroidHookEventSchema; exports.DroidHookExecutionResultSchema = _chunkYSKO6SPTjs.DroidHookExecutionResultSchema; exports.DroidHookOutputSchema = _chunkYSKO6SPTjs.DroidHookOutputSchema; exports.DroidHookSpecificOutputSchema = _chunkYSKO6SPTjs.DroidHookSpecificOutputSchema; exports.DroidInteractionMode = _chunkYSKO6SPTjs.DroidInteractionMode; exports.DroidMessageType = _chunkYSKO6SPTjs.DroidMessageType; exports.DroidProcessManager = DroidProcessManager; exports.DroidProcessMode = DroidProcessMode; exports.DroidServerMethod = _chunkYSKO6SPTjs.DroidServerMethod; exports.DroidSession = DroidSession; exports.DroidWorkingState = _chunkYSKO6SPTjs.DroidWorkingState; exports.DroidWorkingStateChangedNotificationSchema = _chunkYSKO6SPTjs.DroidWorkingStateChangedNotificationSchema; exports.EditToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.EditToolConfirmationDetailsSchema; exports.EmptyResultSchema = _chunkYSKO6SPTjs.EmptyResultSchema; exports.ErrorDetailSchema = _chunkYSKO6SPTjs.ErrorDetailSchema; exports.ErrorNotificationSchema = _chunkYSKO6SPTjs.ErrorNotificationSchema; exports.ExecToolInfoSchema = _chunkYSKO6SPTjs.ExecToolInfoSchema; exports.ExecuteRewindRequestParamsSchema = _chunkYSKO6SPTjs.ExecuteRewindRequestParamsSchema; exports.ExecuteRewindRequestSchema = _chunkYSKO6SPTjs.ExecuteRewindRequestSchema; exports.ExecuteRewindResponseSchema = _chunkYSKO6SPTjs.ExecuteRewindResponseSchema; exports.ExecuteRewindResultSchema = _chunkYSKO6SPTjs.ExecuteRewindResultSchema; exports.ExecuteToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.ExecuteToolConfirmationDetailsSchema; exports.ExitSpecModeConfirmationDetailsSchema = _chunkYSKO6SPTjs.ExitSpecModeConfirmationDetailsSchema; exports.FACTORY_CLIENT_HEADER = _chunkYSKO6SPTjs.FACTORY_CLIENT_HEADER; exports.FACTORY_CLIENT_VERSION = _chunkYSKO6SPTjs.FACTORY_CLIENT_VERSION; exports.FACTORY_PROTOCOL_VERSION = _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION2; exports.FactoryDaemonTransport = _chunkYSKO6SPTjs.FactoryDaemonTransport; exports.FactoryDroidMessageRole = _chunkYSKO6SPTjs.FactoryDroidMessageRole; exports.FactoryDroidMessageSchema = _chunkYSKO6SPTjs.FactoryDroidMessageSchema; exports.FeatureStatus = _chunkYSKO6SPTjs.FeatureStatus; exports.FeatureSuccessState = _chunkYSKO6SPTjs.FeatureSuccessState; exports.FeatureSuccessStateSchema = _chunkYSKO6SPTjs.FeatureSuccessStateSchema; exports.ForkSessionRequestParamsSchema = _chunkYSKO6SPTjs.ForkSessionRequestParamsSchema; exports.ForkSessionRequestSchema = _chunkYSKO6SPTjs.ForkSessionRequestSchema; exports.ForkSessionResponseSchema = _chunkYSKO6SPTjs.ForkSessionResponseSchema; exports.ForkSessionResultSchema = _chunkYSKO6SPTjs.ForkSessionResultSchema; exports.GetContextStatsRequestParamsSchema = _chunkYSKO6SPTjs.GetContextStatsRequestParamsSchema; exports.GetContextStatsRequestSchema = _chunkYSKO6SPTjs.GetContextStatsRequestSchema; exports.GetContextStatsResponseSchema = _chunkYSKO6SPTjs.GetContextStatsResponseSchema; exports.GetContextStatsResultSchema = _chunkYSKO6SPTjs.ContextStatsSchema; exports.GetRewindInfoRequestParamsSchema = _chunkYSKO6SPTjs.GetRewindInfoRequestParamsSchema; exports.GetRewindInfoRequestSchema = _chunkYSKO6SPTjs.GetRewindInfoRequestSchema; exports.GetRewindInfoResponseSchema = _chunkYSKO6SPTjs.GetRewindInfoResponseSchema; exports.GetRewindInfoResultSchema = _chunkYSKO6SPTjs.GetRewindInfoResultSchema; exports.GitRepoInfoSchema = _chunkYSKO6SPTjs.GitRepoInfoSchema; exports.HandoffItemsDismissedEntrySchema = _chunkYSKO6SPTjs.HandoffItemsDismissedEntrySchema; exports.HandoffSchema = _chunkYSKO6SPTjs.HandoffSchema; exports.HookCommandSchema = _chunkYSKO6SPTjs.HookCommandSchema; exports.HookExecutionCompletedNotificationSchema = _chunkYSKO6SPTjs.HookExecutionCompletedNotificationSchema; exports.HookExecutionStartedNotificationSchema = _chunkYSKO6SPTjs.HookExecutionStartedNotificationSchema; exports.HookResultSchema = _chunkYSKO6SPTjs.HookResultSchema; exports.HttpHeaderSchema = _chunkYSKO6SPTjs.HttpHeaderSchema; exports.HttpMcpConfigSchema = _chunkYSKO6SPTjs.HttpMcpSchema; exports.IPC_DAEMON_URL = _chunkYSKO6SPTjs.IPC_DAEMON_URL; exports.ImageBlockSchema = _chunkYSKO6SPTjs.ImageBlockSchema; exports.InProcessDaemonClientTransport = _chunkYSKO6SPTjs.InProcessDaemonClientTransport; exports.InitializeSessionRequestParamsSchema = _chunkYSKO6SPTjs.InitializeSessionRequestParamsSchema; exports.InitializeSessionRequestSchema = _chunkYSKO6SPTjs.InitializeSessionRequestSchema; exports.InitializeSessionResponseSchema = _chunkYSKO6SPTjs.InitializeSessionResponseSchema; exports.InitializeSessionResultSchema = _chunkYSKO6SPTjs.InitializeSessionResultSchema2; exports.InteractiveCheckSchema = _chunkYSKO6SPTjs.InteractiveCheckSchema; exports.InterruptSessionRequestParamsSchema = _chunkYSKO6SPTjs.InterruptSessionRequestParamsSchema; exports.InterruptSessionRequestSchema = _chunkYSKO6SPTjs.InterruptSessionRequestSchema; exports.InterruptSessionResponseSchema = _chunkYSKO6SPTjs.InterruptSessionResponseSchema; exports.InterruptSessionResultSchema = _chunkYSKO6SPTjs.InterruptSessionResultSchema; exports.InvalidSessionCwdError = _chunkYSKO6SPTjs.InvalidSessionCwdError; exports.IpcDaemonClientTransport = _chunkYSKO6SPTjs.IpcDaemonClientTransport; exports.IssueSeverity = _chunkYSKO6SPTjs.IssueSeverity; exports.JSONRPC_VERSION = _chunkYSKO6SPTjs.JSONRPC_VERSION3; exports.JsonArraySchema = _chunkYSKO6SPTjs.JsonArraySchema; exports.JsonObjectSchema = _chunkYSKO6SPTjs.JsonObjectSchema; exports.JsonRpcEnvelopeSchema = _chunkYSKO6SPTjs.JsonRpcEnvelopeSchema; exports.JsonRpcErrorCode = _chunkYSKO6SPTjs.JsonRpcErrorCode; exports.JsonRpcErrorSchema = _chunkYSKO6SPTjs.JsonRpcErrorSchema; exports.JsonRpcMessageSchema = _chunkYSKO6SPTjs.JsonRpcMessageSchema; exports.JsonRpcMessageType = _chunkYSKO6SPTjs.JsonRpcMessageType; exports.JsonRpcNotificationSchema = _chunkYSKO6SPTjs.JsonRpcNotificationSchema; exports.JsonRpcRequestError = _chunkYSKO6SPTjs.JsonRpcRequestError; exports.JsonRpcRequestSchema = _chunkYSKO6SPTjs.JsonRpcRequestSchema; exports.JsonRpcResponseFailureSchema = _chunkYSKO6SPTjs.JsonRpcResponseFailureSchema; exports.JsonRpcResponseSchema = _chunkYSKO6SPTjs.JsonRpcResponseSchema; exports.JsonRpcResponseSuccessSchema = _chunkYSKO6SPTjs.JsonRpcResponseSuccessSchema; exports.JsonValueSchema = _chunkYSKO6SPTjs.JsonValueSchema; exports.KillWorkerSessionRequestParamsSchema = _chunkYSKO6SPTjs.KillWorkerSessionRequestParamsSchema; exports.KillWorkerSessionRequestSchema = _chunkYSKO6SPTjs.KillWorkerSessionRequestSchema; exports.KillWorkerSessionResponseSchema = _chunkYSKO6SPTjs.KillWorkerSessionResponseSchema; exports.KillWorkerSessionResultSchema = _chunkYSKO6SPTjs.KillWorkerSessionResultSchema; exports.LEGACY_FACTORY_API_VERSION = _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION2; exports.LOCAL_MACHINE_ID = _chunkYSKO6SPTjs.LOCAL_MACHINE_ID; exports.ListMcpRegistryRequestParamsSchema = _chunkYSKO6SPTjs.ListMcpRegistryRequestParamsSchema; exports.ListMcpRegistryRequestSchema = _chunkYSKO6SPTjs.ListMcpRegistryRequestSchema; exports.ListMcpRegistryResponseSchema = _chunkYSKO6SPTjs.ListMcpRegistryResponseSchema; exports.ListMcpRegistryResultSchema = _chunkYSKO6SPTjs.ListMcpRegistryResultSchema; exports.ListMcpServersRequestParamsSchema = _chunkYSKO6SPTjs.ListMcpServersRequestParamsSchema; exports.ListMcpServersRequestSchema = _chunkYSKO6SPTjs.ListMcpServersRequestSchema; exports.ListMcpServersResponseSchema = _chunkYSKO6SPTjs.ListMcpServersResponseSchema; exports.ListMcpServersResultSchema = _chunkYSKO6SPTjs.ListMcpServersResultSchema; exports.ListMcpToolsRequestParamsSchema = _chunkYSKO6SPTjs.ListMcpToolsRequestParamsSchema; exports.ListMcpToolsRequestSchema = _chunkYSKO6SPTjs.ListMcpToolsRequestSchema; exports.ListMcpToolsResponseSchema = _chunkYSKO6SPTjs.ListMcpToolsResponseSchema; exports.ListMcpToolsResultSchema = _chunkYSKO6SPTjs.ListMcpToolsResultSchema; exports.ListModelsOptionsSchema = _chunkYSKO6SPTjs.ListModelsOptionsSchema; exports.ListModelsResultSchema = _chunkYSKO6SPTjs.ListModelsResultSchema; exports.ListSkillsRequestParamsSchema = _chunkYSKO6SPTjs.ListSkillsRequestParamsSchema; exports.ListSkillsRequestSchema = _chunkYSKO6SPTjs.ListSkillsRequestSchema; exports.ListSkillsResponseSchema = _chunkYSKO6SPTjs.ListSkillsResponseSchema; exports.ListSkillsResultSchema = _chunkYSKO6SPTjs.ListSkillsResultSchema; exports.ListToolsRequestParamsSchema = _chunkYSKO6SPTjs.ListToolsRequestParamsSchema; exports.ListToolsRequestSchema = _chunkYSKO6SPTjs.ListToolsRequestSchema; exports.ListToolsResponseSchema = _chunkYSKO6SPTjs.ListToolsResponseSchema; exports.ListToolsResultSchema = _chunkYSKO6SPTjs.ListToolsResultSchema; exports.LoadSessionRequestParamsSchema = _chunkYSKO6SPTjs.LoadSessionRequestParamsSchema; exports.LoadSessionRequestSchema = _chunkYSKO6SPTjs.LoadSessionRequestSchema; exports.LoadSessionResponseSchema = _chunkYSKO6SPTjs.LoadSessionResponseSchema; exports.LoadSessionResultSchema = _chunkYSKO6SPTjs.LoadSessionResultSchema; exports.MACHINE_TYPE_WEBSOCKET_OVERRIDES = _chunkYSKO6SPTjs.MACHINE_TYPE_WEBSOCKET_OVERRIDES; exports.MANAGED_COMPUTER_MAX_RETRIES = _chunkYSKO6SPTjs.MANAGED_COMPUTER_MAX_RETRIES; exports.MCP_AUTH_TIMEOUT = _chunkYSKO6SPTjs.MCP_AUTH_TIMEOUT; exports.MachineTemplateBuildStatusSchema = _chunkYSKO6SPTjs.MachineTemplateBuildStatusSchema; exports.MachineTemplateListResponseSchema = _chunkYSKO6SPTjs.MachineTemplateListResponseSchema; exports.MachineTemplateSchema = _chunkYSKO6SPTjs.MachineTemplateSchema; exports.MachineType = _chunkYSKO6SPTjs.MachineType; exports.ManagedProcessImpl = ManagedProcessImpl; exports.McpAuthCompletedNotificationSchema = _chunkYSKO6SPTjs.McpAuthCompletedNotificationSchema; exports.McpAuthOutcome = _chunkYSKO6SPTjs.McpAuthOutcome; exports.McpAuthRequiredNotificationSchema = _chunkYSKO6SPTjs.McpAuthRequiredNotificationSchema; exports.McpHttpServerConfigFieldsSchema = _chunkYSKO6SPTjs.McpHttpServerConfigFieldsSchema; exports.McpRegistryServerSchema = _chunkYSKO6SPTjs.McpRegistryServerSchema; exports.McpServerConfigSchema = _chunkYSKO6SPTjs.McpServerConfigSchema; exports.McpServerStatus = _chunkYSKO6SPTjs.McpServerStatus; exports.McpServerStatusInfoSchema = _chunkYSKO6SPTjs.McpServerStatusInfoSchema; exports.McpServerType = _chunkYSKO6SPTjs.McpServerType; exports.McpSseServerConfigFieldsSchema = _chunkYSKO6SPTjs.McpSseServerConfigFieldsSchema; exports.McpStatus = _chunkYSKO6SPTjs.McpStatus; exports.McpStatusChangedNotificationSchema = _chunkYSKO6SPTjs.McpStatusChangedNotificationSchema; exports.McpStatusSummarySchema = _chunkYSKO6SPTjs.McpStatusSummarySchema; exports.McpStdioServerConfigFieldsSchema = _chunkYSKO6SPTjs.McpStdioServerConfigFieldsSchema; exports.McpToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.McpToolConfirmationDetailsSchema; exports.McpToolInfoSchema = _chunkYSKO6SPTjs.McpToolInfoSchema; exports.McpToolInputSchemaSchema = _chunkYSKO6SPTjs.McpToolInputSchemaSchema; exports.MessageVisibility = _chunkYSKO6SPTjs.MessageVisibility; exports.Metric = _chunkYSKO6SPTjs.Metric; exports.MilestoneValidationTriggeredEntrySchema = _chunkYSKO6SPTjs.MilestoneValidationTriggeredEntrySchema; exports.MissionAcceptedEntrySchema = _chunkYSKO6SPTjs.MissionAcceptedEntrySchema; exports.MissionFeatureSchema = _chunkYSKO6SPTjs.MissionFeatureSchema; exports.MissionFeaturesChangedNotificationSchema = _chunkYSKO6SPTjs.MissionFeaturesChangedNotificationSchema; exports.MissionHeartbeatNotificationSchema = _chunkYSKO6SPTjs.MissionHeartbeatNotificationSchema; exports.MissionPausedEntrySchema = _chunkYSKO6SPTjs.MissionPausedEntrySchema; exports.MissionProgressEntryNotificationSchema = _chunkYSKO6SPTjs.MissionProgressEntryNotificationSchema; exports.MissionResumedEntrySchema = _chunkYSKO6SPTjs.MissionResumedEntrySchema; exports.MissionRunStartedEntrySchema = _chunkYSKO6SPTjs.MissionRunStartedEntrySchema; exports.MissionSnapshotSchema = _chunkYSKO6SPTjs.MissionStateSchema; exports.MissionState = _chunkYSKO6SPTjs.MissionState; exports.MissionStateChangedNotificationSchema = _chunkYSKO6SPTjs.MissionStateChangedNotificationSchema; exports.MissionWorkerCompletedNotificationSchema = _chunkYSKO6SPTjs.MissionWorkerCompletedNotificationSchema; exports.MissionWorkerStartedNotificationSchema = _chunkYSKO6SPTjs.MissionWorkerStartedNotificationSchema; exports.ModelInfoSchema = _chunkYSKO6SPTjs.ModelInfoSchema; exports.ModelMetadataSchema = _chunkYSKO6SPTjs.ModelMetadataSchema; exports.ModelProvider = _chunkYSKO6SPTjs.ModelProvider; exports.MultiMissionStateManager = _chunkYSKO6SPTjs.MultiMissionStateManager; exports.MultiSessionStateManager = _chunkYSKO6SPTjs.MultiSessionStateManager; exports.OtelTracing = _chunkYSKO6SPTjs.OtelTracing; exports.OutputFormatSchema = _chunkYSKO6SPTjs.OutputFormatSchema; exports.OutputFormatType = _chunkYSKO6SPTjs.OutputFormatType; exports.PermissionResolvedNotificationSchema = _chunkYSKO6SPTjs.PermissionResolvedNotificationSchema; exports.ProcessExitError = _chunkYSKO6SPTjs.ProcessExitError; exports.ProcessTransport = ProcessTransport; exports.ProgressLogEntrySchema = _chunkYSKO6SPTjs.ProgressLogEntrySchema; exports.ProgressLogEntryType = _chunkYSKO6SPTjs.ProgressLogEntryType; exports.ProposeMissionConfirmationDetailsSchema = _chunkYSKO6SPTjs.ProposeMissionConfirmationDetailsSchema; exports.ProtocolError = _chunkYSKO6SPTjs.ProtocolError; exports.QueuedUserMessageDisplayGroup = _chunkYSKO6SPTjs.QueuedUserMessageDisplayGroup; exports.QueuedUserMessageKind = _chunkYSKO6SPTjs.QueuedUserMessageKind; exports.REWIND_TIMEOUT = _chunkYSKO6SPTjs.REWIND_TIMEOUT; exports.ReasoningEffort = _chunkYSKO6SPTjs.ReasoningEffort; exports.RedactedThinkingBlockSchema = _chunkYSKO6SPTjs.RedactedThinkingBlockSchema; exports.RefreshComputerResponseSchema = _chunkYSKO6SPTjs.RefreshComputerResponseSchema; exports.RelayConnectionError = _chunkYSKO6SPTjs.RelayConnectionError; exports.RemoteSessionListResponseSchema = _chunkYSKO6SPTjs.RemoteSessionListResponseSchema; exports.RemoteSessionSchema = _chunkYSKO6SPTjs.RemoteSessionSchema; exports.RemoveMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.RemoveMcpServerRequestParamsSchema; exports.RemoveMcpServerRequestSchema = _chunkYSKO6SPTjs.RemoveMcpServerRequestSchema; exports.RemoveMcpServerResponseSchema = _chunkYSKO6SPTjs.RemoveMcpServerResponseSchema; exports.RemoveMcpServerResultSchema = _chunkYSKO6SPTjs.RemoveMcpServerResultSchema; exports.RenameSessionRequestParamsSchema = _chunkYSKO6SPTjs.RenameSessionRequestParamsSchema; exports.RenameSessionRequestSchema = _chunkYSKO6SPTjs.RenameSessionRequestSchema; exports.RenameSessionResponseSchema = _chunkYSKO6SPTjs.RenameSessionResponseSchema; exports.RenameSessionResultSchema = _chunkYSKO6SPTjs.RenameSessionResultSchema; exports.RequestPermissionRequestParamsSchema = _chunkYSKO6SPTjs.RequestPermissionRequestParamsSchema; exports.RequestPermissionRequestSchema = _chunkYSKO6SPTjs.RequestPermissionRequestSchema; exports.RequestPermissionResponseSchema = _chunkYSKO6SPTjs.RequestPermissionResponseSchema; exports.RequestPermissionResultSchema = _chunkYSKO6SPTjs.RequestPermissionResultSchema; exports.RewindEvictedFileSchema = _chunkYSKO6SPTjs.RewindEvictedFileSchema; exports.RewindFileCreationSchema = _chunkYSKO6SPTjs.RewindFileCreationSchema; exports.RewindFileSnapshotSchema = _chunkYSKO6SPTjs.RewindFileSnapshotSchema; exports.SDK_TAG = _chunkYSKO6SPTjs.SDK_TAG; exports.SDK_VERSION = _chunkYSKO6SPTjs.SDK_VERSION; exports.SESSION_INIT_TIMEOUT = _chunkYSKO6SPTjs.SESSION_INIT_TIMEOUT; exports.SLACK_DELEGATION_MAX_RETRIES = _chunkYSKO6SPTjs.SLACK_DELEGATION_MAX_RETRIES; exports.SdkMcpServer = SdkMcpServer; exports.ServerRequestHandlerType = _chunkYSKO6SPTjs.ServerRequestHandlerType; exports.SessionError = _chunkYSKO6SPTjs.SessionError; exports.SessionMetadataSchema = _chunkYSKO6SPTjs.SessionMetadataSchema; exports.SessionNotFoundError = _chunkYSKO6SPTjs.SessionNotFoundError; exports.SessionNotificationParamsSchema = _chunkYSKO6SPTjs.SessionNotificationParamsSchema; exports.SessionNotificationPayloadSchema = _chunkYSKO6SPTjs.SessionNotificationPayloadSchema; exports.SessionNotificationSchema = _chunkYSKO6SPTjs.SessionNotificationSchema; exports.SessionNotificationSchemaList = _chunkYSKO6SPTjs.SessionNotificationSchemaList; exports.SessionNotificationType = _chunkYSKO6SPTjs.SessionNotificationType; exports.SessionPlatform = _chunkYSKO6SPTjs.SessionPlatform; exports.SessionReplacedError = _chunkYSKO6SPTjs.SessionReplacedError; exports.SessionReplacementError = _chunkYSKO6SPTjs.SessionReplacementError; exports.SessionSettingsFileSchema = _chunkYSKO6SPTjs.SessionSettingsFileSchema; exports.SessionSettingsSchema = _chunkYSKO6SPTjs.SessionSettingsSchema; exports.SessionSourceSchema = _chunkYSKO6SPTjs.SessionSourceSchema; exports.SessionStartEventSchema = _chunkYSKO6SPTjs.SessionStartEventSchema; exports.SessionTagSchema = _chunkYSKO6SPTjs.SessionTagSchema; exports.SessionTitleUpdatedNotificationSchema = _chunkYSKO6SPTjs.SessionTitleUpdatedNotificationSchema; exports.SessionTokenUsageChangedNotificationSchema = _chunkYSKO6SPTjs.SessionTokenUsageChangedNotificationSchema; exports.SetSkillDisabledRequestParamsSchema = _chunkYSKO6SPTjs.SetSkillDisabledRequestParamsSchema; exports.SetSkillDisabledRequestSchema = _chunkYSKO6SPTjs.SetSkillDisabledRequestSchema; exports.SetSkillDisabledResponseSchema = _chunkYSKO6SPTjs.SetSkillDisabledResponseSchema; exports.SetSkillDisabledResultSchema = _chunkYSKO6SPTjs.SetSkillDisabledResultSchema; exports.SettingsLevel = _chunkYSKO6SPTjs.SettingsLevel; exports.SettingsUpdatedNotificationSchema = _chunkYSKO6SPTjs.SettingsUpdatedNotificationSchema; exports.SettingsUpdatedPayloadSchema = _chunkYSKO6SPTjs.SettingsUpdatedPayloadSchema; exports.SkillDeviationSchema = _chunkYSKO6SPTjs.SkillDeviationSchema; exports.SkillFeedbackSchema = _chunkYSKO6SPTjs.SkillFeedbackSchema; exports.SkillInfoSchema = _chunkYSKO6SPTjs.SkillInfoSchema; exports.SkillLocation = _chunkYSKO6SPTjs.SkillLocation; exports.SkillResourceSchema = _chunkYSKO6SPTjs.SkillResourceSchema; exports.SpanAttribute = _chunkYSKO6SPTjs.SpanAttribute; exports.SpanEvent = _chunkYSKO6SPTjs.SpanEvent; exports.SpanName = _chunkYSKO6SPTjs.SpanName; exports.SseMcpConfigSchema = _chunkYSKO6SPTjs.SseMcpSchema; exports.StartMissionRunConfirmationDetailsSchema = _chunkYSKO6SPTjs.StartMissionRunConfirmationDetailsSchema; exports.StdioMcpConfigSchema = _chunkYSKO6SPTjs.StdioMcpSchema; exports.StreamStateTracker = _chunkYSKO6SPTjs.StreamStateTracker; exports.StructuredOutputErrorSchema = _chunkYSKO6SPTjs.StructuredOutputErrorSchema; exports.StructuredOutputNotificationSchema = _chunkYSKO6SPTjs.StructuredOutputNotificationSchema; exports.SubmitBugReportRequestParamsSchema = _chunkYSKO6SPTjs.SubmitBugReportRequestParamsSchema; exports.SubmitBugReportRequestSchema = _chunkYSKO6SPTjs.SubmitBugReportRequestSchema; exports.SubmitBugReportResponseSchema = _chunkYSKO6SPTjs.SubmitBugReportResponseSchema; exports.SubmitBugReportResultSchema = _chunkYSKO6SPTjs.SubmitBugReportResultSchema; exports.SubmitMcpAuthCodeRequestParamsSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeRequestParamsSchema; exports.SubmitMcpAuthCodeRequestSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeRequestSchema; exports.SubmitMcpAuthCodeResponseSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResponseSchema; exports.SubmitMcpAuthCodeResultSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResultSchema; exports.SuccessResultSchema = _chunkYSKO6SPTjs.SuccessResultSchema; exports.TestCaseSchema = _chunkYSKO6SPTjs.TestCaseSchema; exports.TestFileSchema = _chunkYSKO6SPTjs.TestFileSchema; exports.TestsSchema = _chunkYSKO6SPTjs.TestsSchema; exports.TextBlockSchema = _chunkYSKO6SPTjs.TextBlockSchema; exports.ThinkingBlockSchema = _chunkYSKO6SPTjs.ThinkingBlockSchema; exports.ThinkingTextCompleteNotificationSchema = _chunkYSKO6SPTjs.ThinkingTextCompleteNotificationSchema; exports.ThinkingTextDeltaNotificationSchema = _chunkYSKO6SPTjs.ThinkingTextDeltaNotificationSchema; exports.TimeoutError = _chunkYSKO6SPTjs.TimeoutError; exports.ToggleMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.ToggleMcpServerRequestParamsSchema; exports.ToggleMcpServerRequestSchema = _chunkYSKO6SPTjs.ToggleMcpServerRequestSchema; exports.ToggleMcpServerResponseSchema = _chunkYSKO6SPTjs.ToggleMcpServerResponseSchema; exports.ToggleMcpServerResultSchema = _chunkYSKO6SPTjs.ToggleMcpServerResultSchema; exports.ToggleMcpToolRequestParamsSchema = _chunkYSKO6SPTjs.ToggleMcpToolRequestParamsSchema; exports.ToggleMcpToolRequestSchema = _chunkYSKO6SPTjs.ToggleMcpToolRequestSchema; exports.ToggleMcpToolResponseSchema = _chunkYSKO6SPTjs.ToggleMcpToolResponseSchema; exports.ToggleMcpToolResultSchema = _chunkYSKO6SPTjs.ToggleMcpToolResultSchema; exports.TokenUsageSchema = _chunkYSKO6SPTjs.TokenUsageSchema; exports.ToolCallNotificationSchema = _chunkYSKO6SPTjs.ToolCallNotificationSchema; exports.ToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.ToolConfirmationDetailsSchema; exports.ToolConfirmationInfoSchema = _chunkYSKO6SPTjs.ToolConfirmationInfoSchema; exports.ToolConfirmationListItemSchema = _chunkYSKO6SPTjs.ToolConfirmationListItemSchema; exports.ToolConfirmationOutcome = _chunkYSKO6SPTjs.ToolConfirmationOutcome; exports.ToolConfirmationType = _chunkYSKO6SPTjs.ToolConfirmationType; exports.ToolProgressUpdateNotificationSchema = _chunkYSKO6SPTjs.ToolProgressUpdateNotificationSchema; exports.ToolProgressUpdateSchema = _chunkYSKO6SPTjs.ToolProgressUpdateSchema; exports.ToolResultBlockSchema = _chunkYSKO6SPTjs.ToolResultSchema; exports.ToolResultNotificationSchema = _chunkYSKO6SPTjs.ToolResultNotificationSchema; exports.ToolSelectionOverridesSchema = _chunkYSKO6SPTjs.ToolSelectionOverridesSchema; exports.ToolUseBlockSchema = _chunkYSKO6SPTjs.ToolUseSchema; exports.ToolUseSchema = _chunkYSKO6SPTjs.ToolUseSchema2; exports.TraceContextMetaSchema = _chunkYSKO6SPTjs.TraceContextMetaSchema; exports.TransportDirection = TransportDirection; exports.TunnelConnection = _chunkYSKO6SPTjs.TunnelConnection; exports.UpdateSessionSettingsRequestParamsSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsRequestParamsSchema; exports.UpdateSessionSettingsRequestSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsRequestSchema; exports.UpdateSessionSettingsResponseSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsResponseSchema; exports.UpdateSessionSettingsResultSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsResultSchema; exports.VerificationCommandSchema = _chunkYSKO6SPTjs.VerificationCommandSchema; exports.VerificationSchema = _chunkYSKO6SPTjs.VerificationSchema; exports.WINDOWS_JOB_OBJECT_ERROR_MARKER = WINDOWS_JOB_OBJECT_ERROR_MARKER; exports.WebSocketConnectionError = _chunkYSKO6SPTjs.WebSocketConnectionError; exports.WebSocketDaemonTransport = _chunkYSKO6SPTjs.WebSocketDaemonTransport; exports.WorkerCompletedEntrySchema = _chunkYSKO6SPTjs.WorkerCompletedEntrySchema; exports.WorkerFailedEntrySchema = _chunkYSKO6SPTjs.WorkerFailedEntrySchema; exports.WorkerPausedEntrySchema = _chunkYSKO6SPTjs.WorkerPausedEntrySchema; exports.WorkerSelectedFeatureEntrySchema = _chunkYSKO6SPTjs.WorkerSelectedFeatureEntrySchema; exports.WorkerStartedEntrySchema = _chunkYSKO6SPTjs.WorkerStartedEntrySchema; exports.WorkerStateInfoSchema = _chunkYSKO6SPTjs.WorkerStateInfoSchema; exports.__resetTransportLoggerForTests = __resetTransportLoggerForTests; exports.buildUserMessageContentBlocks = _chunkYSKO6SPTjs.buildUserMessageContentBlocks; exports.configureDaemonCoreDeps = _chunkYSKO6SPTjs.configureDaemonCoreDeps; exports.connectAndAuthenticate = _chunkYSKO6SPTjs.connectAndAuthenticate; exports.connectToDaemon = _chunkYSKO6SPTjs.connectToDaemon; exports.connectWithRetry = _chunkYSKO6SPTjs.connectWithRetry; exports.convertNotificationToStreamMessage = _chunkYSKO6SPTjs.convertNotificationToStreamMessage; exports.createComputer = _chunkYSKO6SPTjs.createComputer; exports.createResponseSchema = _chunkYSKO6SPTjs.createResponseSchema; exports.createSdkMcpServer = createSdkMcpServer; exports.createSession = createSession; exports.createWebSocketDaemonClient = _chunkYSKO6SPTjs.createWebSocketDaemonClient; exports.defaultDaemonCoreDeps = _chunkYSKO6SPTjs.defaultDaemonCoreDeps; exports.deleteComputer = _chunkYSKO6SPTjs.deleteComputer; exports.filterMessagesForUI = _chunkYSKO6SPTjs.filterMessagesForUI; exports.getComputer = _chunkYSKO6SPTjs.getComputer; exports.getComputerByName = _chunkYSKO6SPTjs.getComputerByName; exports.getComputerMetrics = _chunkYSKO6SPTjs.getComputerMetrics; exports.getMachineTemplate = _chunkYSKO6SPTjs.getMachineTemplate; exports.getPermissionToolInputForDisplay = _chunkYSKO6SPTjs.getPermissionToolInputForDisplay; exports.getQueuedUserMessageDisplayGroup = _chunkYSKO6SPTjs.getQueuedUserMessageDisplayGroup; exports.getQueuedUserMessageReviewPriority = _chunkYSKO6SPTjs.getQueuedUserMessageReviewPriority; exports.getSubagentCallingMetadata = _chunkYSKO6SPTjs.getSubagentCallingMetadata; exports.getToolResultBlocks = _chunkYSKO6SPTjs.getToolResultBlocks; exports.getToolResultToolUseId = _chunkYSKO6SPTjs.getToolResultToolUseId; exports.hasDecoupledInteractionSettings = _chunkYSKO6SPTjs.hasDecoupledInteractionSettings; exports.hasSubagentSessionTag = _chunkYSKO6SPTjs.hasSubagentSessionTag; exports.inspectJsonRpcEnvelope = _chunkYSKO6SPTjs.inspectJsonRpcEnvelope; exports.isDaemonQueuedMessageKind = _chunkYSKO6SPTjs.isDaemonQueuedMessageKind; exports.isPendingToolResultMarker = _chunkYSKO6SPTjs.isPendingToolResultMarker; exports.isPersistedHookMessage = _chunkYSKO6SPTjs.isPersistedHookMessage; exports.isReviewableQueuedMessageKind = _chunkYSKO6SPTjs.isReviewableQueuedMessageKind; exports.isTransportLoggingEnabled = isTransportLoggingEnabled; exports.listComputers = _chunkYSKO6SPTjs.listComputers; exports.listMachineTemplates = _chunkYSKO6SPTjs.listMachineTemplates; exports.listModels = listModels; exports.listRemoteSessions = _chunkYSKO6SPTjs.listRemoteSessions; exports.listSessions = listSessions; exports.logTransportMessage = logTransportMessage; exports.machineTypeToMachineConnectionType = _chunkYSKO6SPTjs.machineTypeToMachineConnectionType; exports.noopLogger = noopLogger; exports.orderMessagesByParentChain = _chunkYSKO6SPTjs.orderMessagesByParentChain; exports.recordComputerConnectSli = _chunkYSKO6SPTjs.recordComputerConnectSli; exports.refreshComputer = _chunkYSKO6SPTjs.refreshComputer; exports.repairParentChainCorruption = _chunkYSKO6SPTjs.repairParentChainCorruption; exports.resolveExecCoreDeps = resolveExecCoreDeps; exports.restartComputer = _chunkYSKO6SPTjs.restartComputer; exports.resumeSession = resumeSession; exports.retryInstallDeps = _chunkYSKO6SPTjs.retryInstallDeps; exports.retryWithLogger = _chunkYSKO6SPTjs.retryWithLogger; exports.run = run; exports.spawnWithWindowsJobObjectRetry = spawnWithWindowsJobObjectRetry; exports.sumTokenUsage = _chunkYSKO6SPTjs.sumTokenUsage; exports.summarizeSessionToolUsage = _chunkYSKO6SPTjs.summarizeSessionToolUsage; exports.toError = _chunkYSKO6SPTjs.toError; exports.tool = tool; exports.updateComputer = _chunkYSKO6SPTjs.updateComputer;
4731
4744
  //# sourceMappingURL=node.js.map