@factory/droid-sdk 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/{chunk-C3KHERVH.js → chunk-FJP5OKS5.js} +6250 -4329
  2. package/dist/chunk-FJP5OKS5.js.map +1 -0
  3. package/dist/{chunk-5UXINOXG.mjs → chunk-KXDG5ZWS.mjs} +8897 -6976
  4. package/dist/chunk-KXDG5ZWS.mjs.map +1 -0
  5. package/dist/{index-D_SzTnFR.d.mts → index-BowvC0_E.d.mts} +43128 -10981
  6. package/dist/{index-D_SzTnFR.d.ts → index-BowvC0_E.d.ts} +43128 -10981
  7. package/dist/index.d.mts +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +10 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/index.mjs +9 -1
  12. package/dist/node.d.mts +25 -3
  13. package/dist/node.d.ts +25 -3
  14. package/dist/node.js +565 -423
  15. package/dist/node.js.map +1 -1
  16. package/dist/node.mjs +186 -44
  17. package/dist/node.mjs.map +1 -1
  18. package/docs/typescript-sdk-reference.md +903 -726
  19. package/examples/browser/daemon-model-discovery.ts +47 -0
  20. package/examples/browser/index.html +2 -1
  21. package/examples/browser/list-sessions.ts +1 -3
  22. package/examples/node/abort-session-stream.ts +2 -0
  23. package/examples/node/ask-user-elicitation.ts +11 -7
  24. package/examples/node/compact-session.ts +33 -18
  25. package/examples/node/custom-system-prompt.ts +35 -0
  26. package/examples/node/document-input.ts +58 -0
  27. package/examples/node/enter-spec-mode.ts +50 -29
  28. package/examples/node/external-mcp.ts +45 -0
  29. package/examples/node/fork-session.ts +21 -10
  30. package/examples/node/hook-execution.ts +37 -37
  31. package/examples/node/image-attachment.ts +8 -2
  32. package/examples/node/interrupt-session.ts +27 -8
  33. package/examples/node/model-discovery.ts +28 -0
  34. package/examples/node/model-selection.ts +35 -0
  35. package/examples/node/multi-turn-session.ts +4 -0
  36. package/examples/node/observability.ts +4 -17
  37. package/examples/node/partial-stream.ts +56 -0
  38. package/examples/node/permission-handler.ts +9 -4
  39. package/examples/node/rename-session.ts +7 -3
  40. package/examples/node/result-metadata.ts +10 -1
  41. package/examples/node/resume-session.ts +41 -0
  42. package/examples/node/rewind-session.ts +19 -9
  43. package/examples/node/run.ts +14 -7
  44. package/examples/node/sdk-mcp-tool.ts +10 -8
  45. package/examples/node/session-settings.ts +9 -9
  46. package/examples/node/session-stream.ts +17 -2
  47. package/examples/node/skills.ts +24 -0
  48. package/examples/node/spec-mode-new-session.ts +38 -10
  49. package/examples/node/spec-mode-same-session.ts +37 -3
  50. package/examples/node/structured-output.ts +30 -7
  51. package/package.json +1 -1
  52. package/dist/chunk-5UXINOXG.mjs.map +0 -1
  53. package/dist/chunk-C3KHERVH.js.map +0 -1
package/dist/node.js CHANGED
@@ -435,7 +435,17 @@
435
435
 
436
436
 
437
437
 
438
- var _chunkC3KHERVHjs = require('./chunk-C3KHERVH.js');
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+ var _chunkFJP5OKS5js = require('./chunk-FJP5OKS5.js');
439
449
 
440
450
  // src/exec-core/client.ts
441
451
  var _events = require('events'); var _events2 = _interopRequireDefault(_events);
@@ -770,11 +780,11 @@ function resolveExecCoreDeps(observability, fallback = defaultExecCoreDeps) {
770
780
 
771
781
  // src/exec-core/client.ts
772
782
  function getResponseId(response) {
773
- const parsed = _chunkC3KHERVHjs.JsonRpcBaseResponseSchema.safeParse(response);
783
+ const parsed = _chunkFJP5OKS5js.JsonRpcBaseResponseSchema.safeParse(response);
774
784
  return parsed.success ? parsed.data.id : void 0;
775
785
  }
776
- var JsonRpcEnvelopePeekSchema = _chunkC3KHERVHjs.JsonRpcEnvelopeSchema.partial().extend({
777
- type: _zod.z.nativeEnum(_chunkC3KHERVHjs.JsonRpcMessageType).optional(),
786
+ var JsonRpcEnvelopePeekSchema = _chunkFJP5OKS5js.JsonRpcEnvelopeSchema.partial().extend({
787
+ type: _zod.z.nativeEnum(_chunkFJP5OKS5js.JsonRpcMessageType).optional(),
778
788
  method: _zod.z.string().optional(),
779
789
  id: _zod.z.string().nullable().optional()
780
790
  }).passthrough();
@@ -785,8 +795,8 @@ function inspectJsonRpcEnvelope2(message) {
785
795
  }
786
796
  const envelope = result.data;
787
797
  return {
788
- protocolVersionMismatch: envelope.factoryProtocolVersion !== void 0 && envelope.factoryProtocolVersion !== _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION ? {
789
- localFactoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
798
+ protocolVersionMismatch: envelope.factoryProtocolVersion !== void 0 && envelope.factoryProtocolVersion !== _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION ? {
799
+ localFactoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
790
800
  peerFactoryProtocolVersion: envelope.factoryProtocolVersion,
791
801
  messageType: envelope.type,
792
802
  method: envelope.method,
@@ -797,6 +807,7 @@ function inspectJsonRpcEnvelope2(message) {
797
807
  var DroidClient = (_class = class _DroidClient extends _events2.default {
798
808
 
799
809
 
810
+
800
811
  __init() {this.pendingRequests = /* @__PURE__ */ new Map()}
801
812
  __init2() {this.permissionHandlers = /* @__PURE__ */ new Map()}
802
813
  __init3() {this.askUserHandlers = /* @__PURE__ */ new Map()}
@@ -810,17 +821,21 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
810
821
  * requests from hanging on a dead transport.
811
822
  */
812
823
  __init7() {this.transportError = null}
824
+ __init8() {this.completedTurnObserved = false}
825
+
813
826
 
814
827
 
815
828
 
816
829
  constructor(options, deps = defaultExecCoreDeps) {
817
- 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);;
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);;
818
831
  this.transport = options.transport;
819
832
  const resolved = resolveExecCoreDeps(options.observability, deps);
820
833
  this.logger = resolved.logger;
821
834
  this.tracing = resolved.tracing;
822
835
  this.requestTimeout = _nullishCoalesce(options.requestTimeout, () => ( DEFAULT_REQUEST_TIMEOUT2));
836
+ this.sessionInitTimeout = _nullishCoalesce(options.sessionInitTimeout, () => ( SESSION_INIT_TIMEOUT2));
823
837
  this.onRequestSettled = options.onRequestSettled;
838
+ this.getRequestAttribution = options.getRequestAttribution;
824
839
  this.transport.onMessage((message) => {
825
840
  void this.handleMessage(message).catch((error) => {
826
841
  const err = error instanceof Error ? error : new Error(String(error));
@@ -834,7 +849,14 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
834
849
  });
835
850
  this.transport.onError((error) => {
836
851
  const err = error instanceof Error ? error : new Error(String(error));
837
- this.logger.exception(err, "Transport error");
852
+ const expectedCleanExit = err instanceof _chunkFJP5OKS5js.ProcessExitError && err.exitCode === 0 && this.completedTurnObserved;
853
+ if (expectedCleanExit) {
854
+ this.logger.info("[DroidClient] Process exited after completed turn", {
855
+ exitCode: err.exitCode
856
+ });
857
+ } else {
858
+ this.logger.exception(err, "Transport error");
859
+ }
838
860
  this.transportError = err;
839
861
  this.rejectAllPending(err);
840
862
  if (this.listenerCount("error" /* ERROR */) > 0) {
@@ -855,14 +877,14 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
855
877
  return this.transport.isConnected;
856
878
  }
857
879
  requireMcpOAuthOptOutSupport() {
858
- if (this.peerProtocolVersion === _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION) {
880
+ if (this.peerProtocolVersion === _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION) {
859
881
  return;
860
882
  }
861
- throw new (0, _chunkC3KHERVHjs.ProtocolError)(
883
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)(
862
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.",
863
885
  {
864
886
  value: {
865
- localFactoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
887
+ localFactoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
866
888
  peerFactoryProtocolVersion: this.peerProtocolVersion
867
889
  }
868
890
  }
@@ -875,19 +897,22 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
875
897
  }
876
898
  async initializeSession(params) {
877
899
  const request = {
878
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
879
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
900
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
901
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
880
902
  type: "request",
881
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
903
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
882
904
  id: _uuid.v4.call(void 0, ),
883
905
  method: "droid.initialize_session" /* INITIALIZE_SESSION */,
884
906
  params
885
907
  };
886
- const rawResponse = await this.sendRequest(request, SESSION_INIT_TIMEOUT2);
887
- const response = _chunkC3KHERVHjs.InitializeSessionResponseSchema.parse(rawResponse);
908
+ const rawResponse = await this.sendRequest(
909
+ request,
910
+ this.sessionInitTimeout
911
+ );
912
+ const response = _chunkFJP5OKS5js.InitializeSessionResponseSchema.parse(rawResponse);
888
913
  this.peerProtocolVersion = response.factoryProtocolVersion;
889
914
  if (response.error) {
890
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Initialize session request failed", {
915
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Initialize session request failed", {
891
916
  requestId: request.id,
892
917
  code: response.error.code,
893
918
  message: response.error.message,
@@ -895,34 +920,37 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
895
920
  });
896
921
  }
897
922
  this.validateMcpServersProtocolSupport(params.mcpServers);
898
- const result = _chunkC3KHERVHjs.InitializeSessionResultSchema.parse(response.result);
923
+ const result = _chunkFJP5OKS5js.InitializeSessionResultSchema.parse(response.result);
899
924
  this.currentSessionId = result.sessionId;
900
925
  return response;
901
926
  }
902
927
  async loadSession(params) {
903
928
  const request = {
904
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
905
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
929
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
930
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
906
931
  type: "request",
907
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
932
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
908
933
  id: _uuid.v4.call(void 0, ),
909
934
  method: "droid.load_session" /* LOAD_SESSION */,
910
935
  params
911
936
  };
912
- const rawResponse = await this.sendRequest(request, SESSION_INIT_TIMEOUT2);
913
- const response = _chunkC3KHERVHjs.LoadSessionResponseSchema.parse(rawResponse);
937
+ const rawResponse = await this.sendRequest(
938
+ request,
939
+ this.sessionInitTimeout
940
+ );
941
+ const response = _chunkFJP5OKS5js.LoadSessionResponseSchema.parse(rawResponse);
914
942
  this.peerProtocolVersion = response.factoryProtocolVersion;
915
943
  if (response.error) {
916
944
  const isSessionNotFound = response.error.code === -32004 /* ENTITY_NOT_FOUND */;
917
945
  if (isSessionNotFound) {
918
- throw new (0, _chunkC3KHERVHjs.SessionNotFoundError)(params.sessionId, {
946
+ throw new (0, _chunkFJP5OKS5js.SessionNotFoundError)(params.sessionId, {
919
947
  requestId: request.id,
920
948
  code: response.error.code,
921
949
  message: response.error.message,
922
950
  data: response.error.data
923
951
  });
924
952
  }
925
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Load session request failed", {
953
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Load session request failed", {
926
954
  requestId: request.id,
927
955
  code: response.error.code,
928
956
  message: response.error.message,
@@ -935,34 +963,60 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
935
963
  }
936
964
  async addUserMessage(params, requestId) {
937
965
  if (!this.currentSessionId) {
938
- throw new (0, _chunkC3KHERVHjs.SessionError)(
966
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
939
967
  "No active session. Call initializeSession or loadSession first."
940
968
  );
941
969
  }
970
+ this.completedTurnObserved = false;
942
971
  const request = {
943
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
944
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
972
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
973
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
945
974
  type: "request",
946
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
975
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
947
976
  id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
948
977
  method: "droid.add_user_message" /* ADD_USER_MESSAGE */,
949
978
  params: {
950
- ...params.messageId && { messageId: params.messageId },
951
- text: params.text,
952
- images: params.images,
953
- imagePaths: params.imagePaths,
954
- files: params.files,
955
- outputFormat: params.outputFormat,
956
- ...params.skipAgentLoop && { skipAgentLoop: params.skipAgentLoop },
957
- queuePlacement: _nullishCoalesce(params.queuePlacement, () => ( "end_of_turn")) /* EndOfTurn */,
958
- ...params.role && { role: params.role },
959
- ...params.visibility && { visibility: params.visibility }
979
+ ...params,
980
+ queuePlacement: _nullishCoalesce(params.queuePlacement, () => ( "end_of_turn")) /* EndOfTurn */
960
981
  }
961
982
  };
962
983
  const rawResponse = await this.sendRequest(request);
963
- const response = _chunkC3KHERVHjs.AddUserMessageResponseSchema.parse(rawResponse);
984
+ const response = _chunkFJP5OKS5js.AddUserMessageResponseSchema.parse(rawResponse);
964
985
  if (response.error) {
965
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Add user message request failed", {
986
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Add user message request failed", {
987
+ requestId: request.id,
988
+ code: response.error.code,
989
+ message: response.error.message,
990
+ data: response.error.data
991
+ });
992
+ }
993
+ return response;
994
+ }
995
+ /**
996
+ * Persists user-only messages without starting an agent turn.
997
+ *
998
+ * Use for daemon-owned activity that belongs in session history but was not
999
+ * produced by the agent, such as commands run while a session starts.
1000
+ */
1001
+ async appendMessages(params, requestId) {
1002
+ if (!this.currentSessionId) {
1003
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1004
+ "No active session. Call initializeSession or loadSession first."
1005
+ );
1006
+ }
1007
+ const request = {
1008
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1009
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1010
+ type: "request",
1011
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1012
+ id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
1013
+ method: "droid.append_messages" /* APPEND_MESSAGES */,
1014
+ params
1015
+ };
1016
+ const rawResponse = await this.sendRequest(request);
1017
+ const response = _chunkFJP5OKS5js.AppendMessagesResponseSchema.parse(rawResponse);
1018
+ if (response.error) {
1019
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Append messages request failed", {
966
1020
  requestId: request.id,
967
1021
  code: response.error.code,
968
1022
  message: response.error.message,
@@ -973,23 +1027,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
973
1027
  }
974
1028
  async resolveQueuedUserMessage(params) {
975
1029
  if (!this.currentSessionId) {
976
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1030
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
977
1031
  "No active session. Call initializeSession or loadSession first."
978
1032
  );
979
1033
  }
980
1034
  const request = {
981
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
982
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1035
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1036
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
983
1037
  type: "request",
984
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1038
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
985
1039
  id: _uuid.v4.call(void 0, ),
986
1040
  method: "droid.resolve_queued_user_message" /* RESOLVE_QUEUED_USER_MESSAGE */,
987
1041
  params
988
1042
  };
989
1043
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
990
- const response = _chunkC3KHERVHjs.ResolveQueuedUserMessageResponseSchema.parse(rawResponse);
1044
+ const response = _chunkFJP5OKS5js.ResolveQueuedUserMessageResponseSchema.parse(rawResponse);
991
1045
  if (response.error) {
992
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Resolve queued user message request failed", {
1046
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Resolve queued user message request failed", {
993
1047
  requestId: request.id,
994
1048
  code: response.error.code,
995
1049
  message: response.error.message,
@@ -1000,23 +1054,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1000
1054
  }
1001
1055
  async interruptSession(params = {}) {
1002
1056
  if (!this.currentSessionId) {
1003
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1057
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1004
1058
  "No active session. Call initializeSession or loadSession first."
1005
1059
  );
1006
1060
  }
1007
1061
  const request = {
1008
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1009
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1062
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1063
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1010
1064
  type: "request",
1011
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1065
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1012
1066
  id: _uuid.v4.call(void 0, ),
1013
1067
  method: "droid.interrupt_session" /* INTERRUPT_SESSION */,
1014
1068
  params
1015
1069
  };
1016
1070
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1017
- const response = _chunkC3KHERVHjs.InterruptSessionResponseSchema.parse(rawResponse);
1071
+ const response = _chunkFJP5OKS5js.InterruptSessionResponseSchema.parse(rawResponse);
1018
1072
  if (response.error) {
1019
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Interrupt session request failed", {
1073
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Interrupt session request failed", {
1020
1074
  requestId: request.id,
1021
1075
  code: response.error.code,
1022
1076
  message: response.error.message,
@@ -1027,23 +1081,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1027
1081
  }
1028
1082
  async closeSession(params = {}) {
1029
1083
  if (!this.currentSessionId) {
1030
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1084
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1031
1085
  "No active session. Call initializeSession or loadSession first."
1032
1086
  );
1033
1087
  }
1034
1088
  const request = {
1035
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1036
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1089
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1090
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1037
1091
  type: "request",
1038
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1092
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1039
1093
  id: _uuid.v4.call(void 0, ),
1040
1094
  method: "droid.close_session" /* CLOSE_SESSION */,
1041
1095
  params
1042
1096
  };
1043
1097
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1044
- const response = _chunkC3KHERVHjs.CloseSessionResponseSchema.parse(rawResponse);
1098
+ const response = _chunkFJP5OKS5js.CloseSessionResponseSchema.parse(rawResponse);
1045
1099
  if (response.error) {
1046
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Close session request failed", {
1100
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Close session request failed", {
1047
1101
  requestId: request.id,
1048
1102
  code: response.error.code,
1049
1103
  message: response.error.message,
@@ -1054,23 +1108,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1054
1108
  }
1055
1109
  async killWorkerSession(params) {
1056
1110
  if (!this.currentSessionId) {
1057
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1111
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1058
1112
  "No active session. Call initializeSession or loadSession first."
1059
1113
  );
1060
1114
  }
1061
1115
  const request = {
1062
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1063
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1116
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1117
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1064
1118
  type: "request",
1065
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1119
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1066
1120
  id: _uuid.v4.call(void 0, ),
1067
1121
  method: "droid.kill_worker_session" /* KILL_WORKER_SESSION */,
1068
1122
  params
1069
1123
  };
1070
1124
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1071
- const response = _chunkC3KHERVHjs.KillWorkerSessionResponseSchema.parse(rawResponse);
1125
+ const response = _chunkFJP5OKS5js.KillWorkerSessionResponseSchema.parse(rawResponse);
1072
1126
  if (response.error) {
1073
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Kill worker session request failed", {
1127
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Kill worker session request failed", {
1074
1128
  requestId: request.id,
1075
1129
  code: response.error.code,
1076
1130
  message: response.error.message,
@@ -1081,35 +1135,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1081
1135
  }
1082
1136
  async updateSessionSettings(params, requestId) {
1083
1137
  if (!this.currentSessionId) {
1084
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1138
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1085
1139
  "No active session. Call initializeSession or loadSession first."
1086
1140
  );
1087
1141
  }
1088
1142
  const request = {
1089
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1090
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1143
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1144
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1091
1145
  type: "request",
1092
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1146
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1093
1147
  id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
1094
1148
  method: "droid.update_session_settings" /* UPDATE_SESSION_SETTINGS */,
1095
- params: {
1096
- modelId: params.modelId,
1097
- reasoningEffort: params.reasoningEffort,
1098
- interactionMode: params.interactionMode,
1099
- autonomyLevel: params.autonomyLevel,
1100
- specModeModelId: params.specModeModelId,
1101
- specModeReasoningEffort: params.specModeReasoningEffort,
1102
- missionSettings: params.missionSettings,
1103
- tags: params.tags,
1104
- compactionTokenLimit: params.compactionTokenLimit,
1105
- compactionThresholdCheckEnabled: params.compactionThresholdCheckEnabled,
1106
- disabledToolIds: params.disabledToolIds
1107
- }
1149
+ params
1108
1150
  };
1109
1151
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1110
- const responseParsed = _chunkC3KHERVHjs.UpdateSessionSettingsResponseSchema.safeParse(rawResponse);
1152
+ const responseParsed = _chunkFJP5OKS5js.UpdateSessionSettingsResponseSchema.safeParse(rawResponse);
1111
1153
  if (!responseParsed.success) {
1112
- throw new (0, _chunkC3KHERVHjs.ProtocolError)(
1154
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)(
1113
1155
  "Invalid update session settings response format",
1114
1156
  {
1115
1157
  requestId: request.id,
@@ -1121,7 +1163,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1121
1163
  }
1122
1164
  const response = responseParsed.data;
1123
1165
  if (response.error) {
1124
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Update session settings request failed", {
1166
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Update session settings request failed", {
1125
1167
  requestId: request.id,
1126
1168
  code: response.error.code,
1127
1169
  message: response.error.message,
@@ -1132,23 +1174,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1132
1174
  }
1133
1175
  async changeWorkingDirectory(params) {
1134
1176
  if (!this.currentSessionId) {
1135
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1177
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1136
1178
  "No active session. Call initializeSession or loadSession first."
1137
1179
  );
1138
1180
  }
1139
1181
  const request = {
1140
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1141
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1182
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1183
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1142
1184
  type: "request",
1143
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1185
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1144
1186
  id: _uuid.v4.call(void 0, ),
1145
1187
  method: "droid.change_working_directory" /* CHANGE_WORKING_DIRECTORY */,
1146
1188
  params
1147
1189
  };
1148
1190
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1149
- const response = _chunkC3KHERVHjs.ChangeWorkingDirectoryResponseSchema.parse(rawResponse);
1191
+ const response = _chunkFJP5OKS5js.ChangeWorkingDirectoryResponseSchema.parse(rawResponse);
1150
1192
  if (response.error) {
1151
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Change working directory request failed", {
1193
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Change working directory request failed", {
1152
1194
  requestId: request.id,
1153
1195
  code: response.error.code,
1154
1196
  message: response.error.message,
@@ -1159,15 +1201,15 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1159
1201
  }
1160
1202
  async toggleMcpServer(params) {
1161
1203
  if (!this.currentSessionId) {
1162
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1204
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1163
1205
  "No active session. Call initializeSession or loadSession first."
1164
1206
  );
1165
1207
  }
1166
1208
  const request = {
1167
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1168
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1209
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1210
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1169
1211
  type: "request",
1170
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1212
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1171
1213
  id: _uuid.v4.call(void 0, ),
1172
1214
  method: "droid.toggle_mcp_server" /* TOGGLE_MCP_SERVER */,
1173
1215
  params: {
@@ -1177,20 +1219,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1177
1219
  }
1178
1220
  };
1179
1221
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1180
- const response = _chunkC3KHERVHjs.ToggleMcpServerResponseSchema.parse(rawResponse);
1222
+ const response = _chunkFJP5OKS5js.ToggleMcpServerResponseSchema.parse(rawResponse);
1181
1223
  return response;
1182
1224
  }
1183
1225
  async authenticateMcpServer(params) {
1184
1226
  if (!this.currentSessionId) {
1185
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1227
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1186
1228
  "No active session. Call initializeSession or loadSession first."
1187
1229
  );
1188
1230
  }
1189
1231
  const request = {
1190
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1191
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1232
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1233
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1192
1234
  type: "request",
1193
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1235
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1194
1236
  id: _uuid.v4.call(void 0, ),
1195
1237
  method: "droid.authenticate_mcp_server" /* AUTHENTICATE_MCP_SERVER */,
1196
1238
  params: {
@@ -1198,20 +1240,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1198
1240
  }
1199
1241
  };
1200
1242
  const rawResponse = await this.sendRequest(request, MCP_AUTH_TIMEOUT2);
1201
- const response = _chunkC3KHERVHjs.AuthenticateMcpServerResponseSchema.parse(rawResponse);
1243
+ const response = _chunkFJP5OKS5js.AuthenticateMcpServerResponseSchema.parse(rawResponse);
1202
1244
  return response;
1203
1245
  }
1204
1246
  async cancelMcpAuth(params) {
1205
1247
  if (!this.currentSessionId) {
1206
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1248
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1207
1249
  "No active session. Call initializeSession or loadSession first."
1208
1250
  );
1209
1251
  }
1210
1252
  const request = {
1211
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1212
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1253
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1254
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1213
1255
  type: "request",
1214
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1256
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1215
1257
  id: _uuid.v4.call(void 0, ),
1216
1258
  method: "droid.cancel_mcp_auth" /* CANCEL_MCP_AUTH */,
1217
1259
  params: {
@@ -1219,20 +1261,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1219
1261
  }
1220
1262
  };
1221
1263
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1222
- const response = _chunkC3KHERVHjs.CancelMcpAuthResponseSchema.parse(rawResponse);
1264
+ const response = _chunkFJP5OKS5js.CancelMcpAuthResponseSchema.parse(rawResponse);
1223
1265
  return response;
1224
1266
  }
1225
1267
  async clearMcpAuth(params) {
1226
1268
  if (!this.currentSessionId) {
1227
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1269
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1228
1270
  "No active session. Call initializeSession or loadSession first."
1229
1271
  );
1230
1272
  }
1231
1273
  const request = {
1232
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1233
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1274
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1275
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1234
1276
  type: "request",
1235
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1277
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1236
1278
  id: _uuid.v4.call(void 0, ),
1237
1279
  method: "droid.clear_mcp_auth" /* CLEAR_MCP_AUTH */,
1238
1280
  params: {
@@ -1240,12 +1282,12 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1240
1282
  }
1241
1283
  };
1242
1284
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1243
- const response = _chunkC3KHERVHjs.ClearMcpAuthResponseSchema.parse(rawResponse);
1285
+ const response = _chunkFJP5OKS5js.ClearMcpAuthResponseSchema.parse(rawResponse);
1244
1286
  return response;
1245
1287
  }
1246
1288
  async addMcpServer(params) {
1247
1289
  if (!this.currentSessionId) {
1248
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1290
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1249
1291
  "No active session. Call initializeSession or loadSession first."
1250
1292
  );
1251
1293
  }
@@ -1253,289 +1295,302 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1253
1295
  this.requireMcpOAuthOptOutSupport();
1254
1296
  }
1255
1297
  const request = {
1256
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1257
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1298
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1299
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1258
1300
  type: "request",
1259
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1301
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1260
1302
  id: _uuid.v4.call(void 0, ),
1261
1303
  method: "droid.add_mcp_server" /* ADD_MCP_SERVER */,
1262
1304
  params
1263
1305
  };
1264
1306
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1265
- const response = _chunkC3KHERVHjs.AddMcpServerResponseSchema.parse(rawResponse);
1307
+ const response = _chunkFJP5OKS5js.AddMcpServerResponseSchema.parse(rawResponse);
1266
1308
  return response;
1267
1309
  }
1268
1310
  async removeMcpServer(params) {
1269
1311
  if (!this.currentSessionId) {
1270
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1312
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1271
1313
  "No active session. Call initializeSession or loadSession first."
1272
1314
  );
1273
1315
  }
1274
1316
  const request = {
1275
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1276
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1317
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1318
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1277
1319
  type: "request",
1278
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1320
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1279
1321
  id: _uuid.v4.call(void 0, ),
1280
1322
  method: "droid.remove_mcp_server" /* REMOVE_MCP_SERVER */,
1281
1323
  params
1282
1324
  };
1283
1325
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1284
- const response = _chunkC3KHERVHjs.RemoveMcpServerResponseSchema.parse(rawResponse);
1326
+ const response = _chunkFJP5OKS5js.RemoveMcpServerResponseSchema.parse(rawResponse);
1285
1327
  return response;
1286
1328
  }
1329
+ async listModels(params = {}) {
1330
+ const request = {
1331
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1332
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1333
+ type: "request",
1334
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1335
+ id: _uuid.v4.call(void 0, ),
1336
+ method: "droid.list_models" /* LIST_MODELS */,
1337
+ params
1338
+ };
1339
+ const rawResponse = await this.sendRequest(request, this.requestTimeout);
1340
+ return _chunkFJP5OKS5js.ListModelsResponseSchema.parse(rawResponse);
1341
+ }
1287
1342
  async listMcpRegistry() {
1288
1343
  if (!this.currentSessionId) {
1289
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1344
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1290
1345
  "No active session. Call initializeSession or loadSession first."
1291
1346
  );
1292
1347
  }
1293
1348
  const request = {
1294
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1295
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1349
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1350
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1296
1351
  type: "request",
1297
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1352
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1298
1353
  id: _uuid.v4.call(void 0, ),
1299
1354
  method: "droid.list_mcp_registry" /* LIST_MCP_REGISTRY */,
1300
1355
  params: {}
1301
1356
  };
1302
1357
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1303
- const response = _chunkC3KHERVHjs.ListMcpRegistryResponseSchema.parse(rawResponse);
1358
+ const response = _chunkFJP5OKS5js.ListMcpRegistryResponseSchema.parse(rawResponse);
1304
1359
  return response;
1305
1360
  }
1306
1361
  async listMcpTools() {
1307
1362
  if (!this.currentSessionId) {
1308
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1363
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1309
1364
  "No active session. Call initializeSession or loadSession first."
1310
1365
  );
1311
1366
  }
1312
1367
  const request = {
1313
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1314
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1368
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1369
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1315
1370
  type: "request",
1316
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1371
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1317
1372
  id: _uuid.v4.call(void 0, ),
1318
1373
  method: "droid.list_mcp_tools" /* LIST_MCP_TOOLS */,
1319
1374
  params: {}
1320
1375
  };
1321
1376
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1322
- const response = _chunkC3KHERVHjs.ListMcpToolsResponseSchema.parse(rawResponse);
1377
+ const response = _chunkFJP5OKS5js.ListMcpToolsResponseSchema.parse(rawResponse);
1323
1378
  return response;
1324
1379
  }
1325
1380
  async listTools(params = {}) {
1326
1381
  const request = {
1327
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1328
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1382
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1383
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1329
1384
  type: "request",
1330
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1385
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1331
1386
  id: _uuid.v4.call(void 0, ),
1332
1387
  method: "droid.list_tools" /* LIST_TOOLS */,
1333
1388
  params
1334
1389
  };
1335
1390
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1336
- const response = _chunkC3KHERVHjs.ListToolsResponseSchema.parse(rawResponse);
1391
+ const response = _chunkFJP5OKS5js.ListToolsResponseSchema.parse(rawResponse);
1337
1392
  return response;
1338
1393
  }
1339
1394
  async listMcpServers() {
1340
1395
  if (!this.currentSessionId) {
1341
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1396
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1342
1397
  "No active session. Call initializeSession or loadSession first."
1343
1398
  );
1344
1399
  }
1345
1400
  const request = {
1346
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1347
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1401
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1402
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1348
1403
  type: "request",
1349
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1404
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1350
1405
  id: _uuid.v4.call(void 0, ),
1351
1406
  method: "droid.list_mcp_servers" /* LIST_MCP_SERVERS */,
1352
1407
  params: {}
1353
1408
  };
1354
1409
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1355
- const response = _chunkC3KHERVHjs.ListMcpServersResponseSchema.parse(rawResponse);
1410
+ const response = _chunkFJP5OKS5js.ListMcpServersResponseSchema.parse(rawResponse);
1356
1411
  return response;
1357
1412
  }
1358
1413
  async toggleMcpTool(serverName, toolName, enabled) {
1359
1414
  if (!this.currentSessionId) {
1360
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1415
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1361
1416
  "No active session. Call initializeSession or loadSession first."
1362
1417
  );
1363
1418
  }
1364
1419
  const request = {
1365
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1366
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1420
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1421
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1367
1422
  type: "request",
1368
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1423
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1369
1424
  id: _uuid.v4.call(void 0, ),
1370
1425
  method: "droid.toggle_mcp_tool" /* TOGGLE_MCP_TOOL */,
1371
1426
  params: { serverName, toolName, enabled }
1372
1427
  };
1373
1428
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1374
- const response = _chunkC3KHERVHjs.ToggleMcpToolResponseSchema.parse(rawResponse);
1429
+ const response = _chunkFJP5OKS5js.ToggleMcpToolResponseSchema.parse(rawResponse);
1375
1430
  return response;
1376
1431
  }
1377
1432
  async submitMcpAuthCode(params) {
1378
1433
  if (!this.currentSessionId) {
1379
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1434
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1380
1435
  "No active session. Call initializeSession or loadSession first."
1381
1436
  );
1382
1437
  }
1383
1438
  const request = {
1384
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1385
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1439
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1440
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1386
1441
  type: "request",
1387
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1442
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1388
1443
  id: _uuid.v4.call(void 0, ),
1389
1444
  method: "droid.submit_mcp_auth_code" /* SUBMIT_MCP_AUTH_CODE */,
1390
1445
  params
1391
1446
  };
1392
1447
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1393
- const response = _chunkC3KHERVHjs.SubmitMcpAuthCodeResponseSchema.parse(rawResponse);
1448
+ const response = _chunkFJP5OKS5js.SubmitMcpAuthCodeResponseSchema.parse(rawResponse);
1394
1449
  return response;
1395
1450
  }
1396
1451
  async submitMcpAuthError(params) {
1397
1452
  if (!this.currentSessionId) {
1398
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1453
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1399
1454
  "No active session. Call initializeSession or loadSession first."
1400
1455
  );
1401
1456
  }
1402
1457
  const request = {
1403
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1404
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1458
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1459
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1405
1460
  type: "request",
1406
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1461
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1407
1462
  id: _uuid.v4.call(void 0, ),
1408
1463
  method: "droid.submit_mcp_auth_error" /* SUBMIT_MCP_AUTH_ERROR */,
1409
1464
  params
1410
1465
  };
1411
1466
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1412
- const response = _chunkC3KHERVHjs.SubmitMcpAuthErrorResponseSchema.parse(rawResponse);
1467
+ const response = _chunkFJP5OKS5js.SubmitMcpAuthErrorResponseSchema.parse(rawResponse);
1413
1468
  return response;
1414
1469
  }
1415
1470
  async listSkills() {
1416
1471
  if (!this.currentSessionId) {
1417
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1472
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1418
1473
  "No active session. Call initializeSession or loadSession first."
1419
1474
  );
1420
1475
  }
1421
1476
  const request = {
1422
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1423
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1477
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1478
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1424
1479
  type: "request",
1425
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1480
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1426
1481
  id: _uuid.v4.call(void 0, ),
1427
1482
  method: "droid.list_skills" /* LIST_SKILLS */,
1428
1483
  params: {}
1429
1484
  };
1430
1485
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1431
- const response = _chunkC3KHERVHjs.ListSkillsResponseSchema.parse(rawResponse);
1486
+ const response = _chunkFJP5OKS5js.ListSkillsResponseSchema.parse(rawResponse);
1432
1487
  return response;
1433
1488
  }
1434
1489
  async setSkillDisabled(skillName, disabled, settingsLevel) {
1435
1490
  if (!this.currentSessionId) {
1436
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1491
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1437
1492
  "No active session. Call initializeSession or loadSession first."
1438
1493
  );
1439
1494
  }
1440
1495
  const request = {
1441
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1442
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1496
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1497
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1443
1498
  type: "request",
1444
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1499
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1445
1500
  id: _uuid.v4.call(void 0, ),
1446
1501
  method: "droid.set_skill_disabled" /* SET_SKILL_DISABLED */,
1447
1502
  params: { skillName, disabled, settingsLevel }
1448
1503
  };
1449
1504
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1450
- return _chunkC3KHERVHjs.SetSkillDisabledResponseSchema.parse(rawResponse);
1505
+ return _chunkFJP5OKS5js.SetSkillDisabledResponseSchema.parse(rawResponse);
1451
1506
  }
1452
1507
  async listCommands() {
1453
1508
  if (!this.currentSessionId) {
1454
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1509
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1455
1510
  "No active session. Call initializeSession or loadSession first."
1456
1511
  );
1457
1512
  }
1458
1513
  const request = {
1459
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1460
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1514
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1515
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1461
1516
  type: "request",
1462
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1517
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1463
1518
  id: _uuid.v4.call(void 0, ),
1464
1519
  method: "droid.list_commands" /* LIST_COMMANDS */,
1465
1520
  params: {}
1466
1521
  };
1467
1522
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1468
- const response = _chunkC3KHERVHjs.ListCommandsResponseSchema.parse(rawResponse);
1523
+ const response = _chunkFJP5OKS5js.ListCommandsResponseSchema.parse(rawResponse);
1469
1524
  return response;
1470
1525
  }
1471
1526
  async getContextStats() {
1472
1527
  if (!this.currentSessionId) {
1473
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1528
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1474
1529
  "No active session. Call initializeSession or loadSession first."
1475
1530
  );
1476
1531
  }
1477
1532
  const request = {
1478
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1479
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1533
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1534
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1480
1535
  type: "request",
1481
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1536
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1482
1537
  id: _uuid.v4.call(void 0, ),
1483
1538
  method: "droid.get_context_stats" /* GET_CONTEXT_STATS */,
1484
1539
  params: {}
1485
1540
  };
1486
1541
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1487
- const response = _chunkC3KHERVHjs.GetContextStatsResponseSchema.parse(rawResponse);
1542
+ const response = _chunkFJP5OKS5js.GetContextStatsResponseSchema.parse(rawResponse);
1488
1543
  return response;
1489
1544
  }
1490
1545
  async getContextBreakdown() {
1491
1546
  if (!this.currentSessionId) {
1492
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1547
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1493
1548
  "No active session. Call initializeSession or loadSession first."
1494
1549
  );
1495
1550
  }
1496
1551
  const request = {
1497
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1498
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1552
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1553
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1499
1554
  type: "request",
1500
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1555
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1501
1556
  id: _uuid.v4.call(void 0, ),
1502
1557
  method: "droid.get_context_breakdown" /* GET_CONTEXT_BREAKDOWN */,
1503
1558
  params: {}
1504
1559
  };
1505
1560
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1506
- const response = _chunkC3KHERVHjs.GetContextBreakdownResponseSchema.parse(rawResponse);
1561
+ const response = _chunkFJP5OKS5js.GetContextBreakdownResponseSchema.parse(rawResponse);
1507
1562
  return response;
1508
1563
  }
1509
1564
  async submitBugReport(userComment, clientLogs, source) {
1510
1565
  if (!this.currentSessionId) {
1511
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1566
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1512
1567
  "No active session. Call initializeSession or loadSession first."
1513
1568
  );
1514
1569
  }
1515
1570
  const request = {
1516
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1517
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1571
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1572
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1518
1573
  type: "request",
1519
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1574
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1520
1575
  id: _uuid.v4.call(void 0, ),
1521
1576
  method: "droid.submit_bug_report" /* SUBMIT_BUG_REPORT */,
1522
1577
  params: { userComment, clientLogs, source }
1523
1578
  };
1524
1579
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1525
- const response = _chunkC3KHERVHjs.SubmitBugReportResponseSchema.parse(rawResponse);
1580
+ const response = _chunkFJP5OKS5js.SubmitBugReportResponseSchema.parse(rawResponse);
1526
1581
  return response;
1527
1582
  }
1528
1583
  async getRewindInfo(params, timeout = this.requestTimeout) {
1529
1584
  if (!this.currentSessionId) {
1530
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1585
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1531
1586
  "No active session. Call initializeSession or loadSession first."
1532
1587
  );
1533
1588
  }
1534
1589
  const request = {
1535
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1536
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1590
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1591
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1537
1592
  type: "request",
1538
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1593
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1539
1594
  id: _uuid.v4.call(void 0, ),
1540
1595
  method: "droid.get_rewind_info" /* GET_REWIND_INFO */,
1541
1596
  params: {
@@ -1544,19 +1599,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1544
1599
  }
1545
1600
  };
1546
1601
  const rawResponse = await this.sendRequest(request, timeout);
1547
- return _chunkC3KHERVHjs.GetRewindInfoResponseSchema.parse(rawResponse);
1602
+ return _chunkFJP5OKS5js.GetRewindInfoResponseSchema.parse(rawResponse);
1548
1603
  }
1549
1604
  async executeRewind(params) {
1550
1605
  if (!this.currentSessionId) {
1551
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1606
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1552
1607
  "No active session. Call initializeSession or loadSession first."
1553
1608
  );
1554
1609
  }
1555
1610
  const request = {
1556
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1557
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1611
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1612
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1558
1613
  type: "request",
1559
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1614
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1560
1615
  id: _uuid.v4.call(void 0, ),
1561
1616
  method: "droid.execute_rewind" /* EXECUTE_REWIND */,
1562
1617
  params: {
@@ -1571,19 +1626,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1571
1626
  request,
1572
1627
  this.requestTimeout * 2
1573
1628
  );
1574
- return _chunkC3KHERVHjs.ExecuteRewindResponseSchema.parse(rawResponse);
1629
+ return _chunkFJP5OKS5js.ExecuteRewindResponseSchema.parse(rawResponse);
1575
1630
  }
1576
1631
  async compactSession(params) {
1577
1632
  if (!this.currentSessionId) {
1578
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1633
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1579
1634
  "No active session. Call initializeSession or loadSession first."
1580
1635
  );
1581
1636
  }
1582
1637
  const request = {
1583
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1584
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1638
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1639
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1585
1640
  type: "request",
1586
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1641
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1587
1642
  id: _uuid.v4.call(void 0, ),
1588
1643
  method: "droid.compact_session" /* COMPACT_SESSION */,
1589
1644
  params: {
@@ -1591,37 +1646,37 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1591
1646
  }
1592
1647
  };
1593
1648
  const rawResponse = await this.sendRequest(request, COMPACTION_TIMEOUT2);
1594
- return _chunkC3KHERVHjs.CompactSessionResponseSchema.parse(rawResponse);
1649
+ return _chunkFJP5OKS5js.CompactSessionResponseSchema.parse(rawResponse);
1595
1650
  }
1596
1651
  async forkSession(params) {
1597
1652
  if (!this.currentSessionId) {
1598
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1653
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1599
1654
  "No active session. Call initializeSession or loadSession first."
1600
1655
  );
1601
1656
  }
1602
1657
  const request = {
1603
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1604
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1658
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1659
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1605
1660
  type: "request",
1606
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1661
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1607
1662
  id: _uuid.v4.call(void 0, ),
1608
1663
  method: "droid.fork_session" /* FORK_SESSION */,
1609
1664
  params: _nullishCoalesce(params, () => ( {}))
1610
1665
  };
1611
1666
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1612
- return _chunkC3KHERVHjs.ForkSessionResponseSchema.parse(rawResponse);
1667
+ return _chunkFJP5OKS5js.ForkSessionResponseSchema.parse(rawResponse);
1613
1668
  }
1614
1669
  async renameSession(params, requestId) {
1615
1670
  if (!this.currentSessionId) {
1616
- throw new (0, _chunkC3KHERVHjs.SessionError)(
1671
+ throw new (0, _chunkFJP5OKS5js.SessionError)(
1617
1672
  "No active session. Call initializeSession or loadSession first."
1618
1673
  );
1619
1674
  }
1620
1675
  const request = {
1621
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1622
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1676
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1677
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1623
1678
  type: "request",
1624
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1679
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1625
1680
  id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
1626
1681
  method: "droid.rename_session" /* RENAME_SESSION */,
1627
1682
  params: {
@@ -1629,18 +1684,18 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1629
1684
  }
1630
1685
  };
1631
1686
  const rawResponse = await this.sendRequest(request, this.requestTimeout);
1632
- return _chunkC3KHERVHjs.RenameSessionResponseSchema.parse(rawResponse);
1687
+ return _chunkFJP5OKS5js.RenameSessionResponseSchema.parse(rawResponse);
1633
1688
  }
1634
1689
  async warmupCache() {
1635
1690
  const response = {
1636
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1637
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
1691
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
1692
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1638
1693
  type: "response",
1639
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
1694
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1640
1695
  id: _uuid.v4.call(void 0, ),
1641
1696
  result: {}
1642
1697
  };
1643
- return _chunkC3KHERVHjs.WarmupCacheResponseSchema.parse(response);
1698
+ return _chunkFJP5OKS5js.WarmupCacheResponseSchema.parse(response);
1644
1699
  }
1645
1700
  onNotification(callback, filter) {
1646
1701
  const handler = (notification) => {
@@ -1684,7 +1739,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1684
1739
  this.askUserHandlers.delete("default");
1685
1740
  }
1686
1741
  async close() {
1687
- const closeError = new (0, _chunkC3KHERVHjs.ConnectionError)(
1742
+ const closeError = new (0, _chunkFJP5OKS5js.ConnectionError)(
1688
1743
  "Droid client closed: pending requests cancelled"
1689
1744
  );
1690
1745
  this.rejectAllPending(closeError);
@@ -1730,7 +1785,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1730
1785
  const timeoutId = timeout ? setTimeout(() => {
1731
1786
  this.settleRequest(request.id);
1732
1787
  reject(
1733
- new (0, _chunkC3KHERVHjs.TimeoutError)("Send request timed out", {
1788
+ new (0, _chunkFJP5OKS5js.TimeoutError)("Send request timed out", {
1734
1789
  requestId: request.id,
1735
1790
  method: request.method,
1736
1791
  timeout
@@ -1745,9 +1800,12 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1745
1800
  });
1746
1801
  }
1747
1802
  );
1748
- const _meta = {};
1803
+ const requestAttribution = _optionalChain([this, 'access', _16 => _16.getRequestAttribution, 'optionalCall', _17 => _17()]);
1804
+ const _meta = {
1805
+ ...requestAttribution && { requestAttribution }
1806
+ };
1749
1807
  this.tracing.injectContext(_meta, this.tracing.getCurrentContext());
1750
- const requestWithMeta = _meta.traceparent ? { ...request, _meta } : request;
1808
+ const requestWithMeta = _meta.traceparent || _meta.requestAttribution ? { ...request, _meta } : request;
1751
1809
  try {
1752
1810
  this.logger.info("[DroidClient] [daemon -> droid] sending request", {
1753
1811
  requestId: request.id,
@@ -1762,7 +1820,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1762
1820
  }
1763
1821
  this.settleRequest(request.id);
1764
1822
  pending.reject(
1765
- new (0, _chunkC3KHERVHjs.ProtocolError)("[daemon -> droid] Failed to send request", {
1823
+ new (0, _chunkFJP5OKS5js.ProtocolError)("[daemon -> droid] Failed to send request", {
1766
1824
  requestId: request.id,
1767
1825
  cause: error
1768
1826
  })
@@ -1779,7 +1837,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1779
1837
  } else if ("method" in parsed) {
1780
1838
  await this.handleEvent(parsed);
1781
1839
  } else {
1782
- throw new (0, _chunkC3KHERVHjs.ProtocolError)("Invalid message format", {
1840
+ throw new (0, _chunkFJP5OKS5js.ProtocolError)("Invalid message format", {
1783
1841
  message
1784
1842
  });
1785
1843
  }
@@ -1798,110 +1856,116 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1798
1856
  let validatedResponse;
1799
1857
  switch (pending.method) {
1800
1858
  case "droid.initialize_session" /* INITIALIZE_SESSION */:
1801
- validatedResponse = _chunkC3KHERVHjs.InitializeSessionResponseSchema.parse(response);
1859
+ validatedResponse = _chunkFJP5OKS5js.InitializeSessionResponseSchema.parse(response);
1802
1860
  break;
1803
1861
  case "droid.load_session" /* LOAD_SESSION */:
1804
- validatedResponse = _chunkC3KHERVHjs.LoadSessionResponseSchema.parse(response);
1862
+ validatedResponse = _chunkFJP5OKS5js.LoadSessionResponseSchema.parse(response);
1805
1863
  break;
1806
1864
  case "droid.add_user_message" /* ADD_USER_MESSAGE */:
1807
- validatedResponse = _chunkC3KHERVHjs.AddUserMessageResponseSchema.parse(response);
1865
+ validatedResponse = _chunkFJP5OKS5js.AddUserMessageResponseSchema.parse(response);
1866
+ break;
1867
+ case "droid.append_messages" /* APPEND_MESSAGES */:
1868
+ validatedResponse = _chunkFJP5OKS5js.AppendMessagesResponseSchema.parse(response);
1808
1869
  break;
1809
1870
  case "droid.resolve_queued_user_message" /* RESOLVE_QUEUED_USER_MESSAGE */:
1810
- validatedResponse = _chunkC3KHERVHjs.ResolveQueuedUserMessageResponseSchema.parse(response);
1871
+ validatedResponse = _chunkFJP5OKS5js.ResolveQueuedUserMessageResponseSchema.parse(response);
1811
1872
  break;
1812
1873
  case "droid.interrupt_session" /* INTERRUPT_SESSION */:
1813
- validatedResponse = _chunkC3KHERVHjs.InterruptSessionResponseSchema.parse(response);
1874
+ validatedResponse = _chunkFJP5OKS5js.InterruptSessionResponseSchema.parse(response);
1814
1875
  break;
1815
1876
  case "droid.close_session" /* CLOSE_SESSION */:
1816
- validatedResponse = _chunkC3KHERVHjs.CloseSessionResponseSchema.parse(response);
1877
+ validatedResponse = _chunkFJP5OKS5js.CloseSessionResponseSchema.parse(response);
1817
1878
  break;
1818
1879
  case "droid.update_session_settings" /* UPDATE_SESSION_SETTINGS */:
1819
- validatedResponse = _chunkC3KHERVHjs.UpdateSessionSettingsResponseSchema.parse(response);
1880
+ validatedResponse = _chunkFJP5OKS5js.UpdateSessionSettingsResponseSchema.parse(response);
1820
1881
  break;
1821
1882
  case "droid.change_working_directory" /* CHANGE_WORKING_DIRECTORY */:
1822
- validatedResponse = _chunkC3KHERVHjs.ChangeWorkingDirectoryResponseSchema.parse(response);
1883
+ validatedResponse = _chunkFJP5OKS5js.ChangeWorkingDirectoryResponseSchema.parse(response);
1823
1884
  break;
1824
1885
  case "droid.toggle_mcp_server" /* TOGGLE_MCP_SERVER */:
1825
- validatedResponse = _chunkC3KHERVHjs.ToggleMcpServerResponseSchema.parse(response);
1886
+ validatedResponse = _chunkFJP5OKS5js.ToggleMcpServerResponseSchema.parse(response);
1826
1887
  break;
1827
1888
  case "droid.authenticate_mcp_server" /* AUTHENTICATE_MCP_SERVER */:
1828
- validatedResponse = _chunkC3KHERVHjs.AuthenticateMcpServerResponseSchema.parse(response);
1889
+ validatedResponse = _chunkFJP5OKS5js.AuthenticateMcpServerResponseSchema.parse(response);
1829
1890
  break;
1830
1891
  case "droid.cancel_mcp_auth" /* CANCEL_MCP_AUTH */:
1831
- validatedResponse = _chunkC3KHERVHjs.CancelMcpAuthResponseSchema.parse(response);
1892
+ validatedResponse = _chunkFJP5OKS5js.CancelMcpAuthResponseSchema.parse(response);
1832
1893
  break;
1833
1894
  case "droid.clear_mcp_auth" /* CLEAR_MCP_AUTH */:
1834
- validatedResponse = _chunkC3KHERVHjs.ClearMcpAuthResponseSchema.parse(response);
1895
+ validatedResponse = _chunkFJP5OKS5js.ClearMcpAuthResponseSchema.parse(response);
1835
1896
  break;
1836
1897
  case "droid.add_mcp_server" /* ADD_MCP_SERVER */:
1837
- validatedResponse = _chunkC3KHERVHjs.AddMcpServerResponseSchema.parse(response);
1898
+ validatedResponse = _chunkFJP5OKS5js.AddMcpServerResponseSchema.parse(response);
1838
1899
  break;
1839
1900
  case "droid.remove_mcp_server" /* REMOVE_MCP_SERVER */:
1840
- validatedResponse = _chunkC3KHERVHjs.RemoveMcpServerResponseSchema.parse(response);
1901
+ validatedResponse = _chunkFJP5OKS5js.RemoveMcpServerResponseSchema.parse(response);
1902
+ break;
1903
+ case "droid.list_models" /* LIST_MODELS */:
1904
+ validatedResponse = _chunkFJP5OKS5js.ListModelsResponseSchema.parse(response);
1841
1905
  break;
1842
1906
  case "droid.list_mcp_registry" /* LIST_MCP_REGISTRY */:
1843
- validatedResponse = _chunkC3KHERVHjs.ListMcpRegistryResponseSchema.parse(response);
1907
+ validatedResponse = _chunkFJP5OKS5js.ListMcpRegistryResponseSchema.parse(response);
1844
1908
  break;
1845
1909
  case "droid.list_mcp_tools" /* LIST_MCP_TOOLS */:
1846
- validatedResponse = _chunkC3KHERVHjs.ListMcpToolsResponseSchema.parse(response);
1910
+ validatedResponse = _chunkFJP5OKS5js.ListMcpToolsResponseSchema.parse(response);
1847
1911
  break;
1848
1912
  case "droid.list_tools" /* LIST_TOOLS */:
1849
- validatedResponse = _chunkC3KHERVHjs.ListToolsResponseSchema.parse(response);
1913
+ validatedResponse = _chunkFJP5OKS5js.ListToolsResponseSchema.parse(response);
1850
1914
  break;
1851
1915
  case "droid.toggle_mcp_tool" /* TOGGLE_MCP_TOOL */:
1852
- validatedResponse = _chunkC3KHERVHjs.ToggleMcpToolResponseSchema.parse(response);
1916
+ validatedResponse = _chunkFJP5OKS5js.ToggleMcpToolResponseSchema.parse(response);
1853
1917
  break;
1854
1918
  case "droid.submit_mcp_auth_code" /* SUBMIT_MCP_AUTH_CODE */:
1855
- validatedResponse = _chunkC3KHERVHjs.SubmitMcpAuthCodeResponseSchema.parse(response);
1919
+ validatedResponse = _chunkFJP5OKS5js.SubmitMcpAuthCodeResponseSchema.parse(response);
1856
1920
  break;
1857
1921
  case "droid.submit_mcp_auth_error" /* SUBMIT_MCP_AUTH_ERROR */:
1858
- validatedResponse = _chunkC3KHERVHjs.SubmitMcpAuthErrorResponseSchema.parse(response);
1922
+ validatedResponse = _chunkFJP5OKS5js.SubmitMcpAuthErrorResponseSchema.parse(response);
1859
1923
  break;
1860
1924
  case "droid.kill_worker_session" /* KILL_WORKER_SESSION */:
1861
- validatedResponse = _chunkC3KHERVHjs.KillWorkerSessionResponseSchema.parse(response);
1925
+ validatedResponse = _chunkFJP5OKS5js.KillWorkerSessionResponseSchema.parse(response);
1862
1926
  break;
1863
1927
  case "droid.list_skills" /* LIST_SKILLS */:
1864
- validatedResponse = _chunkC3KHERVHjs.ListSkillsResponseSchema.parse(response);
1928
+ validatedResponse = _chunkFJP5OKS5js.ListSkillsResponseSchema.parse(response);
1865
1929
  break;
1866
1930
  case "droid.set_skill_disabled" /* SET_SKILL_DISABLED */:
1867
- validatedResponse = _chunkC3KHERVHjs.SetSkillDisabledResponseSchema.parse(response);
1931
+ validatedResponse = _chunkFJP5OKS5js.SetSkillDisabledResponseSchema.parse(response);
1868
1932
  break;
1869
1933
  case "droid.list_commands" /* LIST_COMMANDS */:
1870
- validatedResponse = _chunkC3KHERVHjs.ListCommandsResponseSchema.parse(response);
1934
+ validatedResponse = _chunkFJP5OKS5js.ListCommandsResponseSchema.parse(response);
1871
1935
  break;
1872
1936
  case "droid.submit_bug_report" /* SUBMIT_BUG_REPORT */:
1873
- validatedResponse = _chunkC3KHERVHjs.SubmitBugReportResponseSchema.parse(response);
1937
+ validatedResponse = _chunkFJP5OKS5js.SubmitBugReportResponseSchema.parse(response);
1874
1938
  break;
1875
1939
  case "droid.list_mcp_servers" /* LIST_MCP_SERVERS */:
1876
- validatedResponse = _chunkC3KHERVHjs.ListMcpServersResponseSchema.parse(response);
1940
+ validatedResponse = _chunkFJP5OKS5js.ListMcpServersResponseSchema.parse(response);
1877
1941
  break;
1878
1942
  case "droid.get_rewind_info" /* GET_REWIND_INFO */:
1879
- validatedResponse = _chunkC3KHERVHjs.GetRewindInfoResponseSchema.parse(response);
1943
+ validatedResponse = _chunkFJP5OKS5js.GetRewindInfoResponseSchema.parse(response);
1880
1944
  break;
1881
1945
  case "droid.execute_rewind" /* EXECUTE_REWIND */:
1882
- validatedResponse = _chunkC3KHERVHjs.ExecuteRewindResponseSchema.parse(response);
1946
+ validatedResponse = _chunkFJP5OKS5js.ExecuteRewindResponseSchema.parse(response);
1883
1947
  break;
1884
1948
  case "droid.compact_session" /* COMPACT_SESSION */:
1885
- validatedResponse = _chunkC3KHERVHjs.CompactSessionResponseSchema.parse(response);
1949
+ validatedResponse = _chunkFJP5OKS5js.CompactSessionResponseSchema.parse(response);
1886
1950
  break;
1887
1951
  case "droid.fork_session" /* FORK_SESSION */:
1888
- validatedResponse = _chunkC3KHERVHjs.ForkSessionResponseSchema.parse(response);
1952
+ validatedResponse = _chunkFJP5OKS5js.ForkSessionResponseSchema.parse(response);
1889
1953
  break;
1890
1954
  case "droid.rename_session" /* RENAME_SESSION */:
1891
- validatedResponse = _chunkC3KHERVHjs.RenameSessionResponseSchema.parse(response);
1955
+ validatedResponse = _chunkFJP5OKS5js.RenameSessionResponseSchema.parse(response);
1892
1956
  break;
1893
1957
  case "droid.get_context_stats" /* GET_CONTEXT_STATS */:
1894
- validatedResponse = _chunkC3KHERVHjs.GetContextStatsResponseSchema.parse(response);
1958
+ validatedResponse = _chunkFJP5OKS5js.GetContextStatsResponseSchema.parse(response);
1895
1959
  break;
1896
1960
  case "droid.get_context_breakdown" /* GET_CONTEXT_BREAKDOWN */:
1897
- validatedResponse = _chunkC3KHERVHjs.GetContextBreakdownResponseSchema.parse(response);
1961
+ validatedResponse = _chunkFJP5OKS5js.GetContextBreakdownResponseSchema.parse(response);
1898
1962
  break;
1899
1963
  case "droid.warmup_cache" /* WARMUP_CACHE */:
1900
- validatedResponse = _chunkC3KHERVHjs.WarmupCacheResponseSchema.parse(response);
1964
+ validatedResponse = _chunkFJP5OKS5js.WarmupCacheResponseSchema.parse(response);
1901
1965
  break;
1902
1966
  default: {
1903
1967
  const exhaustiveCheck = pending.method;
1904
- throw new (0, _chunkC3KHERVHjs.DroidClientError)(
1968
+ throw new (0, _chunkFJP5OKS5js.DroidClientError)(
1905
1969
  "Unsupported method in response handler",
1906
1970
  {
1907
1971
  method: exhaustiveCheck
@@ -1915,7 +1979,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1915
1979
  this.settleRequest(responseId);
1916
1980
  pending.resolve(validatedResponse);
1917
1981
  } else {
1918
- const validatedResponse = _chunkC3KHERVHjs.JsonRpcBaseResponseSchema.parse(response);
1982
+ const validatedResponse = _chunkFJP5OKS5js.JsonRpcBaseResponseSchema.parse(response);
1919
1983
  this.logger.info(
1920
1984
  "[DroidClient] Received response for request not in pending map",
1921
1985
  {
@@ -1933,7 +1997,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1933
1997
  message: issue.message
1934
1998
  })) : void 0;
1935
1999
  this.logger.exception(error, "Invalid response format", {
1936
- method: _optionalChain([pending, 'optionalAccess', _16 => _16.method]),
2000
+ method: _optionalChain([pending, 'optionalAccess', _18 => _18.method]),
1937
2001
  requestId: _nullishCoalesce(responseId, () => ( void 0)),
1938
2002
  zodIssues
1939
2003
  });
@@ -1959,10 +2023,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1959
2023
  }
1960
2024
  this.settleRequest(responseId);
1961
2025
  const syntheticFailure = {
1962
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
2026
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
1963
2027
  type: "response",
1964
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
1965
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
2028
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
2029
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
1966
2030
  id: responseId,
1967
2031
  error: {
1968
2032
  code,
@@ -1975,8 +2039,14 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
1975
2039
  }
1976
2040
  async handleEvent(event) {
1977
2041
  try {
1978
- const validatedEvent = _chunkC3KHERVHjs.CliRequestOrNotificationSchema.parse(event);
2042
+ const validatedEvent = _chunkFJP5OKS5js.CliRequestOrNotificationSchema.parse(event);
1979
2043
  if (validatedEvent.method === "droid.session_notification" /* SESSION_NOTIFICATION */) {
2044
+ const notification = validatedEvent.params.notification;
2045
+ if (notification.type === "agent_turn_completed" /* AGENT_TURN_COMPLETED */) {
2046
+ this.completedTurnObserved = true;
2047
+ } else if (notification.type === "droid_working_state_changed" /* DROID_WORKING_STATE_CHANGED */ && notification.newState !== "idle" /* Idle */) {
2048
+ this.completedTurnObserved = false;
2049
+ }
1980
2050
  this.emit("session_notification" /* SESSION_NOTIFICATION */, validatedEvent);
1981
2051
  } else if (validatedEvent.method === "droid.request_permission" /* REQUEST_PERMISSION */) {
1982
2052
  await this.handlePermissionRequest(validatedEvent);
@@ -2004,10 +2074,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2004
2074
  const code = error instanceof _zod.z.ZodError ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */;
2005
2075
  const message = code === -32600 /* INVALID_REQUEST */ ? "Invalid request format" : "Internal error while handling request";
2006
2076
  const errorResponse = {
2007
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
2077
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
2008
2078
  type: "response",
2009
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
2010
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
2079
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
2080
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
2011
2081
  id,
2012
2082
  error: {
2013
2083
  code,
@@ -2073,7 +2143,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2073
2143
  }
2074
2144
  this.logger.info("[DroidClient] Handling permission request", {
2075
2145
  requestId: event.id,
2076
- toolCount: event.params.toolUses.length
2146
+ count: event.params.toolUses.length
2077
2147
  });
2078
2148
  this.emit("request_permission" /* REQUEST_PERMISSION */, event);
2079
2149
  let selectedOption = "cancel" /* Cancel */;
@@ -2098,11 +2168,11 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2098
2168
  );
2099
2169
  const handlerResult = await handlerPromise;
2100
2170
  if (typeof handlerResult === "string" && handlerResult === "proceed_edit" /* ProceedEdit */) {
2101
- throw new (0, _chunkC3KHERVHjs.DroidClientError)(
2171
+ throw new (0, _chunkFJP5OKS5js.DroidClientError)(
2102
2172
  "Permission handler returned proceed_edit without editedSpecContent"
2103
2173
  );
2104
2174
  }
2105
- const parsedHandlerResult = _chunkC3KHERVHjs.RequestPermissionResultSchema.safeParse(
2175
+ const parsedHandlerResult = _chunkFJP5OKS5js.RequestPermissionResultSchema.safeParse(
2106
2176
  typeof handlerResult === "string" ? { selectedOption: handlerResult } : handlerResult
2107
2177
  );
2108
2178
  if (parsedHandlerResult.success) {
@@ -2110,7 +2180,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2110
2180
  comment = parsedHandlerResult.data.comment;
2111
2181
  editedSpecContent = parsedHandlerResult.data.editedSpecContent;
2112
2182
  } else {
2113
- throw new (0, _chunkC3KHERVHjs.DroidClientError)(
2183
+ throw new (0, _chunkFJP5OKS5js.DroidClientError)(
2114
2184
  "Permission handler returned invalid result",
2115
2185
  {
2116
2186
  cause: parsedHandlerResult.error
@@ -2120,7 +2190,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2120
2190
  if (!event.params.options.some(
2121
2191
  (option) => option.value === selectedOption
2122
2192
  )) {
2123
- throw new (0, _chunkC3KHERVHjs.DroidClientError)(
2193
+ throw new (0, _chunkFJP5OKS5js.DroidClientError)(
2124
2194
  `Permission handler selected unavailable option: ${selectedOption}`
2125
2195
  );
2126
2196
  }
@@ -2143,9 +2213,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2143
2213
  this.pendingPermissionRequests.delete(event.id);
2144
2214
  const cancelResponse = {
2145
2215
  type: "response",
2146
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
2147
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
2148
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
2216
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
2217
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
2218
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
2149
2219
  id: event.id,
2150
2220
  result: {
2151
2221
  selectedOption: "cancel" /* Cancel */
@@ -2171,9 +2241,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2171
2241
  }
2172
2242
  const response = {
2173
2243
  type: "response",
2174
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
2175
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
2176
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
2244
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
2245
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
2246
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
2177
2247
  id: event.id,
2178
2248
  result: {
2179
2249
  selectedOption,
@@ -2191,7 +2261,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2191
2261
  this.logger.info("[DroidClient] Handling ask-user request", {
2192
2262
  requestId: event.id,
2193
2263
  toolCallId: event.params.toolCallId,
2194
- questionCount: event.params.questions.length
2264
+ count: event.params.questions.length
2195
2265
  });
2196
2266
  this.emit("ask_user" /* ASK_USER */, event);
2197
2267
  let result = { cancelled: true, answers: [] };
@@ -2210,11 +2280,11 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2210
2280
  this.pendingAskUserRequests.delete(event.id);
2211
2281
  });
2212
2282
  });
2213
- const parsedResult = _chunkC3KHERVHjs.AskUserResultSchema.safeParse(
2283
+ const parsedResult = _chunkFJP5OKS5js.AskUserResultSchema.safeParse(
2214
2284
  await handlerPromise
2215
2285
  );
2216
2286
  if (!parsedResult.success) {
2217
- throw new (0, _chunkC3KHERVHjs.DroidClientError)(
2287
+ throw new (0, _chunkFJP5OKS5js.DroidClientError)(
2218
2288
  "AskUser handler returned invalid result",
2219
2289
  {
2220
2290
  cause: parsedResult.error
@@ -2225,7 +2295,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2225
2295
  this.logger.info("[DroidClient] Ask-user handler resolved", {
2226
2296
  requestId: event.id,
2227
2297
  cancelled: _nullishCoalesce(result.cancelled, () => ( false)),
2228
- answerCount: result.answers.length
2298
+ count: result.answers.length
2229
2299
  });
2230
2300
  } catch (error) {
2231
2301
  this.logger.exception(error, "Failed to handle ask-user request");
@@ -2238,9 +2308,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2238
2308
  );
2239
2309
  this.pendingAskUserRequests.delete(event.id);
2240
2310
  const cancelResponse = {
2241
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
2242
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
2243
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
2311
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
2312
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
2313
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
2244
2314
  type: "response",
2245
2315
  id: event.id,
2246
2316
  result: {
@@ -2261,9 +2331,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2261
2331
  }
2262
2332
  const response = {
2263
2333
  type: "response",
2264
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
2265
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
2266
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
2334
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
2335
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
2336
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
2267
2337
  id: event.id,
2268
2338
  result
2269
2339
  };
@@ -2275,17 +2345,17 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2275
2345
  }
2276
2346
  static getErrorType(error) {
2277
2347
  switch (error.constructor) {
2278
- case _chunkC3KHERVHjs.ConnectionError:
2348
+ case _chunkFJP5OKS5js.ConnectionError:
2279
2349
  return "ConnectionError" /* CONNECTION_ERROR */;
2280
- case _chunkC3KHERVHjs.ProtocolError:
2350
+ case _chunkFJP5OKS5js.ProtocolError:
2281
2351
  return "ProtocolError" /* PROTOCOL_ERROR */;
2282
- case _chunkC3KHERVHjs.SessionError:
2352
+ case _chunkFJP5OKS5js.SessionError:
2283
2353
  return "SessionError" /* SESSION_ERROR */;
2284
- case _chunkC3KHERVHjs.TimeoutError:
2354
+ case _chunkFJP5OKS5js.TimeoutError:
2285
2355
  return "TimeoutError" /* TIMEOUT_ERROR */;
2286
- case _chunkC3KHERVHjs.ProcessExitError:
2356
+ case _chunkFJP5OKS5js.ProcessExitError:
2287
2357
  return "ProcessExitError" /* PROCESS_EXIT_ERROR */;
2288
- case _chunkC3KHERVHjs.DroidClientError:
2358
+ case _chunkFJP5OKS5js.DroidClientError:
2289
2359
  return "DroidClientError" /* DROID_CLIENT_ERROR */;
2290
2360
  default:
2291
2361
  return "Error" /* ERROR */;
@@ -2297,6 +2367,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2297
2367
  message: error.message,
2298
2368
  errorType: _DroidClient.getErrorType(error),
2299
2369
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
2370
+ ...error instanceof _chunkFJP5OKS5js.ProcessExitError && error.exitCode !== void 0 ? { exitCode: error.exitCode } : {},
2300
2371
  error: {
2301
2372
  name: error.name,
2302
2373
  message: error.message
@@ -2322,10 +2393,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2322
2393
  */
2323
2394
  static createNotificationEvent(notification) {
2324
2395
  return {
2325
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION2,
2396
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION2,
2326
2397
  type: "notification",
2327
- factoryApiVersion: _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION,
2328
- factoryProtocolVersion: _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION,
2398
+ factoryApiVersion: _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION,
2399
+ factoryProtocolVersion: _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION,
2329
2400
  method: "droid.session_notification" /* SESSION_NOTIFICATION */,
2330
2401
  params: { notification }
2331
2402
  };
@@ -2333,6 +2404,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
2333
2404
  }, _class);
2334
2405
 
2335
2406
  // src/exec-core/managed-process.ts
2407
+ var _child_process = require('child_process');
2336
2408
  var _fs = require('fs'); var fs3 = _interopRequireWildcard(_fs);
2337
2409
  var _readline = require('readline'); var readline = _interopRequireWildcard(_readline);
2338
2410
 
@@ -2499,7 +2571,7 @@ function logTransportMessage(direction, message, childPid, deps = defaultExecCor
2499
2571
  }
2500
2572
  }
2501
2573
  async function __resetTransportLoggerForTests(deps = defaultExecCoreDeps) {
2502
- const stream = _nullishCoalesce(_optionalChain([state, 'optionalAccess', _17 => _17.stream]), () => ( null));
2574
+ const stream = _nullishCoalesce(_optionalChain([state, 'optionalAccess', _19 => _19.stream]), () => ( null));
2503
2575
  state = null;
2504
2576
  enabledCache = null;
2505
2577
  if (!stream) return;
@@ -2531,13 +2603,13 @@ function describeSpawnError(error, context) {
2531
2603
  return `Failed to start Droid: ${error.message}`;
2532
2604
  }
2533
2605
  if (error.code === "ENOENT") {
2534
- 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)) {
2535
2607
  return `Failed to start Droid: working directory does not exist (${context.cwd})`;
2536
2608
  }
2537
- 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})` : ""}`;
2538
2610
  }
2539
2611
  if (error.code === "EACCES") {
2540
- 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})` : ""}`;
2541
2613
  }
2542
2614
  return `Failed to start Droid: ${error.code}`;
2543
2615
  }
@@ -2551,7 +2623,7 @@ function describeExitError(code, signal) {
2551
2623
  return "Droid process exited unexpectedly";
2552
2624
  }
2553
2625
  var ManagedProcessImpl = (_class2 = class {
2554
- constructor(childProcess, logPrefix, spawnContext, deps, transportLoggerDeps = deps) {;_class2.prototype.__init8.call(this);_class2.prototype.__init9.call(this);_class2.prototype.__init10.call(this);_class2.prototype.__init11.call(this);_class2.prototype.__init12.call(this);_class2.prototype.__init13.call(this);_class2.prototype.__init14.call(this);_class2.prototype.__init15.call(this);
2626
+ constructor(childProcess, logPrefix, spawnContext, deps, transportLoggerDeps = deps) {;_class2.prototype.__init9.call(this);_class2.prototype.__init10.call(this);_class2.prototype.__init11.call(this);_class2.prototype.__init12.call(this);_class2.prototype.__init13.call(this);_class2.prototype.__init14.call(this);_class2.prototype.__init15.call(this);_class2.prototype.__init16.call(this);
2555
2627
  this.logPrefix = logPrefix;
2556
2628
  this.spawnContext = spawnContext;
2557
2629
  this.transportLoggerDeps = transportLoggerDeps;
@@ -2563,30 +2635,30 @@ var ManagedProcessImpl = (_class2 = class {
2563
2635
 
2564
2636
 
2565
2637
 
2566
- __init8() {this.messageHandler = null}
2567
- __init9() {this.errorHandler = null}
2568
- __init10() {this.readlineInterface = null}
2569
- __init11() {this.isClosing = false}
2638
+ __init9() {this.messageHandler = null}
2639
+ __init10() {this.errorHandler = null}
2640
+ __init11() {this.readlineInterface = null}
2641
+ __init12() {this.isClosing = false}
2570
2642
  /** Latch so exit teardown/classification runs exactly once per process. */
2571
- __init12() {this.exitFinalized = false}
2572
- __init13() {this.exitDrainTimer = null}
2643
+ __init13() {this.exitFinalized = false}
2644
+ __init14() {this.exitDrainTimer = null}
2573
2645
  /**
2574
2646
  * Sticky error from a process error or unexpected exit event. Once set,
2575
2647
  * all subsequent `send()` calls throw this error immediately instead of
2576
2648
  * hanging on a dead transport.
2577
2649
  */
2578
- __init14() {this.processError = null}
2579
- __init15() {this.queuedSendPromise = Promise.resolve()}
2650
+ __init15() {this.processError = null}
2651
+ __init16() {this.queuedSendPromise = Promise.resolve()}
2580
2652
 
2581
2653
  get childProcess() {
2582
2654
  if (!this._childProcess) {
2583
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Process not connected");
2655
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Process not connected");
2584
2656
  }
2585
2657
  return this._childProcess;
2586
2658
  }
2587
2659
  setupHandlers() {
2588
2660
  if (!this.childProcess.stdout) {
2589
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Failed to get process stdout");
2661
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Failed to get process stdout");
2590
2662
  }
2591
2663
  this.readlineInterface = readline.createInterface({
2592
2664
  input: this.childProcess.stdout,
@@ -2599,7 +2671,7 @@ var ManagedProcessImpl = (_class2 = class {
2599
2671
  logTransportMessage(
2600
2672
  "in" /* In */,
2601
2673
  trimmedLine,
2602
- _optionalChain([this, 'access', _21 => _21._childProcess, 'optionalAccess', _22 => _22.pid]),
2674
+ _optionalChain([this, 'access', _23 => _23._childProcess, 'optionalAccess', _24 => _24.pid]),
2603
2675
  this.transportLoggerDeps
2604
2676
  );
2605
2677
  this.messageHandler(trimmedLine);
@@ -2613,12 +2685,12 @@ var ManagedProcessImpl = (_class2 = class {
2613
2685
  }
2614
2686
  });
2615
2687
  this.childProcess.on("error", (error) => {
2616
- this.processError = new (0, _chunkC3KHERVHjs.ConnectionError)(
2688
+ this.processError = new (0, _chunkFJP5OKS5js.ConnectionError)(
2617
2689
  describeSpawnError(error, this.spawnContext),
2618
2690
  {
2619
2691
  error,
2620
- cwd: _optionalChain([this, 'access', _23 => _23.spawnContext, 'optionalAccess', _24 => _24.cwd]),
2621
- 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])
2622
2694
  }
2623
2695
  );
2624
2696
  if (!this.isClosing && this.errorHandler) {
@@ -2629,7 +2701,7 @@ var ManagedProcessImpl = (_class2 = class {
2629
2701
  this.exitDrainTimer = setTimeout(() => {
2630
2702
  this.finalizeExit(code, signal);
2631
2703
  }, EXIT_STDIO_DRAIN_TIMEOUT_MS);
2632
- _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()]);
2633
2705
  });
2634
2706
  this.childProcess.on("close", (code, signal) => {
2635
2707
  this.finalizeExit(code, signal);
@@ -2658,7 +2730,7 @@ var ManagedProcessImpl = (_class2 = class {
2658
2730
  this.readlineInterface = null;
2659
2731
  }
2660
2732
  if (!this.isClosing) {
2661
- this.processError = new (0, _chunkC3KHERVHjs.ProcessExitError)(
2733
+ this.processError = new (0, _chunkFJP5OKS5js.ProcessExitError)(
2662
2734
  describeExitError(code, signal),
2663
2735
  {
2664
2736
  exitCode: _nullishCoalesce(code, () => ( void 0)),
@@ -2675,27 +2747,27 @@ var ManagedProcessImpl = (_class2 = class {
2675
2747
  throw this.processError;
2676
2748
  }
2677
2749
  if (!this._childProcess || !this._childProcess.stdin) {
2678
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Process not connected");
2750
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Process not connected");
2679
2751
  }
2680
2752
  const previousSends = this.queuedSendPromise;
2681
2753
  this.queuedSendPromise = (async () => {
2682
2754
  await previousSends.catch(() => {
2683
2755
  });
2684
2756
  if (!this._childProcess || !this._childProcess.stdin || this._childProcess.killed || this.isClosing) {
2685
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Process disconnected before write");
2757
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Process disconnected before write");
2686
2758
  }
2687
2759
  await new Promise((resolve2, reject) => {
2688
2760
  try {
2689
2761
  if (!this._childProcess || !this._childProcess.stdin) {
2690
- reject(new (0, _chunkC3KHERVHjs.ConnectionError)("Process stdin unavailable"));
2762
+ reject(new (0, _chunkFJP5OKS5js.ConnectionError)("Process stdin unavailable"));
2691
2763
  return;
2692
2764
  }
2693
2765
  const stdin = this._childProcess.stdin;
2694
2766
  if ("writable" in stdin && !stdin.writable) {
2695
- reject(new (0, _chunkC3KHERVHjs.ConnectionError)("Process stdin is not writable"));
2767
+ reject(new (0, _chunkFJP5OKS5js.ConnectionError)("Process stdin is not writable"));
2696
2768
  return;
2697
2769
  }
2698
- 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]);
2699
2771
  stdin.write(`${message}
2700
2772
  `, (error) => {
2701
2773
  if (error) {
@@ -2708,13 +2780,13 @@ var ManagedProcessImpl = (_class2 = class {
2708
2780
  const errorMessage = error.message || String(error);
2709
2781
  if (errorMessage.includes("EPIPE") || errorMessage.includes("ECONNRESET")) {
2710
2782
  reject(
2711
- new (0, _chunkC3KHERVHjs.ConnectionError)("Process stdin closed during write", {
2783
+ new (0, _chunkFJP5OKS5js.ConnectionError)("Process stdin closed during write", {
2712
2784
  error
2713
2785
  })
2714
2786
  );
2715
2787
  } else {
2716
2788
  reject(
2717
- new (0, _chunkC3KHERVHjs.ConnectionError)("Failed to write to process stdin", {
2789
+ new (0, _chunkFJP5OKS5js.ConnectionError)("Failed to write to process stdin", {
2718
2790
  error
2719
2791
  })
2720
2792
  );
@@ -2738,7 +2810,7 @@ var ManagedProcessImpl = (_class2 = class {
2738
2810
  }
2739
2811
  );
2740
2812
  reject(
2741
- new (0, _chunkC3KHERVHjs.ConnectionError)("Error writing to process stdin", {
2813
+ new (0, _chunkFJP5OKS5js.ConnectionError)("Error writing to process stdin", {
2742
2814
  error: error instanceof Error ? error : new Error(String(error))
2743
2815
  })
2744
2816
  );
@@ -2764,12 +2836,16 @@ var ManagedProcessImpl = (_class2 = class {
2764
2836
  let forcedExitTimeout;
2765
2837
  const gracefulExitTimeout = setTimeout(() => {
2766
2838
  if (processToClose.exitCode === null) {
2767
- processToClose.kill("SIGTERM");
2768
- forcedExitTimeout = setTimeout(() => {
2769
- if (processToClose.exitCode === null) {
2770
- processToClose.kill("SIGKILL");
2771
- }
2772
- }, FORCED_EXIT_TIMEOUT_MS);
2839
+ if (process.platform === "win32") {
2840
+ this.killProcessTree(processToClose, "SIGKILL");
2841
+ } else {
2842
+ this.killProcessTree(processToClose, "SIGTERM");
2843
+ forcedExitTimeout = setTimeout(() => {
2844
+ if (processToClose.exitCode === null) {
2845
+ this.killProcessTree(processToClose, "SIGKILL");
2846
+ }
2847
+ }, FORCED_EXIT_TIMEOUT_MS);
2848
+ }
2773
2849
  }
2774
2850
  }, GRACEFUL_EXIT_TIMEOUT_MS);
2775
2851
  processToClose.once("exit", () => {
@@ -2795,13 +2871,41 @@ var ManagedProcessImpl = (_class2 = class {
2795
2871
  this._childProcess = null;
2796
2872
  this.isClosing = false;
2797
2873
  }
2874
+ killProcessTree(childProcess, signal) {
2875
+ if (process.platform !== "win32" || childProcess.pid === void 0) {
2876
+ childProcess.kill(signal);
2877
+ return;
2878
+ }
2879
+ const result = _child_process.spawnSync.call(void 0,
2880
+ "taskkill",
2881
+ ["/PID", String(childProcess.pid), "/T", "/F"],
2882
+ {
2883
+ stdio: "ignore",
2884
+ windowsHide: true
2885
+ }
2886
+ );
2887
+ if (!result.error && result.status === 0) {
2888
+ return;
2889
+ }
2890
+ logWarn(
2891
+ this.logger,
2892
+ "[ManagedProcess] Failed to kill Windows process tree",
2893
+ {
2894
+ pid: childProcess.pid,
2895
+ signal,
2896
+ status: result.status,
2897
+ cause: result.error
2898
+ }
2899
+ );
2900
+ childProcess.kill(signal);
2901
+ }
2798
2902
  get isConnected() {
2799
2903
  return this._childProcess !== null && !this._childProcess.killed && this._childProcess.stdin !== null && !this._childProcess.stdin.destroyed && ("writable" in this._childProcess.stdin ? this._childProcess.stdin.writable : true);
2800
2904
  }
2801
2905
  }, _class2);
2802
2906
 
2803
2907
  // src/exec-core/process-manager.ts
2804
- var _child_process = require('child_process');
2908
+
2805
2909
 
2806
2910
  // src/exec-core/windows-job-object-retry.ts
2807
2911
  var DEFAULT_BACKOFF_MS = [50, 150, 400];
@@ -2829,11 +2933,11 @@ function observeEarlySpawnFailure(childProcess, gracePeriodMs, sleep) {
2829
2933
  const errorListener = (err) => {
2830
2934
  observation.error = err;
2831
2935
  };
2832
- _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)]);
2833
2937
  childProcess.once("exit", exitListener);
2834
2938
  childProcess.once("error", errorListener);
2835
2939
  const cleanup = () => {
2836
- _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)]);
2837
2941
  childProcess.off("exit", exitListener);
2838
2942
  childProcess.off("error", errorListener);
2839
2943
  };
@@ -2890,7 +2994,7 @@ async function spawnWithWindowsJobObjectRetry(spawnFactory, options = {}) {
2890
2994
  stderrTail: observation.stderr.slice(-256)
2891
2995
  });
2892
2996
  try {
2893
- await _optionalChain([options, 'access', _38 => _38.disposeEarlyExited, 'optionalCall', _39 => _39(child)]);
2997
+ await _optionalChain([options, 'access', _40 => _40.disposeEarlyExited, 'optionalCall', _41 => _41(child)]);
2894
2998
  } catch (disposeErr) {
2895
2999
  logWarn(logger, "spawnWithWindowsJobObjectRetry: dispose error", {
2896
3000
  cause: disposeErr instanceof Error ? disposeErr : new Error(String(disposeErr)),
@@ -2900,7 +3004,7 @@ async function spawnWithWindowsJobObjectRetry(spawnFactory, options = {}) {
2900
3004
  await sleep(_nullishCoalesce(_nullishCoalesce(backoff[attempt], () => ( backoff[backoff.length - 1])), () => ( 400)));
2901
3005
  }
2902
3006
  if (lastChild) return lastChild;
2903
- throw new (0, _chunkC3KHERVHjs.DroidClientError)(
3007
+ throw new (0, _chunkFJP5OKS5js.DroidClientError)(
2904
3008
  "spawnWithWindowsJobObjectRetry: exhausted retries without child",
2905
3009
  {}
2906
3010
  );
@@ -2980,7 +3084,7 @@ var DroidProcessManager = class {
2980
3084
  logger: this.logger,
2981
3085
  disposeEarlyExited: (child) => {
2982
3086
  try {
2983
- _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()]);
2984
3088
  } catch (stdinErr) {
2985
3089
  logWarn(
2986
3090
  this.logger,
@@ -3005,7 +3109,7 @@ var DroidProcessManager = class {
3005
3109
  }
3006
3110
  );
3007
3111
  if (!childProcess.stdout || !childProcess.stdin) {
3008
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Failed to get process stdio");
3112
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Failed to get process stdio");
3009
3113
  }
3010
3114
  return new ManagedProcessImpl(
3011
3115
  childProcess,
@@ -3065,7 +3169,7 @@ var DroidProcessManager = class {
3065
3169
  const planned = this.prepareSpawn(config);
3066
3170
  const childProcess = this.invokeNodeSpawn(planned);
3067
3171
  if (!childProcess.stdout || !childProcess.stdin) {
3068
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Failed to get process stdio");
3172
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Failed to get process stdio");
3069
3173
  }
3070
3174
  return {
3071
3175
  logPrefix: planned.logPrefix,
@@ -3078,14 +3182,14 @@ var DroidProcessManager = class {
3078
3182
 
3079
3183
  // src/exec-core/process-transport.ts
3080
3184
  var ProcessTransport = (_class3 = class {
3081
- __init16() {this.managedProcess = null}
3185
+ __init17() {this.managedProcess = null}
3082
3186
 
3083
3187
 
3084
3188
  // Store handlers that may be registered before connect() is called
3085
- __init17() {this.messageHandler = null}
3086
- __init18() {this.errorHandler = null}
3189
+ __init18() {this.messageHandler = null}
3190
+ __init19() {this.errorHandler = null}
3087
3191
 
3088
- constructor(options = {}, deps = defaultExecCoreDeps) {;_class3.prototype.__init16.call(this);_class3.prototype.__init17.call(this);_class3.prototype.__init18.call(this);
3192
+ constructor(options = {}, deps = defaultExecCoreDeps) {;_class3.prototype.__init17.call(this);_class3.prototype.__init18.call(this);_class3.prototype.__init19.call(this);
3089
3193
  this.options = options;
3090
3194
  const resolved = resolveExecCoreDeps(options.observability, deps);
3091
3195
  this.metrics = resolved.metrics;
@@ -3098,7 +3202,7 @@ var ProcessTransport = (_class3 = class {
3098
3202
  }
3099
3203
  async connect() {
3100
3204
  if (this.managedProcess && this.managedProcess.isConnected) {
3101
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Transport already connected");
3205
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Transport already connected");
3102
3206
  }
3103
3207
  const config = {
3104
3208
  execPath: this.options.droidExecPath,
@@ -3130,7 +3234,7 @@ var ProcessTransport = (_class3 = class {
3130
3234
  }
3131
3235
  async send(message) {
3132
3236
  if (!this.managedProcess) {
3133
- throw new (0, _chunkC3KHERVHjs.ConnectionError)("Transport not connected");
3237
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)("Transport not connected");
3134
3238
  }
3135
3239
  return this.managedProcess.send(message);
3136
3240
  }
@@ -3153,7 +3257,7 @@ var ProcessTransport = (_class3 = class {
3153
3257
  }
3154
3258
  }
3155
3259
  get isConnected() {
3156
- 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));
3157
3261
  }
3158
3262
  getManagedProcess() {
3159
3263
  return this.managedProcess;
@@ -3164,7 +3268,7 @@ var ProcessTransport = (_class3 = class {
3164
3268
  function resolveApiKey(apiKey) {
3165
3269
  const resolved = _nullishCoalesce(apiKey, () => ( process.env.FACTORY_API_KEY));
3166
3270
  if (!resolved) {
3167
- throw new (0, _chunkC3KHERVHjs.DroidClientError)(
3271
+ throw new (0, _chunkFJP5OKS5js.DroidClientError)(
3168
3272
  "No Factory API key found. Pass `apiKey` when creating the session, or set the FACTORY_API_KEY environment variable."
3169
3273
  );
3170
3274
  }
@@ -3178,7 +3282,12 @@ async function createTransport(options) {
3178
3282
  droidExecPath: options.execPath,
3179
3283
  droidExecExtraArgs: options.execArgs,
3180
3284
  cwd: options.cwd,
3181
- 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: _chunkFJP5OKS5js.formatSdkClientMetadata.call(void 0, _chunkFJP5OKS5js.SDK_CLIENT_METADATA)
3290
+ },
3182
3291
  observability: options.observability
3183
3292
  });
3184
3293
  await processTransport.connect();
@@ -3198,7 +3307,8 @@ async function createConfiguredClient(options) {
3198
3307
  const transport = await createTransport(options);
3199
3308
  const client = new DroidClient({
3200
3309
  transport,
3201
- observability: options.observability
3310
+ observability: options.observability,
3311
+ getRequestAttribution: () => _chunkFJP5OKS5js.SDK_REQUEST_ATTRIBUTION
3202
3312
  });
3203
3313
  setupClientHandlers(client, options);
3204
3314
  return { transport, client };
@@ -3226,6 +3336,9 @@ function buildInitParams(options) {
3226
3336
  ...options.reasoningEffort !== void 0 && {
3227
3337
  reasoningEffort: options.reasoningEffort
3228
3338
  },
3339
+ ...options.systemPrompt !== void 0 && {
3340
+ systemPrompt: options.systemPrompt
3341
+ },
3229
3342
  ...options.specModeModelId !== void 0 && {
3230
3343
  specModeModelId: options.specModeModelId
3231
3344
  },
@@ -3241,13 +3354,14 @@ function buildInitParams(options) {
3241
3354
  ...options.sessionSource !== void 0 && {
3242
3355
  sessionSource: options.sessionSource
3243
3356
  },
3357
+ sessionOriginHint: "sdk" /* Sdk */,
3244
3358
  ...options.autoRejectPermissionRequests !== void 0 && {
3245
3359
  autoRejectPermissionRequests: options.autoRejectPermissionRequests
3246
3360
  },
3247
3361
  ...options.disableBuiltinSkills !== void 0 && {
3248
3362
  disableBuiltinSkills: options.disableBuiltinSkills
3249
3363
  },
3250
- tags: [..._nullishCoalesce(options.tags, () => ( [])), _chunkC3KHERVHjs.SDK_TAG]
3364
+ tags: _chunkFJP5OKS5js.withSdkTag.call(void 0, options.tags)
3251
3365
  };
3252
3366
  }
3253
3367
 
@@ -3309,7 +3423,7 @@ function writeJsonError(res, statusCode, message, headers = {}) {
3309
3423
  });
3310
3424
  res.end(
3311
3425
  JSON.stringify({
3312
- jsonrpc: _chunkC3KHERVHjs.JSONRPC_VERSION,
3426
+ jsonrpc: _chunkFJP5OKS5js.JSONRPC_VERSION,
3313
3427
  error: { code: -32603 /* INTERNAL_ERROR */, message },
3314
3428
  id: null
3315
3429
  })
@@ -3331,10 +3445,10 @@ var SdkMcpServer = (_class4 = class {
3331
3445
 
3332
3446
 
3333
3447
 
3334
- __init19() {this._httpServer = null}
3335
- __init20() {this._url = null}
3336
- __init21() {this._token = null}
3337
- constructor(options) {;_class4.prototype.__init19.call(this);_class4.prototype.__init20.call(this);_class4.prototype.__init21.call(this);
3448
+ __init20() {this._httpServer = null}
3449
+ __init21() {this._url = null}
3450
+ __init22() {this._token = null}
3451
+ constructor(options) {;_class4.prototype.__init20.call(this);_class4.prototype.__init21.call(this);_class4.prototype.__init22.call(this);
3338
3452
  this.name = options.name;
3339
3453
  this.version = _nullishCoalesce(options.version, () => ( "1.0.0"));
3340
3454
  this.tools = options.tools;
@@ -3385,7 +3499,7 @@ var SdkMcpServer = (_class4 = class {
3385
3499
  if (!server) {
3386
3500
  return;
3387
3501
  }
3388
- _optionalChain([server, 'access', _45 => _45.closeAllConnections, 'optionalCall', _46 => _46()]);
3502
+ _optionalChain([server, 'access', _47 => _47.closeAllConnections, 'optionalCall', _48 => _48()]);
3389
3503
  server.close();
3390
3504
  await _events.once.call(void 0, server, "close");
3391
3505
  }
@@ -3481,7 +3595,7 @@ async function startSdkMcpServers(servers) {
3481
3595
  // src/session.ts
3482
3596
  var DroidSession = (_class5 = class _DroidSession {
3483
3597
  /** @internal */
3484
- constructor(client, sessionId, metadata, _runtime, cleanupCallbacks = []) {;_class5.prototype.__init22.call(this);_class5.prototype.__init23.call(this);_class5.prototype.__init24.call(this);_class5.prototype.__init25.call(this);_class5.prototype.__init26.call(this);_class5.prototype.__init27.call(this);
3598
+ constructor(client, sessionId, metadata, _runtime, cleanupCallbacks = []) {;_class5.prototype.__init23.call(this);_class5.prototype.__init24.call(this);_class5.prototype.__init25.call(this);_class5.prototype.__init26.call(this);_class5.prototype.__init27.call(this);_class5.prototype.__init28.call(this);
3485
3599
  this._runtime = _runtime;
3486
3600
  this._client = client;
3487
3601
  this._sessionId = sessionId;
@@ -3496,13 +3610,13 @@ var DroidSession = (_class5 = class _DroidSession {
3496
3610
 
3497
3611
 
3498
3612
 
3499
- __init22() {this._settingsRevision = 0}
3500
- __init23() {this._status = "active"}
3613
+ __init23() {this._settingsRevision = 0}
3614
+ __init24() {this._status = "active"}
3501
3615
 
3502
- __init24() {this._cleanupAbortSignal = null}
3503
- __init25() {this._cleanupCallbacks = []}
3504
- __init26() {this._activeBridges = /* @__PURE__ */ new Set()}
3505
- __init27() {this._notificationCleanups = /* @__PURE__ */ new Set()}
3616
+ __init25() {this._cleanupAbortSignal = null}
3617
+ __init26() {this._cleanupCallbacks = []}
3618
+ __init27() {this._activeBridges = /* @__PURE__ */ new Set()}
3619
+ __init28() {this._notificationCleanups = /* @__PURE__ */ new Set()}
3506
3620
  get id() {
3507
3621
  return this._sessionId;
3508
3622
  }
@@ -3514,14 +3628,17 @@ var DroidSession = (_class5 = class _DroidSession {
3514
3628
  }
3515
3629
  async *stream(prompt, options) {
3516
3630
  this._ensureNotClosed();
3517
- yield* _chunkC3KHERVHjs.streamFromClient.call(void 0,
3631
+ yield* _chunkFJP5OKS5js.streamFromClient.call(void 0,
3518
3632
  {
3519
3633
  onNotification: (handler) => this._client.onNotification((notification) => {
3520
- const inner = _chunkC3KHERVHjs.extractInnerNotification.call(void 0, notification);
3634
+ const inner = _chunkFJP5OKS5js.extractInnerNotification.call(void 0, notification);
3521
3635
  if (inner) handler(inner);
3522
3636
  }),
3523
3637
  onError: (handler) => this._client.onError(handler),
3524
- addUserMessage: (params) => this._client.addUserMessage(params),
3638
+ addUserMessage: (params) => this._client.addUserMessage({
3639
+ ...params,
3640
+ userMessageSource: "sdk" /* Sdk */
3641
+ }),
3525
3642
  interruptSession: () => this._client.interruptSession()
3526
3643
  },
3527
3644
  this._sessionId,
@@ -3540,7 +3657,7 @@ var DroidSession = (_class5 = class _DroidSession {
3540
3657
  }
3541
3658
  this._status = "closed";
3542
3659
  this._releaseHandleSubscriptions();
3543
- _optionalChain([this, 'access', _47 => _47._cleanupAbortSignal, 'optionalCall', _48 => _48()]);
3660
+ _optionalChain([this, 'access', _49 => _49._cleanupAbortSignal, 'optionalCall', _50 => _50()]);
3544
3661
  this._cleanupAbortSignal = null;
3545
3662
  for (const bridge of this._activeBridges) {
3546
3663
  bridge.signalDone();
@@ -3558,14 +3675,14 @@ var DroidSession = (_class5 = class _DroidSession {
3558
3675
  async updateSettings(params) {
3559
3676
  this._ensureNotClosed();
3560
3677
  const revision = this._settingsRevision;
3561
- const result = _chunkC3KHERVHjs.unwrapResponseResult.call(void 0,
3678
+ const result = _chunkFJP5OKS5js.unwrapResponseResult.call(void 0,
3562
3679
  await this._client.updateSessionSettings(params)
3563
3680
  );
3564
3681
  if (params.disabledToolIds !== void 0) {
3565
3682
  this._runtime.loadParams.disabledToolIds = params.disabledToolIds;
3566
3683
  }
3567
3684
  if (this._settingsRevision === revision) {
3568
- this._settings = _chunkC3KHERVHjs.mergeSessionSettings.call(void 0, this._settings, params);
3685
+ this._settings = _chunkFJP5OKS5js.mergeSessionSettings.call(void 0, this._settings, params);
3569
3686
  }
3570
3687
  return result;
3571
3688
  }
@@ -3575,29 +3692,34 @@ var DroidSession = (_class5 = class _DroidSession {
3575
3692
  ...params
3576
3693
  });
3577
3694
  }
3695
+ async exitSpecMode() {
3696
+ return this.updateSettings({
3697
+ interactionMode: "auto" /* Auto */
3698
+ });
3699
+ }
3578
3700
  async addMcpServer(params) {
3579
3701
  this._ensureNotClosed();
3580
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.addMcpServer(params));
3702
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.addMcpServer(params));
3581
3703
  }
3582
3704
  async removeMcpServer(params) {
3583
3705
  this._ensureNotClosed();
3584
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.removeMcpServer(params));
3706
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.removeMcpServer(params));
3585
3707
  }
3586
3708
  async toggleMcpServer(params) {
3587
3709
  this._ensureNotClosed();
3588
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.toggleMcpServer(params));
3710
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.toggleMcpServer(params));
3589
3711
  }
3590
3712
  async listMcpServers() {
3591
3713
  this._ensureNotClosed();
3592
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.listMcpServers());
3714
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.listMcpServers());
3593
3715
  }
3594
3716
  async listMcpTools() {
3595
3717
  this._ensureNotClosed();
3596
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.listMcpTools()).tools;
3718
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.listMcpTools()).tools;
3597
3719
  }
3598
3720
  async listTools(params = {}) {
3599
3721
  this._ensureNotClosed();
3600
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.listTools(params)).tools.map(
3722
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.listTools(params)).tools.map(
3601
3723
  ({ id: _protocolId, llmId, currentlyAllowed, ...tool2 }) => ({
3602
3724
  ...tool2,
3603
3725
  id: llmId,
@@ -3607,17 +3729,17 @@ var DroidSession = (_class5 = class _DroidSession {
3607
3729
  }
3608
3730
  async authenticateMcpServer(params) {
3609
3731
  this._ensureNotClosed();
3610
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0,
3732
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0,
3611
3733
  await this._client.authenticateMcpServer(params)
3612
3734
  );
3613
3735
  }
3614
3736
  async listSkills() {
3615
3737
  this._ensureNotClosed();
3616
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.listSkills());
3738
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.listSkills());
3617
3739
  }
3618
3740
  async setSkillDisabled(params) {
3619
3741
  this._ensureNotClosed();
3620
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0,
3742
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0,
3621
3743
  await this._client.setSkillDisabled(
3622
3744
  params.skillName,
3623
3745
  params.disabled,
@@ -3627,34 +3749,34 @@ var DroidSession = (_class5 = class _DroidSession {
3627
3749
  }
3628
3750
  async getRewindInfo(params) {
3629
3751
  this._ensureNotClosed();
3630
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.getRewindInfo(params));
3752
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.getRewindInfo(params));
3631
3753
  }
3632
3754
  async rewind(params) {
3633
3755
  const { session, result } = await this._runReplacement(
3634
- () => this._client.executeRewind(params).then(_chunkC3KHERVHjs.unwrapResponseResult)
3756
+ () => this._client.executeRewind(params).then(_chunkFJP5OKS5js.unwrapResponseResult)
3635
3757
  );
3636
3758
  const { newSessionId: _newSessionId, ...metadata } = result;
3637
3759
  return { session, ...metadata };
3638
3760
  }
3639
3761
  async compact(params) {
3640
3762
  const { session, result } = await this._runReplacement(
3641
- () => this._client.compactSession(_nullishCoalesce(params, () => ( {}))).then(_chunkC3KHERVHjs.unwrapResponseResult)
3763
+ () => this._client.compactSession(_nullishCoalesce(params, () => ( {}))).then(_chunkFJP5OKS5js.unwrapResponseResult)
3642
3764
  );
3643
3765
  return { session, removedCount: result.removedCount };
3644
3766
  }
3645
3767
  async fork(params = {}) {
3646
3768
  const { session } = await this._runReplacement(
3647
- () => this._client.forkSession(params).then(_chunkC3KHERVHjs.unwrapResponseResult)
3769
+ () => this._client.forkSession(params).then(_chunkFJP5OKS5js.unwrapResponseResult)
3648
3770
  );
3649
3771
  return session;
3650
3772
  }
3651
3773
  async getContextStats() {
3652
3774
  this._ensureNotClosed();
3653
- return _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.getContextStats());
3775
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.getContextStats());
3654
3776
  }
3655
3777
  async rename(params) {
3656
3778
  this._ensureNotClosed();
3657
- _chunkC3KHERVHjs.unwrapResponseResult.call(void 0, await this._client.renameSession(params));
3779
+ _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, await this._client.renameSession(params));
3658
3780
  }
3659
3781
  onNotification(callback, filter) {
3660
3782
  this._ensureNotClosed();
@@ -3668,13 +3790,13 @@ var DroidSession = (_class5 = class _DroidSession {
3668
3790
  }
3669
3791
  _ensureNotClosed() {
3670
3792
  if (this._status === "replaced" && this._replacementSessionId) {
3671
- throw new (0, _chunkC3KHERVHjs.SessionReplacedError)(
3793
+ throw new (0, _chunkFJP5OKS5js.SessionReplacedError)(
3672
3794
  this._sessionId,
3673
3795
  this._replacementSessionId
3674
3796
  );
3675
3797
  }
3676
3798
  if (this._status !== "active") {
3677
- throw new (0, _chunkC3KHERVHjs.ConnectionError)(
3799
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)(
3678
3800
  this._status === "replacing" ? "Session replacement is already in progress." : "Session has been closed. Create a new session to continue."
3679
3801
  );
3680
3802
  }
@@ -3682,7 +3804,7 @@ var DroidSession = (_class5 = class _DroidSession {
3682
3804
  _beginReplacement() {
3683
3805
  this._ensureNotClosed();
3684
3806
  if (this._activeBridges.size > 0) {
3685
- throw new (0, _chunkC3KHERVHjs.ConcurrentStreamError)(this._sessionId);
3807
+ throw new (0, _chunkFJP5OKS5js.ConcurrentStreamError)(this._sessionId);
3686
3808
  }
3687
3809
  this._status = "replacing";
3688
3810
  }
@@ -3698,11 +3820,11 @@ var DroidSession = (_class5 = class _DroidSession {
3698
3820
  throw error;
3699
3821
  }
3700
3822
  if (this._status !== "replacing") {
3701
- throw new (0, _chunkC3KHERVHjs.SessionReplacementError)(this._sessionId, result.newSessionId, {
3702
- cause: new (0, _chunkC3KHERVHjs.ConnectionError)(
3823
+ throw new (0, _chunkFJP5OKS5js.SessionReplacementError)(this._sessionId, result.newSessionId, {
3824
+ cause: new (0, _chunkFJP5OKS5js.ConnectionError)(
3703
3825
  "Session closed while replacement was in progress."
3704
3826
  ),
3705
- rollbackError: new (0, _chunkC3KHERVHjs.ConnectionError)(
3827
+ rollbackError: new (0, _chunkFJP5OKS5js.ConnectionError)(
3706
3828
  "The source session was already closed."
3707
3829
  )
3708
3830
  });
@@ -3714,18 +3836,18 @@ var DroidSession = (_class5 = class _DroidSession {
3714
3836
  }
3715
3837
  async _loadReplacement(replacementSessionId) {
3716
3838
  try {
3717
- const loadResult = _chunkC3KHERVHjs.unwrapResponseResult.call(void 0,
3839
+ const loadResult = _chunkFJP5OKS5js.unwrapResponseResult.call(void 0,
3718
3840
  await this._client.loadSession({
3719
3841
  ...this._runtime.loadParams,
3720
3842
  sessionId: replacementSessionId
3721
3843
  })
3722
3844
  );
3723
3845
  if (this._status !== "replacing") {
3724
- throw new (0, _chunkC3KHERVHjs.ConnectionError)(
3846
+ throw new (0, _chunkFJP5OKS5js.ConnectionError)(
3725
3847
  "Session closed while replacement was loading."
3726
3848
  );
3727
3849
  }
3728
- _optionalChain([this, 'access', _49 => _49._cleanupAbortSignal, 'optionalCall', _50 => _50()]);
3850
+ _optionalChain([this, 'access', _51 => _51._cleanupAbortSignal, 'optionalCall', _52 => _52()]);
3729
3851
  this._cleanupAbortSignal = null;
3730
3852
  this._releaseHandleSubscriptions();
3731
3853
  const cleanupCallbacks = this._cleanupCallbacks;
@@ -3742,12 +3864,12 @@ var DroidSession = (_class5 = class _DroidSession {
3742
3864
  return replacement;
3743
3865
  } catch (cause) {
3744
3866
  if (this._status !== "replacing") {
3745
- throw new (0, _chunkC3KHERVHjs.SessionReplacementError)(
3867
+ throw new (0, _chunkFJP5OKS5js.SessionReplacementError)(
3746
3868
  this._sessionId,
3747
3869
  replacementSessionId,
3748
3870
  {
3749
3871
  cause,
3750
- rollbackError: new (0, _chunkC3KHERVHjs.ConnectionError)(
3872
+ rollbackError: new (0, _chunkFJP5OKS5js.ConnectionError)(
3751
3873
  "The source session was closed before rollback."
3752
3874
  )
3753
3875
  }
@@ -3755,7 +3877,7 @@ var DroidSession = (_class5 = class _DroidSession {
3755
3877
  }
3756
3878
  let rollbackResult;
3757
3879
  try {
3758
- rollbackResult = _chunkC3KHERVHjs.unwrapResponseResult.call(void 0,
3880
+ rollbackResult = _chunkFJP5OKS5js.unwrapResponseResult.call(void 0,
3759
3881
  await this._client.loadSession({
3760
3882
  ...this._runtime.loadParams,
3761
3883
  sessionId: this._sessionId
@@ -3763,18 +3885,18 @@ var DroidSession = (_class5 = class _DroidSession {
3763
3885
  );
3764
3886
  } catch (rollbackError) {
3765
3887
  await this._disposeAfterFailedRollback();
3766
- throw new (0, _chunkC3KHERVHjs.SessionReplacementError)(
3888
+ throw new (0, _chunkFJP5OKS5js.SessionReplacementError)(
3767
3889
  this._sessionId,
3768
3890
  replacementSessionId,
3769
3891
  { cause, rollbackError }
3770
3892
  );
3771
3893
  }
3772
3894
  if (this._status !== "replacing") {
3773
- const rollbackError = new (0, _chunkC3KHERVHjs.ConnectionError)(
3895
+ const rollbackError = new (0, _chunkFJP5OKS5js.ConnectionError)(
3774
3896
  "Session closed while replacement rollback was loading."
3775
3897
  );
3776
3898
  await this._disposeAfterFailedRollback();
3777
- throw new (0, _chunkC3KHERVHjs.SessionReplacementError)(
3899
+ throw new (0, _chunkFJP5OKS5js.SessionReplacementError)(
3778
3900
  this._sessionId,
3779
3901
  replacementSessionId,
3780
3902
  { cause, rollbackError }
@@ -3783,24 +3905,24 @@ var DroidSession = (_class5 = class _DroidSession {
3783
3905
  this._settings = rollbackResult.settings;
3784
3906
  this._cwd = rollbackResult.cwd;
3785
3907
  this._status = "active";
3786
- throw new (0, _chunkC3KHERVHjs.SessionReplacementError)(this._sessionId, replacementSessionId, {
3908
+ throw new (0, _chunkFJP5OKS5js.SessionReplacementError)(this._sessionId, replacementSessionId, {
3787
3909
  cause
3788
3910
  });
3789
3911
  }
3790
3912
  }
3791
3913
  _bindAbortSignal() {
3792
- this._cleanupAbortSignal = _chunkC3KHERVHjs.wireAbortSignal.call(void 0,
3914
+ this._cleanupAbortSignal = _chunkFJP5OKS5js.wireAbortSignal.call(void 0,
3793
3915
  this._runtime.abortSignal,
3794
3916
  () => void this.close()
3795
3917
  );
3796
3918
  }
3797
3919
  _bindMetadataNotifications() {
3798
3920
  const unsubscribe = this._client.onNotification((notification) => {
3799
- const inner = _chunkC3KHERVHjs.extractInnerNotification.call(void 0, notification);
3800
- if (_optionalChain([inner, 'optionalAccess', _51 => _51.type]) === "settings_updated" /* SETTINGS_UPDATED */) {
3801
- this._settings = _chunkC3KHERVHjs.mergeSessionSettings.call(void 0, this._settings, inner.settings);
3921
+ const inner = _chunkFJP5OKS5js.extractInnerNotification.call(void 0, notification);
3922
+ if (_optionalChain([inner, 'optionalAccess', _53 => _53.type]) === "settings_updated" /* SETTINGS_UPDATED */) {
3923
+ this._settings = _chunkFJP5OKS5js.mergeSessionSettings.call(void 0, this._settings, inner.settings);
3802
3924
  this._settingsRevision++;
3803
- } 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 */) {
3804
3926
  this._cwd = inner.cwd;
3805
3927
  }
3806
3928
  });
@@ -3815,7 +3937,7 @@ var DroidSession = (_class5 = class _DroidSession {
3815
3937
  }
3816
3938
  async _disposeAfterFailedRollback() {
3817
3939
  this._status = "closed";
3818
- _optionalChain([this, 'access', _53 => _53._cleanupAbortSignal, 'optionalCall', _54 => _54()]);
3940
+ _optionalChain([this, 'access', _55 => _55._cleanupAbortSignal, 'optionalCall', _56 => _56()]);
3819
3941
  this._cleanupAbortSignal = null;
3820
3942
  this._releaseHandleSubscriptions();
3821
3943
  await closeQuietly(this._client);
@@ -3831,13 +3953,14 @@ function createReplacementLoadParams(options, mcpServers) {
3831
3953
  disabledToolIds: options.disabledToolIds,
3832
3954
  autoRejectPermissionRequests: options.autoRejectPermissionRequests,
3833
3955
  disableBuiltinSkills: options.disableBuiltinSkills,
3834
- sessionSource: options.sessionSource
3956
+ sessionSource: options.sessionSource,
3957
+ sessionOriginHint: "sdk" /* Sdk */
3835
3958
  };
3836
3959
  }
3837
3960
  async function createSession(options = {}) {
3838
3961
  const { client } = await createConfiguredClient(options);
3839
- let cleanupInitAbortSignal = _optionalChain([options, 'access', _55 => _55.abortSignal, 'optionalAccess', _56 => _56.aborted]) ? () => {
3840
- } : _chunkC3KHERVHjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
3962
+ let cleanupInitAbortSignal = _optionalChain([options, 'access', _57 => _57.abortSignal, 'optionalAccess', _58 => _58.aborted]) ? () => {
3963
+ } : _chunkFJP5OKS5js.wireAbortSignal.call(void 0, options.abortSignal, () => {
3841
3964
  void closeQuietly(client);
3842
3965
  });
3843
3966
  let sdkMcpServers;
@@ -3847,7 +3970,7 @@ async function createSession(options = {}) {
3847
3970
  ...options,
3848
3971
  mcpServers: sdkMcpServers.mcpServers
3849
3972
  });
3850
- const initResult = _chunkC3KHERVHjs.unwrapResponseResult.call(void 0,
3973
+ const initResult = _chunkFJP5OKS5js.unwrapResponseResult.call(void 0,
3851
3974
  await client.initializeSession(initParams)
3852
3975
  );
3853
3976
  const session = new DroidSession(
@@ -3855,7 +3978,7 @@ async function createSession(options = {}) {
3855
3978
  initResult.sessionId,
3856
3979
  {
3857
3980
  settings: initResult.settings,
3858
- 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))
3859
3982
  },
3860
3983
  {
3861
3984
  abortSignal: options.abortSignal,
@@ -3872,15 +3995,15 @@ async function createSession(options = {}) {
3872
3995
  return session;
3873
3996
  } catch (error) {
3874
3997
  cleanupInitAbortSignal();
3875
- await _optionalChain([sdkMcpServers, 'optionalAccess', _59 => _59.cleanup, 'call', _60 => _60()]);
3998
+ await _optionalChain([sdkMcpServers, 'optionalAccess', _61 => _61.cleanup, 'call', _62 => _62()]);
3876
3999
  await closeQuietly(client);
3877
4000
  throw error;
3878
4001
  }
3879
4002
  }
3880
4003
  async function resumeSession(sessionId, options = {}) {
3881
4004
  const { client } = await createConfiguredClient(options);
3882
- let cleanupLoadAbortSignal = _optionalChain([options, 'access', _61 => _61.abortSignal, 'optionalAccess', _62 => _62.aborted]) ? () => {
3883
- } : _chunkC3KHERVHjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
4005
+ let cleanupLoadAbortSignal = _optionalChain([options, 'access', _63 => _63.abortSignal, 'optionalAccess', _64 => _64.aborted]) ? () => {
4006
+ } : _chunkFJP5OKS5js.wireAbortSignal.call(void 0, options.abortSignal, () => {
3884
4007
  void closeQuietly(client);
3885
4008
  });
3886
4009
  let sdkMcpServers;
@@ -3890,7 +4013,7 @@ async function resumeSession(sessionId, options = {}) {
3890
4013
  options,
3891
4014
  sdkMcpServers.mcpServers
3892
4015
  );
3893
- const loadResult = _chunkC3KHERVHjs.unwrapResponseResult.call(void 0,
4016
+ const loadResult = _chunkFJP5OKS5js.unwrapResponseResult.call(void 0,
3894
4017
  await client.loadSession({ sessionId, ...replacementLoadParams })
3895
4018
  );
3896
4019
  const session = new DroidSession(
@@ -3909,7 +4032,7 @@ async function resumeSession(sessionId, options = {}) {
3909
4032
  return session;
3910
4033
  } catch (error) {
3911
4034
  cleanupLoadAbortSignal();
3912
- await _optionalChain([sdkMcpServers, 'optionalAccess', _63 => _63.cleanup, 'call', _64 => _64()]);
4035
+ await _optionalChain([sdkMcpServers, 'optionalAccess', _65 => _65.cleanup, 'call', _66 => _66()]);
3913
4036
  await closeQuietly(client);
3914
4037
  throw error;
3915
4038
  }
@@ -3923,7 +4046,7 @@ async function run(prompt, options = {}) {
3923
4046
  ...options,
3924
4047
  includePartialMessages: false
3925
4048
  })) {
3926
- if (msg.type === _chunkC3KHERVHjs.DroidMessageType.Result) {
4049
+ if (msg.type === _chunkFJP5OKS5js.DroidMessageType.Result) {
3927
4050
  return msg;
3928
4051
  }
3929
4052
  }
@@ -3998,11 +4121,11 @@ function loadSettingsFile(directory, sessionId) {
3998
4121
  if (!buf) return null;
3999
4122
  const parsed = parseJsonBuffer(buf);
4000
4123
  if (parsed === null) return null;
4001
- const result = _chunkC3KHERVHjs.SessionSettingsFileSchema.safeParse(parsed);
4124
+ const result = _chunkFJP5OKS5js.SessionSettingsFileSchema.safeParse(parsed);
4002
4125
  return result.success ? result.data : null;
4003
4126
  }
4004
4127
  function getMissionMetadataFromTags(settings) {
4005
- if (!_optionalChain([settings, 'optionalAccess', _65 => _65.tags])) return {};
4128
+ if (!_optionalChain([settings, 'optionalAccess', _67 => _67.tags])) return {};
4006
4129
  const missionTag = settings.tags.find(
4007
4130
  (tag) => tag.name.startsWith(MISSION_TAG_PREFIX)
4008
4131
  );
@@ -4010,8 +4133,8 @@ function getMissionMetadataFromTags(settings) {
4010
4133
  (tag) => tag.name === DECOMP_SESSION_TYPE_TAG
4011
4134
  );
4012
4135
  return {
4013
- decompMissionId: _optionalChain([missionTag, 'optionalAccess', _66 => _66.metadata, 'optionalAccess', _67 => _67[MISSION_ID_METADATA_KEY]]),
4014
- 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]])
4015
4138
  };
4016
4139
  }
4017
4140
  function parseSessionFile(candidate, ctx) {
@@ -4020,7 +4143,7 @@ function parseSessionFile(candidate, ctx) {
4020
4143
  const scanned = scanBufferForLines(buf);
4021
4144
  const firstParsed = parseJsonBuffer(scanned.firstLine);
4022
4145
  if (firstParsed === null) return null;
4023
- const firstResult = _chunkC3KHERVHjs.SessionStartEventSchema.safeParse(firstParsed);
4146
+ const firstResult = _chunkFJP5OKS5js.SessionStartEventSchema.safeParse(firstParsed);
4024
4147
  if (!firstResult.success) return null;
4025
4148
  const summary = firstResult.data;
4026
4149
  if (ctx.requiredCwd !== void 0 && (summary.cwd === void 0 || path2.resolve(summary.cwd) !== ctx.requiredCwd)) {
@@ -4028,9 +4151,9 @@ function parseSessionFile(candidate, ctx) {
4028
4151
  }
4029
4152
  const settingsName = `${candidate.sessionId}${SETTINGS_SUFFIX}`;
4030
4153
  const settings = candidate.siblingNames.has(settingsName) ? loadSettingsFile(candidate.directory, candidate.sessionId) : null;
4031
- if (_optionalChain([settings, 'optionalAccess', _70 => _70.archivedAt])) return null;
4154
+ if (_optionalChain([settings, 'optionalAccess', _72 => _72.archivedAt])) return null;
4032
4155
  const tagMeta = getMissionMetadataFromTags(settings);
4033
- const decompSessionType = _nullishCoalesce(summary.decompSessionType, () => ( _chunkC3KHERVHjs.SessionStartDecompSessionTypeSchema.safeParse(tagMeta.decompSessionType).data));
4156
+ const decompSessionType = _nullishCoalesce(summary.decompSessionType, () => ( _chunkFJP5OKS5js.SessionStartDecompSessionTypeSchema.safeParse(tagMeta.decompSessionType).data));
4034
4157
  const messageCount = Math.max(0, scanned.nonEmptyLineCount - 1);
4035
4158
  return {
4036
4159
  id: candidate.sessionId,
@@ -4154,6 +4277,25 @@ async function listSessions(options = {}) {
4154
4277
  return sorted;
4155
4278
  }
4156
4279
 
4280
+ // src/model-discovery.ts
4281
+ async function listModels(options = {}) {
4282
+ const { includeDisabled, ...transportOptions } = options;
4283
+ const { client } = await createConfiguredClient(transportOptions);
4284
+ try {
4285
+ const response = await client.listModels({
4286
+ ...includeDisabled !== void 0 && { includeDisabled }
4287
+ });
4288
+ return _chunkFJP5OKS5js.unwrapResponseResult.call(void 0, response).models;
4289
+ } finally {
4290
+ await closeQuietly(client);
4291
+ }
4292
+ }
4293
+
4294
+
4295
+
4296
+
4297
+
4298
+
4157
4299
 
4158
4300
 
4159
4301
 
@@ -4597,5 +4739,5 @@ async function listSessions(options = {}) {
4597
4739
 
4598
4740
 
4599
4741
 
4600
- exports.AbortError = _chunkC3KHERVHjs.AbortError; exports.AddMcpServerRequestParamsSchema = _chunkC3KHERVHjs.AddMcpServerRequestParamsSchema; exports.AddMcpServerRequestSchema = _chunkC3KHERVHjs.AddMcpServerRequestSchema; exports.AddMcpServerResponseSchema = _chunkC3KHERVHjs.AddMcpServerResponseSchema; exports.AddMcpServerResultSchema = _chunkC3KHERVHjs.AddMcpServerResultSchema; exports.AddUserMessageRequestParamsSchema = _chunkC3KHERVHjs.AddUserMessageRequestParamsSchema; exports.AddUserMessageRequestSchema = _chunkC3KHERVHjs.AddUserMessageRequestSchema; exports.AddUserMessageResponseSchema = _chunkC3KHERVHjs.AddUserMessageResponseSchema; exports.AddUserMessageResultSchema = _chunkC3KHERVHjs.AddUserMessageResultSchema; exports.ApplyPatchToolConfirmationDetailsSchema = _chunkC3KHERVHjs.ApplyPatchToolConfirmationDetailsSchema; exports.AskUserCollectedAnswerSchema = _chunkC3KHERVHjs.AskUserCollectedAnswerSchema; exports.AskUserConfirmationDetailsSchema = _chunkC3KHERVHjs.AskUserConfirmationDetailsSchema; exports.AskUserQuestionSchema = _chunkC3KHERVHjs.AskUserQuestionSchema; exports.AskUserRequestParamsSchema = _chunkC3KHERVHjs.AskUserRequestParamsSchema; exports.AskUserRequestSchema = _chunkC3KHERVHjs.AskUserRequestSchema; exports.AskUserResponseSchema = _chunkC3KHERVHjs.AskUserResponseSchema; exports.AskUserResultSchema = _chunkC3KHERVHjs.AskUserResultSchema; exports.AssistantTextCompleteNotificationSchema = _chunkC3KHERVHjs.AssistantTextCompleteNotificationSchema; exports.AssistantTextDeltaNotificationSchema = _chunkC3KHERVHjs.AssistantTextDeltaNotificationSchema; exports.AuthenticateMcpServerRequestParamsSchema = _chunkC3KHERVHjs.AuthenticateMcpServerRequestParamsSchema; exports.AuthenticateMcpServerRequestSchema = _chunkC3KHERVHjs.AuthenticateMcpServerRequestSchema; exports.AuthenticateMcpServerResponseSchema = _chunkC3KHERVHjs.AuthenticateMcpServerResponseSchema; exports.AuthenticateMcpServerResultSchema = _chunkC3KHERVHjs.AuthenticateMcpServerResultSchema; exports.AutonomyLevel = _chunkC3KHERVHjs.AutonomyLevel; exports.AvailableModelConfigSchema = _chunkC3KHERVHjs.AvailableModelConfigSchema; exports.Base64ImageSourceSchema = _chunkC3KHERVHjs.Base64ImageSourceSchema; exports.BaseNotificationSchema = _chunkC3KHERVHjs.BaseNotificationSchema; exports.BaseRequestSchema = _chunkC3KHERVHjs.BaseRequestSchema; exports.BaseResponseFailureSchema = _chunkC3KHERVHjs.BaseResponseFailureSchema; exports.BaseResponseSuccessSchema = _chunkC3KHERVHjs.BaseResponseSuccessSchema; exports.CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC = CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC; exports.COMPACTION_TIMEOUT = _chunkC3KHERVHjs.COMPACTION_TIMEOUT; exports.CancelMcpAuthRequestParamsSchema = _chunkC3KHERVHjs.CancelMcpAuthRequestParamsSchema; exports.CancelMcpAuthRequestSchema = _chunkC3KHERVHjs.CancelMcpAuthRequestSchema; exports.CancelMcpAuthResponseSchema = _chunkC3KHERVHjs.CancelMcpAuthResponseSchema; exports.CancelMcpAuthResultSchema = _chunkC3KHERVHjs.CancelMcpAuthResultSchema; exports.ChangeWorkingDirectoryRequestParamsSchema = _chunkC3KHERVHjs.ChangeWorkingDirectoryRequestParamsSchema; exports.ChangeWorkingDirectoryRequestSchema = _chunkC3KHERVHjs.ChangeWorkingDirectoryRequestSchema; exports.ChangeWorkingDirectoryResponseSchema = _chunkC3KHERVHjs.ChangeWorkingDirectoryResponseSchema; exports.ChangeWorkingDirectoryResultSchema = _chunkC3KHERVHjs.ChangeWorkingDirectoryResultSchema; exports.ClearMcpAuthRequestParamsSchema = _chunkC3KHERVHjs.ClearMcpAuthRequestParamsSchema; exports.ClearMcpAuthRequestSchema = _chunkC3KHERVHjs.ClearMcpAuthRequestSchema; exports.ClearMcpAuthResponseSchema = _chunkC3KHERVHjs.ClearMcpAuthResponseSchema; exports.ClearMcpAuthResultSchema = _chunkC3KHERVHjs.ClearMcpAuthResultSchema; exports.CliRequestOrNotificationSchema = _chunkC3KHERVHjs.CliRequestOrNotificationSchema; exports.ClientDestroyedError = _chunkC3KHERVHjs.ClientDestroyedError; exports.ClientRequestSchema = _chunkC3KHERVHjs.ClientRequestSchema; exports.ClientUiSurface = _chunkC3KHERVHjs.ClientUiSurface; exports.CloseSessionRequestParamsSchema = _chunkC3KHERVHjs.CloseSessionRequestParamsSchema; exports.CloseSessionRequestSchema = _chunkC3KHERVHjs.CloseSessionRequestSchema; exports.CloseSessionResponseSchema = _chunkC3KHERVHjs.CloseSessionResponseSchema; exports.CloseSessionResultSchema = _chunkC3KHERVHjs.CloseSessionResultSchema; exports.CompactSessionRequestParamsSchema = _chunkC3KHERVHjs.CompactSessionRequestParamsSchema; exports.CompactSessionRequestSchema = _chunkC3KHERVHjs.CompactSessionRequestSchema; exports.CompactSessionResponseSchema = _chunkC3KHERVHjs.CompactSessionResponseSchema; exports.CompactSessionResultSchema = _chunkC3KHERVHjs.CompactSessionResultSchema; exports.ComputeLimitExceededError = _chunkC3KHERVHjs.ComputeLimitExceededError; exports.ComputerConnectAttemptTrigger = _chunkC3KHERVHjs.ComputerConnectAttemptTrigger; exports.ComputerConnectStartType = _chunkC3KHERVHjs.ComputerConnectStartType; exports.ComputerListResponseSchema = _chunkC3KHERVHjs.ComputerListResponseSchema; exports.ComputerMetricSchema = _chunkC3KHERVHjs.ComputerMetricSchema; exports.ComputerMetricsResponseSchema = _chunkC3KHERVHjs.ComputerMetricsResponseSchema; exports.ComputerSchema = _chunkC3KHERVHjs.ComputerSchema; exports.ConcurrentStreamError = _chunkC3KHERVHjs.ConcurrentStreamError; exports.ConnectionClosedError = _chunkC3KHERVHjs.ConnectionClosedError; exports.ConnectionError = _chunkC3KHERVHjs.ConnectionError; exports.ConnectionFailureReason = _chunkC3KHERVHjs.ConnectionFailureReason; exports.ContentBlockSchema = _chunkC3KHERVHjs.ContentBlockSchema; exports.ContextBreakdownCategorySchema = _chunkC3KHERVHjs.ContextBreakdownCategorySchema; exports.ContextBreakdownResultSchema = _chunkC3KHERVHjs.GetContextBreakdownResultSchema; exports.ContextStatsAccuracy = _chunkC3KHERVHjs.ContextStatsAccuracy; exports.ContextStatsSchema = _chunkC3KHERVHjs.ContextStatsSchema; exports.CreateMessageNotificationSchema = _chunkC3KHERVHjs.CreateMessageNotificationSchema; exports.CreateToolConfirmationDetailsSchema = _chunkC3KHERVHjs.CreateToolConfirmationDetailsSchema; exports.DEFAULT_LOCAL_DAEMON_WS_URL = _chunkC3KHERVHjs.DEFAULT_LOCAL_DAEMON_WS_URL; exports.DEFAULT_REQUEST_TIMEOUT = _chunkC3KHERVHjs.DEFAULT_REQUEST_TIMEOUT; exports.DaemonAuthenticationMode = _chunkC3KHERVHjs.DaemonAuthenticationMode; exports.DaemonClient = _chunkC3KHERVHjs.DaemonClient; exports.DaemonClientMetaError = _chunkC3KHERVHjs.MetaError; exports.DaemonDroidEvent = _chunkC3KHERVHjs.DaemonDroidEvent; exports.DaemonRequestPermissionSchema = _chunkC3KHERVHjs.DaemonRequestPermissionSchema; exports.DaemonSessionController = _chunkC3KHERVHjs.DaemonSessionController; exports.DecompSessionType = _chunkC3KHERVHjs.DecompSessionType; exports.DiscoveredIssueSchema = _chunkC3KHERVHjs.DiscoveredIssueSchema; exports.DismissalRecordSchema = _chunkC3KHERVHjs.DismissalRecordSchema; exports.DismissalType = _chunkC3KHERVHjs.DismissalType; exports.DocumentBlockSchema = _chunkC3KHERVHjs.DocumentBlockSchema; exports.DocumentSourceSchema = _chunkC3KHERVHjs.DocumentSourceSchema; exports.DroidClient = DroidClient; exports.DroidClientError = _chunkC3KHERVHjs.DroidClientError; exports.DroidClientEvent = DroidClientEvent; exports.DroidClientMethod = _chunkC3KHERVHjs.DroidClientMethod; exports.DroidErrorType = _chunkC3KHERVHjs.DroidErrorType; exports.DroidEvent = _chunkC3KHERVHjs.DroidEvent; exports.DroidHookEventSchema = _chunkC3KHERVHjs.DroidHookEventSchema; exports.DroidHookExecutionResultSchema = _chunkC3KHERVHjs.DroidHookExecutionResultSchema; exports.DroidHookOutputSchema = _chunkC3KHERVHjs.DroidHookOutputSchema; exports.DroidHookSpecificOutputSchema = _chunkC3KHERVHjs.DroidHookSpecificOutputSchema; exports.DroidInteractionMode = _chunkC3KHERVHjs.DroidInteractionMode; exports.DroidMessageType = _chunkC3KHERVHjs.DroidMessageType; exports.DroidProcessManager = DroidProcessManager; exports.DroidProcessMode = DroidProcessMode; exports.DroidServerMethod = _chunkC3KHERVHjs.DroidServerMethod; exports.DroidSession = DroidSession; exports.DroidWorkingState = _chunkC3KHERVHjs.DroidWorkingState; exports.DroidWorkingStateChangedNotificationSchema = _chunkC3KHERVHjs.DroidWorkingStateChangedNotificationSchema; exports.EditToolConfirmationDetailsSchema = _chunkC3KHERVHjs.EditToolConfirmationDetailsSchema; exports.EmptyResultSchema = _chunkC3KHERVHjs.EmptyResultSchema; exports.ErrorDetailSchema = _chunkC3KHERVHjs.ErrorDetailSchema; exports.ErrorNotificationSchema = _chunkC3KHERVHjs.ErrorNotificationSchema; exports.ExecToolInfoSchema = _chunkC3KHERVHjs.ExecToolInfoSchema; exports.ExecuteRewindRequestParamsSchema = _chunkC3KHERVHjs.ExecuteRewindRequestParamsSchema; exports.ExecuteRewindRequestSchema = _chunkC3KHERVHjs.ExecuteRewindRequestSchema; exports.ExecuteRewindResponseSchema = _chunkC3KHERVHjs.ExecuteRewindResponseSchema; exports.ExecuteRewindResultSchema = _chunkC3KHERVHjs.ExecuteRewindResultSchema; exports.ExecuteToolConfirmationDetailsSchema = _chunkC3KHERVHjs.ExecuteToolConfirmationDetailsSchema; exports.ExitSpecModeConfirmationDetailsSchema = _chunkC3KHERVHjs.ExitSpecModeConfirmationDetailsSchema; exports.FACTORY_CLIENT_HEADER = _chunkC3KHERVHjs.FACTORY_CLIENT_HEADER; exports.FACTORY_CLIENT_VERSION = _chunkC3KHERVHjs.FACTORY_CLIENT_VERSION; exports.FACTORY_PROTOCOL_VERSION = _chunkC3KHERVHjs.FACTORY_PROTOCOL_VERSION2; exports.FactoryDaemonTransport = _chunkC3KHERVHjs.FactoryDaemonTransport; exports.FactoryDroidMessageRole = _chunkC3KHERVHjs.FactoryDroidMessageRole; exports.FactoryDroidMessageSchema = _chunkC3KHERVHjs.FactoryDroidMessageSchema; exports.FeatureStatus = _chunkC3KHERVHjs.FeatureStatus; exports.FeatureSuccessState = _chunkC3KHERVHjs.FeatureSuccessState; exports.FeatureSuccessStateSchema = _chunkC3KHERVHjs.FeatureSuccessStateSchema; exports.ForkSessionRequestParamsSchema = _chunkC3KHERVHjs.ForkSessionRequestParamsSchema; exports.ForkSessionRequestSchema = _chunkC3KHERVHjs.ForkSessionRequestSchema; exports.ForkSessionResponseSchema = _chunkC3KHERVHjs.ForkSessionResponseSchema; exports.ForkSessionResultSchema = _chunkC3KHERVHjs.ForkSessionResultSchema; exports.GetContextStatsRequestParamsSchema = _chunkC3KHERVHjs.GetContextStatsRequestParamsSchema; exports.GetContextStatsRequestSchema = _chunkC3KHERVHjs.GetContextStatsRequestSchema; exports.GetContextStatsResponseSchema = _chunkC3KHERVHjs.GetContextStatsResponseSchema; exports.GetContextStatsResultSchema = _chunkC3KHERVHjs.ContextStatsSchema; exports.GetRewindInfoRequestParamsSchema = _chunkC3KHERVHjs.GetRewindInfoRequestParamsSchema; exports.GetRewindInfoRequestSchema = _chunkC3KHERVHjs.GetRewindInfoRequestSchema; exports.GetRewindInfoResponseSchema = _chunkC3KHERVHjs.GetRewindInfoResponseSchema; exports.GetRewindInfoResultSchema = _chunkC3KHERVHjs.GetRewindInfoResultSchema; exports.GitRepoInfoSchema = _chunkC3KHERVHjs.GitRepoInfoSchema; exports.HandoffItemsDismissedEntrySchema = _chunkC3KHERVHjs.HandoffItemsDismissedEntrySchema; exports.HandoffSchema = _chunkC3KHERVHjs.HandoffSchema; exports.HookCommandSchema = _chunkC3KHERVHjs.HookCommandSchema; exports.HookExecutionCompletedNotificationSchema = _chunkC3KHERVHjs.HookExecutionCompletedNotificationSchema; exports.HookExecutionStartedNotificationSchema = _chunkC3KHERVHjs.HookExecutionStartedNotificationSchema; exports.HookResultSchema = _chunkC3KHERVHjs.HookResultSchema; exports.HttpHeaderSchema = _chunkC3KHERVHjs.HttpHeaderSchema; exports.HttpMcpConfigSchema = _chunkC3KHERVHjs.HttpMcpSchema; exports.IPC_DAEMON_URL = _chunkC3KHERVHjs.IPC_DAEMON_URL; exports.ImageBlockSchema = _chunkC3KHERVHjs.ImageBlockSchema; exports.InProcessDaemonClientTransport = _chunkC3KHERVHjs.InProcessDaemonClientTransport; exports.InitializeSessionRequestParamsSchema = _chunkC3KHERVHjs.InitializeSessionRequestParamsSchema; exports.InitializeSessionRequestSchema = _chunkC3KHERVHjs.InitializeSessionRequestSchema; exports.InitializeSessionResponseSchema = _chunkC3KHERVHjs.InitializeSessionResponseSchema; exports.InitializeSessionResultSchema = _chunkC3KHERVHjs.InitializeSessionResultSchema2; exports.InteractiveCheckSchema = _chunkC3KHERVHjs.InteractiveCheckSchema; exports.InterruptSessionRequestParamsSchema = _chunkC3KHERVHjs.InterruptSessionRequestParamsSchema; exports.InterruptSessionRequestSchema = _chunkC3KHERVHjs.InterruptSessionRequestSchema; exports.InterruptSessionResponseSchema = _chunkC3KHERVHjs.InterruptSessionResponseSchema; exports.InterruptSessionResultSchema = _chunkC3KHERVHjs.InterruptSessionResultSchema; exports.InvalidSessionCwdError = _chunkC3KHERVHjs.InvalidSessionCwdError; exports.IpcDaemonClientTransport = _chunkC3KHERVHjs.IpcDaemonClientTransport; exports.IssueSeverity = _chunkC3KHERVHjs.IssueSeverity; exports.JSONRPC_VERSION = _chunkC3KHERVHjs.JSONRPC_VERSION3; exports.JsonArraySchema = _chunkC3KHERVHjs.JsonArraySchema; exports.JsonObjectSchema = _chunkC3KHERVHjs.JsonObjectSchema; exports.JsonRpcEnvelopeSchema = _chunkC3KHERVHjs.JsonRpcEnvelopeSchema; exports.JsonRpcErrorCode = _chunkC3KHERVHjs.JsonRpcErrorCode; exports.JsonRpcErrorSchema = _chunkC3KHERVHjs.JsonRpcErrorSchema; exports.JsonRpcMessageSchema = _chunkC3KHERVHjs.JsonRpcMessageSchema; exports.JsonRpcMessageType = _chunkC3KHERVHjs.JsonRpcMessageType; exports.JsonRpcNotificationSchema = _chunkC3KHERVHjs.JsonRpcNotificationSchema; exports.JsonRpcRequestError = _chunkC3KHERVHjs.JsonRpcRequestError; exports.JsonRpcRequestSchema = _chunkC3KHERVHjs.JsonRpcRequestSchema; exports.JsonRpcResponseFailureSchema = _chunkC3KHERVHjs.JsonRpcResponseFailureSchema; exports.JsonRpcResponseSchema = _chunkC3KHERVHjs.JsonRpcResponseSchema; exports.JsonRpcResponseSuccessSchema = _chunkC3KHERVHjs.JsonRpcResponseSuccessSchema; exports.JsonValueSchema = _chunkC3KHERVHjs.JsonValueSchema; exports.KillWorkerSessionRequestParamsSchema = _chunkC3KHERVHjs.KillWorkerSessionRequestParamsSchema; exports.KillWorkerSessionRequestSchema = _chunkC3KHERVHjs.KillWorkerSessionRequestSchema; exports.KillWorkerSessionResponseSchema = _chunkC3KHERVHjs.KillWorkerSessionResponseSchema; exports.KillWorkerSessionResultSchema = _chunkC3KHERVHjs.KillWorkerSessionResultSchema; exports.LEGACY_FACTORY_API_VERSION = _chunkC3KHERVHjs.LEGACY_FACTORY_API_VERSION2; exports.LOCAL_MACHINE_ID = _chunkC3KHERVHjs.LOCAL_MACHINE_ID; exports.ListMcpRegistryRequestParamsSchema = _chunkC3KHERVHjs.ListMcpRegistryRequestParamsSchema; exports.ListMcpRegistryRequestSchema = _chunkC3KHERVHjs.ListMcpRegistryRequestSchema; exports.ListMcpRegistryResponseSchema = _chunkC3KHERVHjs.ListMcpRegistryResponseSchema; exports.ListMcpRegistryResultSchema = _chunkC3KHERVHjs.ListMcpRegistryResultSchema; exports.ListMcpServersRequestParamsSchema = _chunkC3KHERVHjs.ListMcpServersRequestParamsSchema; exports.ListMcpServersRequestSchema = _chunkC3KHERVHjs.ListMcpServersRequestSchema; exports.ListMcpServersResponseSchema = _chunkC3KHERVHjs.ListMcpServersResponseSchema; exports.ListMcpServersResultSchema = _chunkC3KHERVHjs.ListMcpServersResultSchema; exports.ListMcpToolsRequestParamsSchema = _chunkC3KHERVHjs.ListMcpToolsRequestParamsSchema; exports.ListMcpToolsRequestSchema = _chunkC3KHERVHjs.ListMcpToolsRequestSchema; exports.ListMcpToolsResponseSchema = _chunkC3KHERVHjs.ListMcpToolsResponseSchema; exports.ListMcpToolsResultSchema = _chunkC3KHERVHjs.ListMcpToolsResultSchema; exports.ListSkillsRequestParamsSchema = _chunkC3KHERVHjs.ListSkillsRequestParamsSchema; exports.ListSkillsRequestSchema = _chunkC3KHERVHjs.ListSkillsRequestSchema; exports.ListSkillsResponseSchema = _chunkC3KHERVHjs.ListSkillsResponseSchema; exports.ListSkillsResultSchema = _chunkC3KHERVHjs.ListSkillsResultSchema; exports.ListToolsRequestParamsSchema = _chunkC3KHERVHjs.ListToolsRequestParamsSchema; exports.ListToolsRequestSchema = _chunkC3KHERVHjs.ListToolsRequestSchema; exports.ListToolsResponseSchema = _chunkC3KHERVHjs.ListToolsResponseSchema; exports.ListToolsResultSchema = _chunkC3KHERVHjs.ListToolsResultSchema; exports.LoadSessionRequestParamsSchema = _chunkC3KHERVHjs.LoadSessionRequestParamsSchema; exports.LoadSessionRequestSchema = _chunkC3KHERVHjs.LoadSessionRequestSchema; exports.LoadSessionResponseSchema = _chunkC3KHERVHjs.LoadSessionResponseSchema; exports.LoadSessionResultSchema = _chunkC3KHERVHjs.LoadSessionResultSchema; exports.MACHINE_TYPE_WEBSOCKET_OVERRIDES = _chunkC3KHERVHjs.MACHINE_TYPE_WEBSOCKET_OVERRIDES; exports.MANAGED_COMPUTER_MAX_RETRIES = _chunkC3KHERVHjs.MANAGED_COMPUTER_MAX_RETRIES; exports.MCP_AUTH_TIMEOUT = _chunkC3KHERVHjs.MCP_AUTH_TIMEOUT; exports.MachineTemplateBuildStatusSchema = _chunkC3KHERVHjs.MachineTemplateBuildStatusSchema; exports.MachineTemplateListResponseSchema = _chunkC3KHERVHjs.MachineTemplateListResponseSchema; exports.MachineTemplateSchema = _chunkC3KHERVHjs.MachineTemplateSchema; exports.MachineType = _chunkC3KHERVHjs.MachineType; exports.ManagedProcessImpl = ManagedProcessImpl; exports.McpAuthCompletedNotificationSchema = _chunkC3KHERVHjs.McpAuthCompletedNotificationSchema; exports.McpAuthOutcome = _chunkC3KHERVHjs.McpAuthOutcome; exports.McpAuthRequiredNotificationSchema = _chunkC3KHERVHjs.McpAuthRequiredNotificationSchema; exports.McpHttpServerConfigFieldsSchema = _chunkC3KHERVHjs.McpHttpServerConfigFieldsSchema; exports.McpRegistryServerSchema = _chunkC3KHERVHjs.McpRegistryServerSchema; exports.McpServerConfigSchema = _chunkC3KHERVHjs.McpServerConfigSchema; exports.McpServerStatus = _chunkC3KHERVHjs.McpServerStatus; exports.McpServerStatusInfoSchema = _chunkC3KHERVHjs.McpServerStatusInfoSchema; exports.McpServerType = _chunkC3KHERVHjs.McpServerType; exports.McpSseServerConfigFieldsSchema = _chunkC3KHERVHjs.McpSseServerConfigFieldsSchema; exports.McpStatus = _chunkC3KHERVHjs.McpStatus; exports.McpStatusChangedNotificationSchema = _chunkC3KHERVHjs.McpStatusChangedNotificationSchema; exports.McpStatusSummarySchema = _chunkC3KHERVHjs.McpStatusSummarySchema; exports.McpStdioServerConfigFieldsSchema = _chunkC3KHERVHjs.McpStdioServerConfigFieldsSchema; exports.McpToolConfirmationDetailsSchema = _chunkC3KHERVHjs.McpToolConfirmationDetailsSchema; exports.McpToolInfoSchema = _chunkC3KHERVHjs.McpToolInfoSchema; exports.McpToolInputSchemaSchema = _chunkC3KHERVHjs.McpToolInputSchemaSchema; exports.MessageVisibility = _chunkC3KHERVHjs.MessageVisibility; exports.Metric = _chunkC3KHERVHjs.Metric; exports.MilestoneValidationTriggeredEntrySchema = _chunkC3KHERVHjs.MilestoneValidationTriggeredEntrySchema; exports.MissionAcceptedEntrySchema = _chunkC3KHERVHjs.MissionAcceptedEntrySchema; exports.MissionFeatureSchema = _chunkC3KHERVHjs.MissionFeatureSchema; exports.MissionFeaturesChangedNotificationSchema = _chunkC3KHERVHjs.MissionFeaturesChangedNotificationSchema; exports.MissionHeartbeatNotificationSchema = _chunkC3KHERVHjs.MissionHeartbeatNotificationSchema; exports.MissionPausedEntrySchema = _chunkC3KHERVHjs.MissionPausedEntrySchema; exports.MissionProgressEntryNotificationSchema = _chunkC3KHERVHjs.MissionProgressEntryNotificationSchema; exports.MissionResumedEntrySchema = _chunkC3KHERVHjs.MissionResumedEntrySchema; exports.MissionRunStartedEntrySchema = _chunkC3KHERVHjs.MissionRunStartedEntrySchema; exports.MissionSnapshotSchema = _chunkC3KHERVHjs.MissionStateSchema; exports.MissionState = _chunkC3KHERVHjs.MissionState; exports.MissionStateChangedNotificationSchema = _chunkC3KHERVHjs.MissionStateChangedNotificationSchema; exports.MissionWorkerCompletedNotificationSchema = _chunkC3KHERVHjs.MissionWorkerCompletedNotificationSchema; exports.MissionWorkerStartedNotificationSchema = _chunkC3KHERVHjs.MissionWorkerStartedNotificationSchema; exports.ModelProvider = _chunkC3KHERVHjs.ModelProvider; exports.MultiMissionStateManager = _chunkC3KHERVHjs.MultiMissionStateManager; exports.MultiSessionStateManager = _chunkC3KHERVHjs.MultiSessionStateManager; exports.OtelTracing = _chunkC3KHERVHjs.OtelTracing; exports.OutputFormatSchema = _chunkC3KHERVHjs.OutputFormatSchema; exports.OutputFormatType = _chunkC3KHERVHjs.OutputFormatType; exports.PermissionResolvedNotificationSchema = _chunkC3KHERVHjs.PermissionResolvedNotificationSchema; exports.ProcessExitError = _chunkC3KHERVHjs.ProcessExitError; exports.ProcessTransport = ProcessTransport; exports.ProgressLogEntrySchema = _chunkC3KHERVHjs.ProgressLogEntrySchema; exports.ProgressLogEntryType = _chunkC3KHERVHjs.ProgressLogEntryType; exports.ProposeMissionConfirmationDetailsSchema = _chunkC3KHERVHjs.ProposeMissionConfirmationDetailsSchema; exports.ProtocolError = _chunkC3KHERVHjs.ProtocolError; exports.QueuedUserMessageDisplayGroup = _chunkC3KHERVHjs.QueuedUserMessageDisplayGroup; exports.QueuedUserMessageKind = _chunkC3KHERVHjs.QueuedUserMessageKind; exports.REWIND_TIMEOUT = _chunkC3KHERVHjs.REWIND_TIMEOUT; exports.ReasoningEffort = _chunkC3KHERVHjs.ReasoningEffort; exports.RedactedThinkingBlockSchema = _chunkC3KHERVHjs.RedactedThinkingBlockSchema; exports.RefreshComputerResponseSchema = _chunkC3KHERVHjs.RefreshComputerResponseSchema; exports.RelayConnectionError = _chunkC3KHERVHjs.RelayConnectionError; exports.RemoteSessionListResponseSchema = _chunkC3KHERVHjs.RemoteSessionListResponseSchema; exports.RemoteSessionSchema = _chunkC3KHERVHjs.RemoteSessionSchema; exports.RemoveMcpServerRequestParamsSchema = _chunkC3KHERVHjs.RemoveMcpServerRequestParamsSchema; exports.RemoveMcpServerRequestSchema = _chunkC3KHERVHjs.RemoveMcpServerRequestSchema; exports.RemoveMcpServerResponseSchema = _chunkC3KHERVHjs.RemoveMcpServerResponseSchema; exports.RemoveMcpServerResultSchema = _chunkC3KHERVHjs.RemoveMcpServerResultSchema; exports.RenameSessionRequestParamsSchema = _chunkC3KHERVHjs.RenameSessionRequestParamsSchema; exports.RenameSessionRequestSchema = _chunkC3KHERVHjs.RenameSessionRequestSchema; exports.RenameSessionResponseSchema = _chunkC3KHERVHjs.RenameSessionResponseSchema; exports.RenameSessionResultSchema = _chunkC3KHERVHjs.RenameSessionResultSchema; exports.RequestPermissionRequestParamsSchema = _chunkC3KHERVHjs.RequestPermissionRequestParamsSchema; exports.RequestPermissionRequestSchema = _chunkC3KHERVHjs.RequestPermissionRequestSchema; exports.RequestPermissionResponseSchema = _chunkC3KHERVHjs.RequestPermissionResponseSchema; exports.RequestPermissionResultSchema = _chunkC3KHERVHjs.RequestPermissionResultSchema; exports.RewindEvictedFileSchema = _chunkC3KHERVHjs.RewindEvictedFileSchema; exports.RewindFileCreationSchema = _chunkC3KHERVHjs.RewindFileCreationSchema; exports.RewindFileSnapshotSchema = _chunkC3KHERVHjs.RewindFileSnapshotSchema; exports.SDK_TAG = _chunkC3KHERVHjs.SDK_TAG; exports.SDK_VERSION = _chunkC3KHERVHjs.SDK_VERSION; exports.SESSION_INIT_TIMEOUT = _chunkC3KHERVHjs.SESSION_INIT_TIMEOUT; exports.SLACK_DELEGATION_MAX_RETRIES = _chunkC3KHERVHjs.SLACK_DELEGATION_MAX_RETRIES; exports.SdkMcpServer = SdkMcpServer; exports.ServerRequestHandlerType = _chunkC3KHERVHjs.ServerRequestHandlerType; exports.SessionError = _chunkC3KHERVHjs.SessionError; exports.SessionMetadataSchema = _chunkC3KHERVHjs.SessionMetadataSchema; exports.SessionNotFoundError = _chunkC3KHERVHjs.SessionNotFoundError; exports.SessionNotificationParamsSchema = _chunkC3KHERVHjs.SessionNotificationParamsSchema; exports.SessionNotificationPayloadSchema = _chunkC3KHERVHjs.SessionNotificationPayloadSchema; exports.SessionNotificationSchema = _chunkC3KHERVHjs.SessionNotificationSchema; exports.SessionNotificationSchemaList = _chunkC3KHERVHjs.SessionNotificationSchemaList; exports.SessionNotificationType = _chunkC3KHERVHjs.SessionNotificationType; exports.SessionPlatform = _chunkC3KHERVHjs.SessionPlatform; exports.SessionReplacedError = _chunkC3KHERVHjs.SessionReplacedError; exports.SessionReplacementError = _chunkC3KHERVHjs.SessionReplacementError; exports.SessionSettingsFileSchema = _chunkC3KHERVHjs.SessionSettingsFileSchema; exports.SessionSettingsSchema = _chunkC3KHERVHjs.SessionSettingsSchema; exports.SessionSourceSchema = _chunkC3KHERVHjs.SessionSourceSchema; exports.SessionStartEventSchema = _chunkC3KHERVHjs.SessionStartEventSchema; exports.SessionTagSchema = _chunkC3KHERVHjs.SessionTagSchema; exports.SessionTitleUpdatedNotificationSchema = _chunkC3KHERVHjs.SessionTitleUpdatedNotificationSchema; exports.SessionTokenUsageChangedNotificationSchema = _chunkC3KHERVHjs.SessionTokenUsageChangedNotificationSchema; exports.SetSkillDisabledRequestParamsSchema = _chunkC3KHERVHjs.SetSkillDisabledRequestParamsSchema; exports.SetSkillDisabledRequestSchema = _chunkC3KHERVHjs.SetSkillDisabledRequestSchema; exports.SetSkillDisabledResponseSchema = _chunkC3KHERVHjs.SetSkillDisabledResponseSchema; exports.SetSkillDisabledResultSchema = _chunkC3KHERVHjs.SetSkillDisabledResultSchema; exports.SettingsLevel = _chunkC3KHERVHjs.SettingsLevel; exports.SettingsUpdatedNotificationSchema = _chunkC3KHERVHjs.SettingsUpdatedNotificationSchema; exports.SettingsUpdatedPayloadSchema = _chunkC3KHERVHjs.SettingsUpdatedPayloadSchema; exports.SkillDeviationSchema = _chunkC3KHERVHjs.SkillDeviationSchema; exports.SkillFeedbackSchema = _chunkC3KHERVHjs.SkillFeedbackSchema; exports.SkillInfoSchema = _chunkC3KHERVHjs.SkillInfoSchema; exports.SkillLocation = _chunkC3KHERVHjs.SkillLocation; exports.SkillResourceSchema = _chunkC3KHERVHjs.SkillResourceSchema; exports.SpanAttribute = _chunkC3KHERVHjs.SpanAttribute; exports.SpanEvent = _chunkC3KHERVHjs.SpanEvent; exports.SpanName = _chunkC3KHERVHjs.SpanName; exports.SseMcpConfigSchema = _chunkC3KHERVHjs.SseMcpSchema; exports.StartMissionRunConfirmationDetailsSchema = _chunkC3KHERVHjs.StartMissionRunConfirmationDetailsSchema; exports.StdioMcpConfigSchema = _chunkC3KHERVHjs.StdioMcpSchema; exports.StreamStateTracker = _chunkC3KHERVHjs.StreamStateTracker; exports.StructuredOutputErrorSchema = _chunkC3KHERVHjs.StructuredOutputErrorSchema; exports.StructuredOutputNotificationSchema = _chunkC3KHERVHjs.StructuredOutputNotificationSchema; exports.SubmitBugReportRequestParamsSchema = _chunkC3KHERVHjs.SubmitBugReportRequestParamsSchema; exports.SubmitBugReportRequestSchema = _chunkC3KHERVHjs.SubmitBugReportRequestSchema; exports.SubmitBugReportResponseSchema = _chunkC3KHERVHjs.SubmitBugReportResponseSchema; exports.SubmitBugReportResultSchema = _chunkC3KHERVHjs.SubmitBugReportResultSchema; exports.SubmitMcpAuthCodeRequestParamsSchema = _chunkC3KHERVHjs.SubmitMcpAuthCodeRequestParamsSchema; exports.SubmitMcpAuthCodeRequestSchema = _chunkC3KHERVHjs.SubmitMcpAuthCodeRequestSchema; exports.SubmitMcpAuthCodeResponseSchema = _chunkC3KHERVHjs.SubmitMcpAuthCodeResponseSchema; exports.SubmitMcpAuthCodeResultSchema = _chunkC3KHERVHjs.SubmitMcpAuthCodeResultSchema; exports.SuccessResultSchema = _chunkC3KHERVHjs.SuccessResultSchema; exports.TestCaseSchema = _chunkC3KHERVHjs.TestCaseSchema; exports.TestFileSchema = _chunkC3KHERVHjs.TestFileSchema; exports.TestsSchema = _chunkC3KHERVHjs.TestsSchema; exports.TextBlockSchema = _chunkC3KHERVHjs.TextBlockSchema; exports.ThinkingBlockSchema = _chunkC3KHERVHjs.ThinkingBlockSchema; exports.ThinkingTextCompleteNotificationSchema = _chunkC3KHERVHjs.ThinkingTextCompleteNotificationSchema; exports.ThinkingTextDeltaNotificationSchema = _chunkC3KHERVHjs.ThinkingTextDeltaNotificationSchema; exports.TimeoutError = _chunkC3KHERVHjs.TimeoutError; exports.ToggleMcpServerRequestParamsSchema = _chunkC3KHERVHjs.ToggleMcpServerRequestParamsSchema; exports.ToggleMcpServerRequestSchema = _chunkC3KHERVHjs.ToggleMcpServerRequestSchema; exports.ToggleMcpServerResponseSchema = _chunkC3KHERVHjs.ToggleMcpServerResponseSchema; exports.ToggleMcpServerResultSchema = _chunkC3KHERVHjs.ToggleMcpServerResultSchema; exports.ToggleMcpToolRequestParamsSchema = _chunkC3KHERVHjs.ToggleMcpToolRequestParamsSchema; exports.ToggleMcpToolRequestSchema = _chunkC3KHERVHjs.ToggleMcpToolRequestSchema; exports.ToggleMcpToolResponseSchema = _chunkC3KHERVHjs.ToggleMcpToolResponseSchema; exports.ToggleMcpToolResultSchema = _chunkC3KHERVHjs.ToggleMcpToolResultSchema; exports.TokenUsageSchema = _chunkC3KHERVHjs.TokenUsageSchema; exports.ToolCallNotificationSchema = _chunkC3KHERVHjs.ToolCallNotificationSchema; exports.ToolConfirmationDetailsSchema = _chunkC3KHERVHjs.ToolConfirmationDetailsSchema; exports.ToolConfirmationInfoSchema = _chunkC3KHERVHjs.ToolConfirmationInfoSchema; exports.ToolConfirmationListItemSchema = _chunkC3KHERVHjs.ToolConfirmationListItemSchema; exports.ToolConfirmationOutcome = _chunkC3KHERVHjs.ToolConfirmationOutcome; exports.ToolConfirmationType = _chunkC3KHERVHjs.ToolConfirmationType; exports.ToolProgressUpdateNotificationSchema = _chunkC3KHERVHjs.ToolProgressUpdateNotificationSchema; exports.ToolProgressUpdateSchema = _chunkC3KHERVHjs.ToolProgressUpdateSchema; exports.ToolResultBlockSchema = _chunkC3KHERVHjs.ToolResultSchema; exports.ToolResultNotificationSchema = _chunkC3KHERVHjs.ToolResultNotificationSchema; exports.ToolSelectionOverridesSchema = _chunkC3KHERVHjs.ToolSelectionOverridesSchema; exports.ToolUseBlockSchema = _chunkC3KHERVHjs.ToolUseSchema; exports.ToolUseSchema = _chunkC3KHERVHjs.ToolUseSchema2; exports.TraceContextMetaSchema = _chunkC3KHERVHjs.TraceContextMetaSchema; exports.TransportDirection = TransportDirection; exports.TunnelConnection = _chunkC3KHERVHjs.TunnelConnection; exports.UpdateSessionSettingsRequestParamsSchema = _chunkC3KHERVHjs.UpdateSessionSettingsRequestParamsSchema; exports.UpdateSessionSettingsRequestSchema = _chunkC3KHERVHjs.UpdateSessionSettingsRequestSchema; exports.UpdateSessionSettingsResponseSchema = _chunkC3KHERVHjs.UpdateSessionSettingsResponseSchema; exports.UpdateSessionSettingsResultSchema = _chunkC3KHERVHjs.UpdateSessionSettingsResultSchema; exports.VerificationCommandSchema = _chunkC3KHERVHjs.VerificationCommandSchema; exports.VerificationSchema = _chunkC3KHERVHjs.VerificationSchema; exports.WINDOWS_JOB_OBJECT_ERROR_MARKER = WINDOWS_JOB_OBJECT_ERROR_MARKER; exports.WebSocketConnectionError = _chunkC3KHERVHjs.WebSocketConnectionError; exports.WebSocketDaemonTransport = _chunkC3KHERVHjs.WebSocketDaemonTransport; exports.WorkerCompletedEntrySchema = _chunkC3KHERVHjs.WorkerCompletedEntrySchema; exports.WorkerFailedEntrySchema = _chunkC3KHERVHjs.WorkerFailedEntrySchema; exports.WorkerPausedEntrySchema = _chunkC3KHERVHjs.WorkerPausedEntrySchema; exports.WorkerSelectedFeatureEntrySchema = _chunkC3KHERVHjs.WorkerSelectedFeatureEntrySchema; exports.WorkerStartedEntrySchema = _chunkC3KHERVHjs.WorkerStartedEntrySchema; exports.WorkerStateInfoSchema = _chunkC3KHERVHjs.WorkerStateInfoSchema; exports.__resetTransportLoggerForTests = __resetTransportLoggerForTests; exports.buildUserMessageContentBlocks = _chunkC3KHERVHjs.buildUserMessageContentBlocks; exports.configureDaemonCoreDeps = _chunkC3KHERVHjs.configureDaemonCoreDeps; exports.connectAndAuthenticate = _chunkC3KHERVHjs.connectAndAuthenticate; exports.connectToDaemon = _chunkC3KHERVHjs.connectToDaemon; exports.connectWithRetry = _chunkC3KHERVHjs.connectWithRetry; exports.convertNotificationToStreamMessage = _chunkC3KHERVHjs.convertNotificationToStreamMessage; exports.createComputer = _chunkC3KHERVHjs.createComputer; exports.createResponseSchema = _chunkC3KHERVHjs.createResponseSchema; exports.createSdkMcpServer = createSdkMcpServer; exports.createSession = createSession; exports.createWebSocketDaemonClient = _chunkC3KHERVHjs.createWebSocketDaemonClient; exports.defaultDaemonCoreDeps = _chunkC3KHERVHjs.defaultDaemonCoreDeps; exports.deleteComputer = _chunkC3KHERVHjs.deleteComputer; exports.filterMessagesForUI = _chunkC3KHERVHjs.filterMessagesForUI; exports.getComputer = _chunkC3KHERVHjs.getComputer; exports.getComputerByName = _chunkC3KHERVHjs.getComputerByName; exports.getComputerMetrics = _chunkC3KHERVHjs.getComputerMetrics; exports.getMachineTemplate = _chunkC3KHERVHjs.getMachineTemplate; exports.getPermissionToolInputForDisplay = _chunkC3KHERVHjs.getPermissionToolInputForDisplay; exports.getQueuedUserMessageDisplayGroup = _chunkC3KHERVHjs.getQueuedUserMessageDisplayGroup; exports.getQueuedUserMessageReviewPriority = _chunkC3KHERVHjs.getQueuedUserMessageReviewPriority; exports.getSubagentCallingMetadata = _chunkC3KHERVHjs.getSubagentCallingMetadata; exports.getToolResultBlocks = _chunkC3KHERVHjs.getToolResultBlocks; exports.getToolResultToolUseId = _chunkC3KHERVHjs.getToolResultToolUseId; exports.hasDecoupledInteractionSettings = _chunkC3KHERVHjs.hasDecoupledInteractionSettings; exports.hasSubagentSessionTag = _chunkC3KHERVHjs.hasSubagentSessionTag; exports.inspectJsonRpcEnvelope = _chunkC3KHERVHjs.inspectJsonRpcEnvelope; exports.isDaemonQueuedMessageKind = _chunkC3KHERVHjs.isDaemonQueuedMessageKind; exports.isPendingToolResultMarker = _chunkC3KHERVHjs.isPendingToolResultMarker; exports.isPersistedHookMessage = _chunkC3KHERVHjs.isPersistedHookMessage; exports.isReviewableQueuedMessageKind = _chunkC3KHERVHjs.isReviewableQueuedMessageKind; exports.isTransportLoggingEnabled = isTransportLoggingEnabled; exports.listComputers = _chunkC3KHERVHjs.listComputers; exports.listMachineTemplates = _chunkC3KHERVHjs.listMachineTemplates; exports.listRemoteSessions = _chunkC3KHERVHjs.listRemoteSessions; exports.listSessions = listSessions; exports.logTransportMessage = logTransportMessage; exports.machineTypeToMachineConnectionType = _chunkC3KHERVHjs.machineTypeToMachineConnectionType; exports.noopLogger = noopLogger; exports.orderMessagesByParentChain = _chunkC3KHERVHjs.orderMessagesByParentChain; exports.recordComputerConnectSli = _chunkC3KHERVHjs.recordComputerConnectSli; exports.refreshComputer = _chunkC3KHERVHjs.refreshComputer; exports.repairParentChainCorruption = _chunkC3KHERVHjs.repairParentChainCorruption; exports.resolveExecCoreDeps = resolveExecCoreDeps; exports.restartComputer = _chunkC3KHERVHjs.restartComputer; exports.resumeSession = resumeSession; exports.retryInstallDeps = _chunkC3KHERVHjs.retryInstallDeps; exports.retryWithLogger = _chunkC3KHERVHjs.retryWithLogger; exports.run = run; exports.spawnWithWindowsJobObjectRetry = spawnWithWindowsJobObjectRetry; exports.sumTokenUsage = _chunkC3KHERVHjs.sumTokenUsage; exports.summarizeSessionToolUsage = _chunkC3KHERVHjs.summarizeSessionToolUsage; exports.toError = _chunkC3KHERVHjs.toError; exports.tool = tool; exports.updateComputer = _chunkC3KHERVHjs.updateComputer;
4742
+ exports.AbortError = _chunkFJP5OKS5js.AbortError; exports.AddMcpServerRequestParamsSchema = _chunkFJP5OKS5js.AddMcpServerRequestParamsSchema; exports.AddMcpServerRequestSchema = _chunkFJP5OKS5js.AddMcpServerRequestSchema; exports.AddMcpServerResponseSchema = _chunkFJP5OKS5js.AddMcpServerResponseSchema; exports.AddMcpServerResultSchema = _chunkFJP5OKS5js.AddMcpServerResultSchema; exports.AddUserMessageRequestParamsSchema = _chunkFJP5OKS5js.AddUserMessageRequestParamsSchema; exports.AddUserMessageRequestSchema = _chunkFJP5OKS5js.AddUserMessageRequestSchema; exports.AddUserMessageResponseSchema = _chunkFJP5OKS5js.AddUserMessageResponseSchema; exports.AddUserMessageResultSchema = _chunkFJP5OKS5js.AddUserMessageResultSchema; exports.ApplyPatchToolConfirmationDetailsSchema = _chunkFJP5OKS5js.ApplyPatchToolConfirmationDetailsSchema; exports.AskUserCollectedAnswerSchema = _chunkFJP5OKS5js.AskUserCollectedAnswerSchema; exports.AskUserConfirmationDetailsSchema = _chunkFJP5OKS5js.AskUserConfirmationDetailsSchema; exports.AskUserQuestionSchema = _chunkFJP5OKS5js.AskUserQuestionSchema; exports.AskUserRequestParamsSchema = _chunkFJP5OKS5js.AskUserRequestParamsSchema; exports.AskUserRequestSchema = _chunkFJP5OKS5js.AskUserRequestSchema; exports.AskUserResponseSchema = _chunkFJP5OKS5js.AskUserResponseSchema; exports.AskUserResultSchema = _chunkFJP5OKS5js.AskUserResultSchema; exports.AssistantTextCompleteNotificationSchema = _chunkFJP5OKS5js.AssistantTextCompleteNotificationSchema; exports.AssistantTextDeltaNotificationSchema = _chunkFJP5OKS5js.AssistantTextDeltaNotificationSchema; exports.AuthenticateMcpServerRequestParamsSchema = _chunkFJP5OKS5js.AuthenticateMcpServerRequestParamsSchema; exports.AuthenticateMcpServerRequestSchema = _chunkFJP5OKS5js.AuthenticateMcpServerRequestSchema; exports.AuthenticateMcpServerResponseSchema = _chunkFJP5OKS5js.AuthenticateMcpServerResponseSchema; exports.AuthenticateMcpServerResultSchema = _chunkFJP5OKS5js.AuthenticateMcpServerResultSchema; exports.AutonomyLevel = _chunkFJP5OKS5js.AutonomyLevel; exports.AvailableModelConfigSchema = _chunkFJP5OKS5js.AvailableModelConfigSchema; exports.Base64ImageSourceSchema = _chunkFJP5OKS5js.Base64ImageSourceSchema; exports.BaseNotificationSchema = _chunkFJP5OKS5js.BaseNotificationSchema; exports.BaseRequestSchema = _chunkFJP5OKS5js.BaseRequestSchema; exports.BaseResponseFailureSchema = _chunkFJP5OKS5js.BaseResponseFailureSchema; exports.BaseResponseSuccessSchema = _chunkFJP5OKS5js.BaseResponseSuccessSchema; exports.CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC = CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC; exports.COMPACTION_TIMEOUT = _chunkFJP5OKS5js.COMPACTION_TIMEOUT; exports.CancelMcpAuthRequestParamsSchema = _chunkFJP5OKS5js.CancelMcpAuthRequestParamsSchema; exports.CancelMcpAuthRequestSchema = _chunkFJP5OKS5js.CancelMcpAuthRequestSchema; exports.CancelMcpAuthResponseSchema = _chunkFJP5OKS5js.CancelMcpAuthResponseSchema; exports.CancelMcpAuthResultSchema = _chunkFJP5OKS5js.CancelMcpAuthResultSchema; exports.ChangeWorkingDirectoryRequestParamsSchema = _chunkFJP5OKS5js.ChangeWorkingDirectoryRequestParamsSchema; exports.ChangeWorkingDirectoryRequestSchema = _chunkFJP5OKS5js.ChangeWorkingDirectoryRequestSchema; exports.ChangeWorkingDirectoryResponseSchema = _chunkFJP5OKS5js.ChangeWorkingDirectoryResponseSchema; exports.ChangeWorkingDirectoryResultSchema = _chunkFJP5OKS5js.ChangeWorkingDirectoryResultSchema; exports.ClearMcpAuthRequestParamsSchema = _chunkFJP5OKS5js.ClearMcpAuthRequestParamsSchema; exports.ClearMcpAuthRequestSchema = _chunkFJP5OKS5js.ClearMcpAuthRequestSchema; exports.ClearMcpAuthResponseSchema = _chunkFJP5OKS5js.ClearMcpAuthResponseSchema; exports.ClearMcpAuthResultSchema = _chunkFJP5OKS5js.ClearMcpAuthResultSchema; exports.CliRequestOrNotificationSchema = _chunkFJP5OKS5js.CliRequestOrNotificationSchema; exports.ClientDestroyedError = _chunkFJP5OKS5js.ClientDestroyedError; exports.ClientRequestSchema = _chunkFJP5OKS5js.ClientRequestSchema; exports.ClientUiSurface = _chunkFJP5OKS5js.ClientUiSurface; exports.CloseSessionRequestParamsSchema = _chunkFJP5OKS5js.CloseSessionRequestParamsSchema; exports.CloseSessionRequestSchema = _chunkFJP5OKS5js.CloseSessionRequestSchema; exports.CloseSessionResponseSchema = _chunkFJP5OKS5js.CloseSessionResponseSchema; exports.CloseSessionResultSchema = _chunkFJP5OKS5js.CloseSessionResultSchema; exports.CompactSessionRequestParamsSchema = _chunkFJP5OKS5js.CompactSessionRequestParamsSchema; exports.CompactSessionRequestSchema = _chunkFJP5OKS5js.CompactSessionRequestSchema; exports.CompactSessionResponseSchema = _chunkFJP5OKS5js.CompactSessionResponseSchema; exports.CompactSessionResultSchema = _chunkFJP5OKS5js.CompactSessionResultSchema; exports.ComputeLimitExceededError = _chunkFJP5OKS5js.ComputeLimitExceededError; exports.ComputerConnectAttemptTrigger = _chunkFJP5OKS5js.ComputerConnectAttemptTrigger; exports.ComputerConnectStartType = _chunkFJP5OKS5js.ComputerConnectStartType; exports.ComputerListResponseSchema = _chunkFJP5OKS5js.ComputerListResponseSchema; exports.ComputerMetricSchema = _chunkFJP5OKS5js.ComputerMetricSchema; exports.ComputerMetricsResponseSchema = _chunkFJP5OKS5js.ComputerMetricsResponseSchema; exports.ComputerSchema = _chunkFJP5OKS5js.ComputerSchema; exports.ConcurrentStreamError = _chunkFJP5OKS5js.ConcurrentStreamError; exports.ConnectionClosedError = _chunkFJP5OKS5js.ConnectionClosedError; exports.ConnectionError = _chunkFJP5OKS5js.ConnectionError; exports.ConnectionFailureReason = _chunkFJP5OKS5js.ConnectionFailureReason; exports.ContentBlockSchema = _chunkFJP5OKS5js.ContentBlockSchema; exports.ContextBreakdownCategorySchema = _chunkFJP5OKS5js.ContextBreakdownCategorySchema; exports.ContextBreakdownResultSchema = _chunkFJP5OKS5js.GetContextBreakdownResultSchema; exports.ContextStatsAccuracy = _chunkFJP5OKS5js.ContextStatsAccuracy; exports.ContextStatsSchema = _chunkFJP5OKS5js.ContextStatsSchema; exports.CreateMessageNotificationSchema = _chunkFJP5OKS5js.CreateMessageNotificationSchema; exports.CreateToolConfirmationDetailsSchema = _chunkFJP5OKS5js.CreateToolConfirmationDetailsSchema; exports.DEFAULT_LOCAL_DAEMON_WS_URL = _chunkFJP5OKS5js.DEFAULT_LOCAL_DAEMON_WS_URL; exports.DEFAULT_REQUEST_TIMEOUT = _chunkFJP5OKS5js.DEFAULT_REQUEST_TIMEOUT; exports.DaemonAuthenticationMode = _chunkFJP5OKS5js.DaemonAuthenticationMode; exports.DaemonClient = _chunkFJP5OKS5js.DaemonClient; exports.DaemonClientMetaError = _chunkFJP5OKS5js.MetaError; exports.DaemonDroidEvent = _chunkFJP5OKS5js.DaemonDroidEvent; exports.DaemonRequestPermissionSchema = _chunkFJP5OKS5js.DaemonRequestPermissionSchema; exports.DaemonSessionController = _chunkFJP5OKS5js.DaemonSessionController; exports.DecompSessionType = _chunkFJP5OKS5js.DecompSessionType; exports.DiscoveredIssueSchema = _chunkFJP5OKS5js.DiscoveredIssueSchema; exports.DismissalRecordSchema = _chunkFJP5OKS5js.DismissalRecordSchema; exports.DismissalType = _chunkFJP5OKS5js.DismissalType; exports.DocumentBlockSchema = _chunkFJP5OKS5js.DocumentBlockSchema; exports.DocumentSourceSchema = _chunkFJP5OKS5js.DocumentSourceSchema; exports.DroidClient = DroidClient; exports.DroidClientError = _chunkFJP5OKS5js.DroidClientError; exports.DroidClientEvent = DroidClientEvent; exports.DroidClientMethod = _chunkFJP5OKS5js.DroidClientMethod; exports.DroidErrorType = _chunkFJP5OKS5js.DroidErrorType; exports.DroidEvent = _chunkFJP5OKS5js.DroidEvent; exports.DroidHookEventSchema = _chunkFJP5OKS5js.DroidHookEventSchema; exports.DroidHookExecutionResultSchema = _chunkFJP5OKS5js.DroidHookExecutionResultSchema; exports.DroidHookOutputSchema = _chunkFJP5OKS5js.DroidHookOutputSchema; exports.DroidHookSpecificOutputSchema = _chunkFJP5OKS5js.DroidHookSpecificOutputSchema; exports.DroidInteractionMode = _chunkFJP5OKS5js.DroidInteractionMode; exports.DroidMessageType = _chunkFJP5OKS5js.DroidMessageType; exports.DroidProcessManager = DroidProcessManager; exports.DroidProcessMode = DroidProcessMode; exports.DroidServerMethod = _chunkFJP5OKS5js.DroidServerMethod; exports.DroidSession = DroidSession; exports.DroidWorkingState = _chunkFJP5OKS5js.DroidWorkingState; exports.DroidWorkingStateChangedNotificationSchema = _chunkFJP5OKS5js.DroidWorkingStateChangedNotificationSchema; exports.EditToolConfirmationDetailsSchema = _chunkFJP5OKS5js.EditToolConfirmationDetailsSchema; exports.EmptyResultSchema = _chunkFJP5OKS5js.EmptyResultSchema; exports.ErrorDetailSchema = _chunkFJP5OKS5js.ErrorDetailSchema; exports.ErrorNotificationSchema = _chunkFJP5OKS5js.ErrorNotificationSchema; exports.ExecToolInfoSchema = _chunkFJP5OKS5js.ExecToolInfoSchema; exports.ExecuteRewindRequestParamsSchema = _chunkFJP5OKS5js.ExecuteRewindRequestParamsSchema; exports.ExecuteRewindRequestSchema = _chunkFJP5OKS5js.ExecuteRewindRequestSchema; exports.ExecuteRewindResponseSchema = _chunkFJP5OKS5js.ExecuteRewindResponseSchema; exports.ExecuteRewindResultSchema = _chunkFJP5OKS5js.ExecuteRewindResultSchema; exports.ExecuteToolConfirmationDetailsSchema = _chunkFJP5OKS5js.ExecuteToolConfirmationDetailsSchema; exports.ExitSpecModeConfirmationDetailsSchema = _chunkFJP5OKS5js.ExitSpecModeConfirmationDetailsSchema; exports.FACTORY_CLIENT_HEADER = _chunkFJP5OKS5js.FACTORY_CLIENT_HEADER; exports.FACTORY_CLIENT_VERSION = _chunkFJP5OKS5js.FACTORY_CLIENT_VERSION; exports.FACTORY_PROTOCOL_VERSION = _chunkFJP5OKS5js.FACTORY_PROTOCOL_VERSION2; exports.FactoryDaemonTransport = _chunkFJP5OKS5js.FactoryDaemonTransport; exports.FactoryDroidMessageRole = _chunkFJP5OKS5js.FactoryDroidMessageRole; exports.FactoryDroidMessageSchema = _chunkFJP5OKS5js.FactoryDroidMessageSchema; exports.FeatureStatus = _chunkFJP5OKS5js.FeatureStatus; exports.FeatureSuccessState = _chunkFJP5OKS5js.FeatureSuccessState; exports.FeatureSuccessStateSchema = _chunkFJP5OKS5js.FeatureSuccessStateSchema; exports.ForkSessionRequestParamsSchema = _chunkFJP5OKS5js.ForkSessionRequestParamsSchema; exports.ForkSessionRequestSchema = _chunkFJP5OKS5js.ForkSessionRequestSchema; exports.ForkSessionResponseSchema = _chunkFJP5OKS5js.ForkSessionResponseSchema; exports.ForkSessionResultSchema = _chunkFJP5OKS5js.ForkSessionResultSchema; exports.GetContextStatsRequestParamsSchema = _chunkFJP5OKS5js.GetContextStatsRequestParamsSchema; exports.GetContextStatsRequestSchema = _chunkFJP5OKS5js.GetContextStatsRequestSchema; exports.GetContextStatsResponseSchema = _chunkFJP5OKS5js.GetContextStatsResponseSchema; exports.GetContextStatsResultSchema = _chunkFJP5OKS5js.ContextStatsSchema; exports.GetRewindInfoRequestParamsSchema = _chunkFJP5OKS5js.GetRewindInfoRequestParamsSchema; exports.GetRewindInfoRequestSchema = _chunkFJP5OKS5js.GetRewindInfoRequestSchema; exports.GetRewindInfoResponseSchema = _chunkFJP5OKS5js.GetRewindInfoResponseSchema; exports.GetRewindInfoResultSchema = _chunkFJP5OKS5js.GetRewindInfoResultSchema; exports.GitRepoInfoSchema = _chunkFJP5OKS5js.GitRepoInfoSchema; exports.HandoffItemsDismissedEntrySchema = _chunkFJP5OKS5js.HandoffItemsDismissedEntrySchema; exports.HandoffSchema = _chunkFJP5OKS5js.HandoffSchema; exports.HookCommandSchema = _chunkFJP5OKS5js.HookCommandSchema; exports.HookExecutionCompletedNotificationSchema = _chunkFJP5OKS5js.HookExecutionCompletedNotificationSchema; exports.HookExecutionStartedNotificationSchema = _chunkFJP5OKS5js.HookExecutionStartedNotificationSchema; exports.HookResultSchema = _chunkFJP5OKS5js.HookResultSchema; exports.HttpHeaderSchema = _chunkFJP5OKS5js.HttpHeaderSchema; exports.HttpMcpConfigSchema = _chunkFJP5OKS5js.HttpMcpSchema; exports.IPC_DAEMON_URL = _chunkFJP5OKS5js.IPC_DAEMON_URL; exports.ImageBlockSchema = _chunkFJP5OKS5js.ImageBlockSchema; exports.InProcessDaemonClientTransport = _chunkFJP5OKS5js.InProcessDaemonClientTransport; exports.InitializeSessionRequestParamsSchema = _chunkFJP5OKS5js.InitializeSessionRequestParamsSchema; exports.InitializeSessionRequestSchema = _chunkFJP5OKS5js.InitializeSessionRequestSchema; exports.InitializeSessionResponseSchema = _chunkFJP5OKS5js.InitializeSessionResponseSchema; exports.InitializeSessionResultSchema = _chunkFJP5OKS5js.InitializeSessionResultSchema2; exports.InteractiveCheckSchema = _chunkFJP5OKS5js.InteractiveCheckSchema; exports.InterruptSessionRequestParamsSchema = _chunkFJP5OKS5js.InterruptSessionRequestParamsSchema; exports.InterruptSessionRequestSchema = _chunkFJP5OKS5js.InterruptSessionRequestSchema; exports.InterruptSessionResponseSchema = _chunkFJP5OKS5js.InterruptSessionResponseSchema; exports.InterruptSessionResultSchema = _chunkFJP5OKS5js.InterruptSessionResultSchema; exports.InvalidSessionCwdError = _chunkFJP5OKS5js.InvalidSessionCwdError; exports.IpcDaemonClientTransport = _chunkFJP5OKS5js.IpcDaemonClientTransport; exports.IssueSeverity = _chunkFJP5OKS5js.IssueSeverity; exports.JSONRPC_VERSION = _chunkFJP5OKS5js.JSONRPC_VERSION3; exports.JsonArraySchema = _chunkFJP5OKS5js.JsonArraySchema; exports.JsonObjectSchema = _chunkFJP5OKS5js.JsonObjectSchema; exports.JsonRpcEnvelopeSchema = _chunkFJP5OKS5js.JsonRpcEnvelopeSchema; exports.JsonRpcErrorCode = _chunkFJP5OKS5js.JsonRpcErrorCode; exports.JsonRpcErrorSchema = _chunkFJP5OKS5js.JsonRpcErrorSchema; exports.JsonRpcMessageSchema = _chunkFJP5OKS5js.JsonRpcMessageSchema; exports.JsonRpcMessageType = _chunkFJP5OKS5js.JsonRpcMessageType; exports.JsonRpcNotificationSchema = _chunkFJP5OKS5js.JsonRpcNotificationSchema; exports.JsonRpcRequestError = _chunkFJP5OKS5js.JsonRpcRequestError; exports.JsonRpcRequestSchema = _chunkFJP5OKS5js.JsonRpcRequestSchema; exports.JsonRpcResponseFailureSchema = _chunkFJP5OKS5js.JsonRpcResponseFailureSchema; exports.JsonRpcResponseSchema = _chunkFJP5OKS5js.JsonRpcResponseSchema; exports.JsonRpcResponseSuccessSchema = _chunkFJP5OKS5js.JsonRpcResponseSuccessSchema; exports.JsonValueSchema = _chunkFJP5OKS5js.JsonValueSchema; exports.KillWorkerSessionRequestParamsSchema = _chunkFJP5OKS5js.KillWorkerSessionRequestParamsSchema; exports.KillWorkerSessionRequestSchema = _chunkFJP5OKS5js.KillWorkerSessionRequestSchema; exports.KillWorkerSessionResponseSchema = _chunkFJP5OKS5js.KillWorkerSessionResponseSchema; exports.KillWorkerSessionResultSchema = _chunkFJP5OKS5js.KillWorkerSessionResultSchema; exports.LEGACY_FACTORY_API_VERSION = _chunkFJP5OKS5js.LEGACY_FACTORY_API_VERSION2; exports.LOCAL_MACHINE_ID = _chunkFJP5OKS5js.LOCAL_MACHINE_ID; exports.ListMcpRegistryRequestParamsSchema = _chunkFJP5OKS5js.ListMcpRegistryRequestParamsSchema; exports.ListMcpRegistryRequestSchema = _chunkFJP5OKS5js.ListMcpRegistryRequestSchema; exports.ListMcpRegistryResponseSchema = _chunkFJP5OKS5js.ListMcpRegistryResponseSchema; exports.ListMcpRegistryResultSchema = _chunkFJP5OKS5js.ListMcpRegistryResultSchema; exports.ListMcpServersRequestParamsSchema = _chunkFJP5OKS5js.ListMcpServersRequestParamsSchema; exports.ListMcpServersRequestSchema = _chunkFJP5OKS5js.ListMcpServersRequestSchema; exports.ListMcpServersResponseSchema = _chunkFJP5OKS5js.ListMcpServersResponseSchema; exports.ListMcpServersResultSchema = _chunkFJP5OKS5js.ListMcpServersResultSchema; exports.ListMcpToolsRequestParamsSchema = _chunkFJP5OKS5js.ListMcpToolsRequestParamsSchema; exports.ListMcpToolsRequestSchema = _chunkFJP5OKS5js.ListMcpToolsRequestSchema; exports.ListMcpToolsResponseSchema = _chunkFJP5OKS5js.ListMcpToolsResponseSchema; exports.ListMcpToolsResultSchema = _chunkFJP5OKS5js.ListMcpToolsResultSchema; exports.ListModelsOptionsSchema = _chunkFJP5OKS5js.ListModelsOptionsSchema; exports.ListModelsResultSchema = _chunkFJP5OKS5js.ListModelsResultSchema; exports.ListSkillsRequestParamsSchema = _chunkFJP5OKS5js.ListSkillsRequestParamsSchema; exports.ListSkillsRequestSchema = _chunkFJP5OKS5js.ListSkillsRequestSchema; exports.ListSkillsResponseSchema = _chunkFJP5OKS5js.ListSkillsResponseSchema; exports.ListSkillsResultSchema = _chunkFJP5OKS5js.ListSkillsResultSchema; exports.ListToolsRequestParamsSchema = _chunkFJP5OKS5js.ListToolsRequestParamsSchema; exports.ListToolsRequestSchema = _chunkFJP5OKS5js.ListToolsRequestSchema; exports.ListToolsResponseSchema = _chunkFJP5OKS5js.ListToolsResponseSchema; exports.ListToolsResultSchema = _chunkFJP5OKS5js.ListToolsResultSchema; exports.LoadSessionRequestParamsSchema = _chunkFJP5OKS5js.LoadSessionRequestParamsSchema; exports.LoadSessionRequestSchema = _chunkFJP5OKS5js.LoadSessionRequestSchema; exports.LoadSessionResponseSchema = _chunkFJP5OKS5js.LoadSessionResponseSchema; exports.LoadSessionResultSchema = _chunkFJP5OKS5js.LoadSessionResultSchema; exports.MACHINE_TYPE_WEBSOCKET_OVERRIDES = _chunkFJP5OKS5js.MACHINE_TYPE_WEBSOCKET_OVERRIDES; exports.MANAGED_COMPUTER_MAX_RETRIES = _chunkFJP5OKS5js.MANAGED_COMPUTER_MAX_RETRIES; exports.MCP_AUTH_TIMEOUT = _chunkFJP5OKS5js.MCP_AUTH_TIMEOUT; exports.MachineTemplateBuildStatusSchema = _chunkFJP5OKS5js.MachineTemplateBuildStatusSchema; exports.MachineTemplateListResponseSchema = _chunkFJP5OKS5js.MachineTemplateListResponseSchema; exports.MachineTemplateSchema = _chunkFJP5OKS5js.MachineTemplateSchema; exports.MachineType = _chunkFJP5OKS5js.MachineType; exports.ManagedProcessImpl = ManagedProcessImpl; exports.McpAuthCompletedNotificationSchema = _chunkFJP5OKS5js.McpAuthCompletedNotificationSchema; exports.McpAuthOutcome = _chunkFJP5OKS5js.McpAuthOutcome; exports.McpAuthRequiredNotificationSchema = _chunkFJP5OKS5js.McpAuthRequiredNotificationSchema; exports.McpHttpServerConfigFieldsSchema = _chunkFJP5OKS5js.McpHttpServerConfigFieldsSchema; exports.McpRegistryServerSchema = _chunkFJP5OKS5js.McpRegistryServerSchema; exports.McpServerConfigSchema = _chunkFJP5OKS5js.McpServerConfigSchema; exports.McpServerStatus = _chunkFJP5OKS5js.McpServerStatus; exports.McpServerStatusInfoSchema = _chunkFJP5OKS5js.McpServerStatusInfoSchema; exports.McpServerType = _chunkFJP5OKS5js.McpServerType; exports.McpSseServerConfigFieldsSchema = _chunkFJP5OKS5js.McpSseServerConfigFieldsSchema; exports.McpStatus = _chunkFJP5OKS5js.McpStatus; exports.McpStatusChangedNotificationSchema = _chunkFJP5OKS5js.McpStatusChangedNotificationSchema; exports.McpStatusSummarySchema = _chunkFJP5OKS5js.McpStatusSummarySchema; exports.McpStdioServerConfigFieldsSchema = _chunkFJP5OKS5js.McpStdioServerConfigFieldsSchema; exports.McpToolConfirmationDetailsSchema = _chunkFJP5OKS5js.McpToolConfirmationDetailsSchema; exports.McpToolInfoSchema = _chunkFJP5OKS5js.McpToolInfoSchema; exports.McpToolInputSchemaSchema = _chunkFJP5OKS5js.McpToolInputSchemaSchema; exports.MessageVisibility = _chunkFJP5OKS5js.MessageVisibility; exports.Metric = _chunkFJP5OKS5js.Metric; exports.MilestoneValidationTriggeredEntrySchema = _chunkFJP5OKS5js.MilestoneValidationTriggeredEntrySchema; exports.MissionAcceptedEntrySchema = _chunkFJP5OKS5js.MissionAcceptedEntrySchema; exports.MissionFeatureSchema = _chunkFJP5OKS5js.MissionFeatureSchema; exports.MissionFeaturesChangedNotificationSchema = _chunkFJP5OKS5js.MissionFeaturesChangedNotificationSchema; exports.MissionHeartbeatNotificationSchema = _chunkFJP5OKS5js.MissionHeartbeatNotificationSchema; exports.MissionPausedEntrySchema = _chunkFJP5OKS5js.MissionPausedEntrySchema; exports.MissionProgressEntryNotificationSchema = _chunkFJP5OKS5js.MissionProgressEntryNotificationSchema; exports.MissionResumedEntrySchema = _chunkFJP5OKS5js.MissionResumedEntrySchema; exports.MissionRunStartedEntrySchema = _chunkFJP5OKS5js.MissionRunStartedEntrySchema; exports.MissionSnapshotSchema = _chunkFJP5OKS5js.MissionStateSchema; exports.MissionState = _chunkFJP5OKS5js.MissionState; exports.MissionStateChangedNotificationSchema = _chunkFJP5OKS5js.MissionStateChangedNotificationSchema; exports.MissionWorkerCompletedNotificationSchema = _chunkFJP5OKS5js.MissionWorkerCompletedNotificationSchema; exports.MissionWorkerStartedNotificationSchema = _chunkFJP5OKS5js.MissionWorkerStartedNotificationSchema; exports.ModelInfoSchema = _chunkFJP5OKS5js.ModelInfoSchema; exports.ModelMetadataSchema = _chunkFJP5OKS5js.ModelMetadataSchema; exports.ModelProvider = _chunkFJP5OKS5js.ModelProvider; exports.MultiMissionStateManager = _chunkFJP5OKS5js.MultiMissionStateManager; exports.MultiSessionStateManager = _chunkFJP5OKS5js.MultiSessionStateManager; exports.OtelTracing = _chunkFJP5OKS5js.OtelTracing; exports.OutputFormatSchema = _chunkFJP5OKS5js.OutputFormatSchema; exports.OutputFormatType = _chunkFJP5OKS5js.OutputFormatType; exports.PermissionResolvedNotificationSchema = _chunkFJP5OKS5js.PermissionResolvedNotificationSchema; exports.ProcessExitError = _chunkFJP5OKS5js.ProcessExitError; exports.ProcessTransport = ProcessTransport; exports.ProgressLogEntrySchema = _chunkFJP5OKS5js.ProgressLogEntrySchema; exports.ProgressLogEntryType = _chunkFJP5OKS5js.ProgressLogEntryType; exports.ProposeMissionConfirmationDetailsSchema = _chunkFJP5OKS5js.ProposeMissionConfirmationDetailsSchema; exports.ProtocolError = _chunkFJP5OKS5js.ProtocolError; exports.QueuedUserMessageDisplayGroup = _chunkFJP5OKS5js.QueuedUserMessageDisplayGroup; exports.QueuedUserMessageKind = _chunkFJP5OKS5js.QueuedUserMessageKind; exports.REWIND_TIMEOUT = _chunkFJP5OKS5js.REWIND_TIMEOUT; exports.ReasoningEffort = _chunkFJP5OKS5js.ReasoningEffort; exports.RedactedThinkingBlockSchema = _chunkFJP5OKS5js.RedactedThinkingBlockSchema; exports.RefreshComputerResponseSchema = _chunkFJP5OKS5js.RefreshComputerResponseSchema; exports.RelayConnectionError = _chunkFJP5OKS5js.RelayConnectionError; exports.RemoteSessionListResponseSchema = _chunkFJP5OKS5js.RemoteSessionListResponseSchema; exports.RemoteSessionSchema = _chunkFJP5OKS5js.RemoteSessionSchema; exports.RemoveMcpServerRequestParamsSchema = _chunkFJP5OKS5js.RemoveMcpServerRequestParamsSchema; exports.RemoveMcpServerRequestSchema = _chunkFJP5OKS5js.RemoveMcpServerRequestSchema; exports.RemoveMcpServerResponseSchema = _chunkFJP5OKS5js.RemoveMcpServerResponseSchema; exports.RemoveMcpServerResultSchema = _chunkFJP5OKS5js.RemoveMcpServerResultSchema; exports.RenameSessionRequestParamsSchema = _chunkFJP5OKS5js.RenameSessionRequestParamsSchema; exports.RenameSessionRequestSchema = _chunkFJP5OKS5js.RenameSessionRequestSchema; exports.RenameSessionResponseSchema = _chunkFJP5OKS5js.RenameSessionResponseSchema; exports.RenameSessionResultSchema = _chunkFJP5OKS5js.RenameSessionResultSchema; exports.RequestPermissionRequestParamsSchema = _chunkFJP5OKS5js.RequestPermissionRequestParamsSchema; exports.RequestPermissionRequestSchema = _chunkFJP5OKS5js.RequestPermissionRequestSchema; exports.RequestPermissionResponseSchema = _chunkFJP5OKS5js.RequestPermissionResponseSchema; exports.RequestPermissionResultSchema = _chunkFJP5OKS5js.RequestPermissionResultSchema; exports.RewindEvictedFileSchema = _chunkFJP5OKS5js.RewindEvictedFileSchema; exports.RewindFileCreationSchema = _chunkFJP5OKS5js.RewindFileCreationSchema; exports.RewindFileSnapshotSchema = _chunkFJP5OKS5js.RewindFileSnapshotSchema; exports.SDK_TAG = _chunkFJP5OKS5js.SDK_TAG; exports.SDK_VERSION = _chunkFJP5OKS5js.SDK_VERSION; exports.SESSION_INIT_TIMEOUT = _chunkFJP5OKS5js.SESSION_INIT_TIMEOUT; exports.SLACK_DELEGATION_MAX_RETRIES = _chunkFJP5OKS5js.SLACK_DELEGATION_MAX_RETRIES; exports.SdkMcpServer = SdkMcpServer; exports.ServerRequestHandlerType = _chunkFJP5OKS5js.ServerRequestHandlerType; exports.SessionError = _chunkFJP5OKS5js.SessionError; exports.SessionMetadataSchema = _chunkFJP5OKS5js.SessionMetadataSchema; exports.SessionNotFoundError = _chunkFJP5OKS5js.SessionNotFoundError; exports.SessionNotificationParamsSchema = _chunkFJP5OKS5js.SessionNotificationParamsSchema; exports.SessionNotificationPayloadSchema = _chunkFJP5OKS5js.SessionNotificationPayloadSchema; exports.SessionNotificationSchema = _chunkFJP5OKS5js.SessionNotificationSchema; exports.SessionNotificationSchemaList = _chunkFJP5OKS5js.SessionNotificationSchemaList; exports.SessionNotificationType = _chunkFJP5OKS5js.SessionNotificationType; exports.SessionPlatform = _chunkFJP5OKS5js.SessionPlatform; exports.SessionReplacedError = _chunkFJP5OKS5js.SessionReplacedError; exports.SessionReplacementError = _chunkFJP5OKS5js.SessionReplacementError; exports.SessionSettingsFileSchema = _chunkFJP5OKS5js.SessionSettingsFileSchema; exports.SessionSettingsSchema = _chunkFJP5OKS5js.SessionSettingsSchema; exports.SessionSourceSchema = _chunkFJP5OKS5js.SessionSourceSchema; exports.SessionStartEventSchema = _chunkFJP5OKS5js.SessionStartEventSchema; exports.SessionTagSchema = _chunkFJP5OKS5js.SessionTagSchema; exports.SessionTitleUpdatedNotificationSchema = _chunkFJP5OKS5js.SessionTitleUpdatedNotificationSchema; exports.SessionTokenUsageChangedNotificationSchema = _chunkFJP5OKS5js.SessionTokenUsageChangedNotificationSchema; exports.SetSkillDisabledRequestParamsSchema = _chunkFJP5OKS5js.SetSkillDisabledRequestParamsSchema; exports.SetSkillDisabledRequestSchema = _chunkFJP5OKS5js.SetSkillDisabledRequestSchema; exports.SetSkillDisabledResponseSchema = _chunkFJP5OKS5js.SetSkillDisabledResponseSchema; exports.SetSkillDisabledResultSchema = _chunkFJP5OKS5js.SetSkillDisabledResultSchema; exports.SettingsLevel = _chunkFJP5OKS5js.SettingsLevel; exports.SettingsUpdatedNotificationSchema = _chunkFJP5OKS5js.SettingsUpdatedNotificationSchema; exports.SettingsUpdatedPayloadSchema = _chunkFJP5OKS5js.SettingsUpdatedPayloadSchema; exports.SkillDeviationSchema = _chunkFJP5OKS5js.SkillDeviationSchema; exports.SkillFeedbackSchema = _chunkFJP5OKS5js.SkillFeedbackSchema; exports.SkillInfoSchema = _chunkFJP5OKS5js.SkillInfoSchema; exports.SkillLocation = _chunkFJP5OKS5js.SkillLocation; exports.SkillResourceSchema = _chunkFJP5OKS5js.SkillResourceSchema; exports.SpanAttribute = _chunkFJP5OKS5js.SpanAttribute; exports.SpanEvent = _chunkFJP5OKS5js.SpanEvent; exports.SpanName = _chunkFJP5OKS5js.SpanName; exports.SseMcpConfigSchema = _chunkFJP5OKS5js.SseMcpSchema; exports.StartMissionRunConfirmationDetailsSchema = _chunkFJP5OKS5js.StartMissionRunConfirmationDetailsSchema; exports.StdioMcpConfigSchema = _chunkFJP5OKS5js.StdioMcpSchema; exports.StreamStateTracker = _chunkFJP5OKS5js.StreamStateTracker; exports.StructuredOutputErrorSchema = _chunkFJP5OKS5js.StructuredOutputErrorSchema; exports.StructuredOutputNotificationSchema = _chunkFJP5OKS5js.StructuredOutputNotificationSchema; exports.SubmitBugReportRequestParamsSchema = _chunkFJP5OKS5js.SubmitBugReportRequestParamsSchema; exports.SubmitBugReportRequestSchema = _chunkFJP5OKS5js.SubmitBugReportRequestSchema; exports.SubmitBugReportResponseSchema = _chunkFJP5OKS5js.SubmitBugReportResponseSchema; exports.SubmitBugReportResultSchema = _chunkFJP5OKS5js.SubmitBugReportResultSchema; exports.SubmitMcpAuthCodeRequestParamsSchema = _chunkFJP5OKS5js.SubmitMcpAuthCodeRequestParamsSchema; exports.SubmitMcpAuthCodeRequestSchema = _chunkFJP5OKS5js.SubmitMcpAuthCodeRequestSchema; exports.SubmitMcpAuthCodeResponseSchema = _chunkFJP5OKS5js.SubmitMcpAuthCodeResponseSchema; exports.SubmitMcpAuthCodeResultSchema = _chunkFJP5OKS5js.SubmitMcpAuthCodeResultSchema; exports.SuccessResultSchema = _chunkFJP5OKS5js.SuccessResultSchema; exports.TestCaseSchema = _chunkFJP5OKS5js.TestCaseSchema; exports.TestFileSchema = _chunkFJP5OKS5js.TestFileSchema; exports.TestsSchema = _chunkFJP5OKS5js.TestsSchema; exports.TextBlockSchema = _chunkFJP5OKS5js.TextBlockSchema; exports.ThinkingBlockSchema = _chunkFJP5OKS5js.ThinkingBlockSchema; exports.ThinkingTextCompleteNotificationSchema = _chunkFJP5OKS5js.ThinkingTextCompleteNotificationSchema; exports.ThinkingTextDeltaNotificationSchema = _chunkFJP5OKS5js.ThinkingTextDeltaNotificationSchema; exports.TimeoutError = _chunkFJP5OKS5js.TimeoutError; exports.ToggleMcpServerRequestParamsSchema = _chunkFJP5OKS5js.ToggleMcpServerRequestParamsSchema; exports.ToggleMcpServerRequestSchema = _chunkFJP5OKS5js.ToggleMcpServerRequestSchema; exports.ToggleMcpServerResponseSchema = _chunkFJP5OKS5js.ToggleMcpServerResponseSchema; exports.ToggleMcpServerResultSchema = _chunkFJP5OKS5js.ToggleMcpServerResultSchema; exports.ToggleMcpToolRequestParamsSchema = _chunkFJP5OKS5js.ToggleMcpToolRequestParamsSchema; exports.ToggleMcpToolRequestSchema = _chunkFJP5OKS5js.ToggleMcpToolRequestSchema; exports.ToggleMcpToolResponseSchema = _chunkFJP5OKS5js.ToggleMcpToolResponseSchema; exports.ToggleMcpToolResultSchema = _chunkFJP5OKS5js.ToggleMcpToolResultSchema; exports.TokenUsageSchema = _chunkFJP5OKS5js.TokenUsageSchema; exports.ToolCallNotificationSchema = _chunkFJP5OKS5js.ToolCallNotificationSchema; exports.ToolConfirmationDetailsSchema = _chunkFJP5OKS5js.ToolConfirmationDetailsSchema; exports.ToolConfirmationInfoSchema = _chunkFJP5OKS5js.ToolConfirmationInfoSchema; exports.ToolConfirmationListItemSchema = _chunkFJP5OKS5js.ToolConfirmationListItemSchema; exports.ToolConfirmationOutcome = _chunkFJP5OKS5js.ToolConfirmationOutcome; exports.ToolConfirmationType = _chunkFJP5OKS5js.ToolConfirmationType; exports.ToolProgressUpdateNotificationSchema = _chunkFJP5OKS5js.ToolProgressUpdateNotificationSchema; exports.ToolProgressUpdateSchema = _chunkFJP5OKS5js.ToolProgressUpdateSchema; exports.ToolResultBlockSchema = _chunkFJP5OKS5js.ToolResultSchema; exports.ToolResultNotificationSchema = _chunkFJP5OKS5js.ToolResultNotificationSchema; exports.ToolSelectionOverridesSchema = _chunkFJP5OKS5js.ToolSelectionOverridesSchema; exports.ToolUseBlockSchema = _chunkFJP5OKS5js.ToolUseSchema; exports.ToolUseSchema = _chunkFJP5OKS5js.ToolUseSchema2; exports.TraceContextMetaSchema = _chunkFJP5OKS5js.TraceContextMetaSchema; exports.TransportDirection = TransportDirection; exports.TunnelConnection = _chunkFJP5OKS5js.TunnelConnection; exports.UpdateSessionSettingsRequestParamsSchema = _chunkFJP5OKS5js.UpdateSessionSettingsRequestParamsSchema; exports.UpdateSessionSettingsRequestSchema = _chunkFJP5OKS5js.UpdateSessionSettingsRequestSchema; exports.UpdateSessionSettingsResponseSchema = _chunkFJP5OKS5js.UpdateSessionSettingsResponseSchema; exports.UpdateSessionSettingsResultSchema = _chunkFJP5OKS5js.UpdateSessionSettingsResultSchema; exports.VerificationCommandSchema = _chunkFJP5OKS5js.VerificationCommandSchema; exports.VerificationSchema = _chunkFJP5OKS5js.VerificationSchema; exports.WINDOWS_JOB_OBJECT_ERROR_MARKER = WINDOWS_JOB_OBJECT_ERROR_MARKER; exports.WebSocketConnectionError = _chunkFJP5OKS5js.WebSocketConnectionError; exports.WebSocketDaemonTransport = _chunkFJP5OKS5js.WebSocketDaemonTransport; exports.WorkerCompletedEntrySchema = _chunkFJP5OKS5js.WorkerCompletedEntrySchema; exports.WorkerFailedEntrySchema = _chunkFJP5OKS5js.WorkerFailedEntrySchema; exports.WorkerPausedEntrySchema = _chunkFJP5OKS5js.WorkerPausedEntrySchema; exports.WorkerSelectedFeatureEntrySchema = _chunkFJP5OKS5js.WorkerSelectedFeatureEntrySchema; exports.WorkerStartedEntrySchema = _chunkFJP5OKS5js.WorkerStartedEntrySchema; exports.WorkerStateInfoSchema = _chunkFJP5OKS5js.WorkerStateInfoSchema; exports.__resetTransportLoggerForTests = __resetTransportLoggerForTests; exports.buildUserMessageContentBlocks = _chunkFJP5OKS5js.buildUserMessageContentBlocks; exports.configureDaemonCoreDeps = _chunkFJP5OKS5js.configureDaemonCoreDeps; exports.connectAndAuthenticate = _chunkFJP5OKS5js.connectAndAuthenticate; exports.connectToDaemon = _chunkFJP5OKS5js.connectToDaemon; exports.connectWithRetry = _chunkFJP5OKS5js.connectWithRetry; exports.convertNotificationToStreamMessage = _chunkFJP5OKS5js.convertNotificationToStreamMessage; exports.createComputer = _chunkFJP5OKS5js.createComputer; exports.createResponseSchema = _chunkFJP5OKS5js.createResponseSchema; exports.createSdkMcpServer = createSdkMcpServer; exports.createSession = createSession; exports.createWebSocketDaemonClient = _chunkFJP5OKS5js.createWebSocketDaemonClient; exports.defaultDaemonCoreDeps = _chunkFJP5OKS5js.defaultDaemonCoreDeps; exports.deleteComputer = _chunkFJP5OKS5js.deleteComputer; exports.filterMessagesForUI = _chunkFJP5OKS5js.filterMessagesForUI; exports.getComputer = _chunkFJP5OKS5js.getComputer; exports.getComputerByName = _chunkFJP5OKS5js.getComputerByName; exports.getComputerMetrics = _chunkFJP5OKS5js.getComputerMetrics; exports.getMachineTemplate = _chunkFJP5OKS5js.getMachineTemplate; exports.getPermissionToolInputForDisplay = _chunkFJP5OKS5js.getPermissionToolInputForDisplay; exports.getQueuedUserMessageDisplayGroup = _chunkFJP5OKS5js.getQueuedUserMessageDisplayGroup; exports.getQueuedUserMessageReviewPriority = _chunkFJP5OKS5js.getQueuedUserMessageReviewPriority; exports.getSubagentCallingMetadata = _chunkFJP5OKS5js.getSubagentCallingMetadata; exports.getToolResultBlocks = _chunkFJP5OKS5js.getToolResultBlocks; exports.getToolResultToolUseId = _chunkFJP5OKS5js.getToolResultToolUseId; exports.hasDecoupledInteractionSettings = _chunkFJP5OKS5js.hasDecoupledInteractionSettings; exports.hasSubagentSessionTag = _chunkFJP5OKS5js.hasSubagentSessionTag; exports.inspectJsonRpcEnvelope = _chunkFJP5OKS5js.inspectJsonRpcEnvelope; exports.isDaemonQueuedMessageKind = _chunkFJP5OKS5js.isDaemonQueuedMessageKind; exports.isPendingToolResultMarker = _chunkFJP5OKS5js.isPendingToolResultMarker; exports.isPersistedHookMessage = _chunkFJP5OKS5js.isPersistedHookMessage; exports.isReviewableQueuedMessageKind = _chunkFJP5OKS5js.isReviewableQueuedMessageKind; exports.isTransportLoggingEnabled = isTransportLoggingEnabled; exports.listComputers = _chunkFJP5OKS5js.listComputers; exports.listMachineTemplates = _chunkFJP5OKS5js.listMachineTemplates; exports.listModels = listModels; exports.listRemoteSessions = _chunkFJP5OKS5js.listRemoteSessions; exports.listSessions = listSessions; exports.logTransportMessage = logTransportMessage; exports.machineTypeToMachineConnectionType = _chunkFJP5OKS5js.machineTypeToMachineConnectionType; exports.noopLogger = noopLogger; exports.orderMessagesByParentChain = _chunkFJP5OKS5js.orderMessagesByParentChain; exports.recordComputerConnectSli = _chunkFJP5OKS5js.recordComputerConnectSli; exports.refreshComputer = _chunkFJP5OKS5js.refreshComputer; exports.repairParentChainCorruption = _chunkFJP5OKS5js.repairParentChainCorruption; exports.resolveExecCoreDeps = resolveExecCoreDeps; exports.restartComputer = _chunkFJP5OKS5js.restartComputer; exports.resumeSession = resumeSession; exports.retryInstallDeps = _chunkFJP5OKS5js.retryInstallDeps; exports.retryWithLogger = _chunkFJP5OKS5js.retryWithLogger; exports.run = run; exports.spawnWithWindowsJobObjectRetry = spawnWithWindowsJobObjectRetry; exports.sumTokenUsage = _chunkFJP5OKS5js.sumTokenUsage; exports.summarizeSessionToolUsage = _chunkFJP5OKS5js.summarizeSessionToolUsage; exports.toError = _chunkFJP5OKS5js.toError; exports.tool = tool; exports.updateComputer = _chunkFJP5OKS5js.updateComputer;
4601
4743
  //# sourceMappingURL=node.js.map