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