@factory/droid-sdk 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{chunk-KXDG5ZWS.mjs → chunk-TWSTJMV7.mjs} +965 -684
- package/dist/chunk-TWSTJMV7.mjs.map +1 -0
- package/dist/{chunk-FJP5OKS5.js → chunk-YSKO6SPT.js} +1057 -776
- package/dist/chunk-YSKO6SPT.js.map +1 -0
- package/dist/{index-BowvC0_E.d.mts → index-C06W9tbN.d.mts} +1379 -828
- package/dist/{index-BowvC0_E.d.ts → index-C06W9tbN.d.ts} +1379 -828
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/node.d.mts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +350 -349
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +11 -10
- package/dist/node.mjs.map +1 -1
- package/package.json +1 -2
- package/dist/chunk-FJP5OKS5.js.map +0 -1
- package/dist/chunk-KXDG5ZWS.mjs.map +0 -1
- package/docs/typescript-sdk-reference.md +0 -1437
package/dist/node.js
CHANGED
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
|
|
446
446
|
|
|
447
447
|
|
|
448
|
-
var
|
|
448
|
+
var _chunkYSKO6SPTjs = require('./chunk-YSKO6SPT.js');
|
|
449
449
|
|
|
450
450
|
// src/exec-core/client.ts
|
|
451
451
|
var _events = require('events'); var _events2 = _interopRequireDefault(_events);
|
|
@@ -780,11 +780,11 @@ function resolveExecCoreDeps(observability, fallback = defaultExecCoreDeps) {
|
|
|
780
780
|
|
|
781
781
|
// src/exec-core/client.ts
|
|
782
782
|
function getResponseId(response) {
|
|
783
|
-
const parsed =
|
|
783
|
+
const parsed = _chunkYSKO6SPTjs.JsonRpcBaseResponseSchema.safeParse(response);
|
|
784
784
|
return parsed.success ? parsed.data.id : void 0;
|
|
785
785
|
}
|
|
786
|
-
var JsonRpcEnvelopePeekSchema =
|
|
787
|
-
type: _zod.z.nativeEnum(
|
|
786
|
+
var JsonRpcEnvelopePeekSchema = _chunkYSKO6SPTjs.JsonRpcEnvelopeSchema.partial().extend({
|
|
787
|
+
type: _zod.z.nativeEnum(_chunkYSKO6SPTjs.JsonRpcMessageType).optional(),
|
|
788
788
|
method: _zod.z.string().optional(),
|
|
789
789
|
id: _zod.z.string().nullable().optional()
|
|
790
790
|
}).passthrough();
|
|
@@ -795,8 +795,8 @@ function inspectJsonRpcEnvelope2(message) {
|
|
|
795
795
|
}
|
|
796
796
|
const envelope = result.data;
|
|
797
797
|
return {
|
|
798
|
-
protocolVersionMismatch: envelope.factoryProtocolVersion !== void 0 && envelope.factoryProtocolVersion !==
|
|
799
|
-
localFactoryProtocolVersion:
|
|
798
|
+
protocolVersionMismatch: envelope.factoryProtocolVersion !== void 0 && envelope.factoryProtocolVersion !== _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION ? {
|
|
799
|
+
localFactoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
800
800
|
peerFactoryProtocolVersion: envelope.factoryProtocolVersion,
|
|
801
801
|
messageType: envelope.type,
|
|
802
802
|
method: envelope.method,
|
|
@@ -849,7 +849,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
849
849
|
});
|
|
850
850
|
this.transport.onError((error) => {
|
|
851
851
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
852
|
-
const expectedCleanExit = err instanceof
|
|
852
|
+
const expectedCleanExit = err instanceof _chunkYSKO6SPTjs.ProcessExitError && err.exitCode === 0 && this.completedTurnObserved;
|
|
853
853
|
if (expectedCleanExit) {
|
|
854
854
|
this.logger.info("[DroidClient] Process exited after completed turn", {
|
|
855
855
|
exitCode: err.exitCode
|
|
@@ -877,14 +877,14 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
877
877
|
return this.transport.isConnected;
|
|
878
878
|
}
|
|
879
879
|
requireMcpOAuthOptOutSupport() {
|
|
880
|
-
if (this.peerProtocolVersion ===
|
|
880
|
+
if (this.peerProtocolVersion === _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION) {
|
|
881
881
|
return;
|
|
882
882
|
}
|
|
883
|
-
throw new (0,
|
|
883
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)(
|
|
884
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.",
|
|
885
885
|
{
|
|
886
886
|
value: {
|
|
887
|
-
localFactoryProtocolVersion:
|
|
887
|
+
localFactoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
888
888
|
peerFactoryProtocolVersion: this.peerProtocolVersion
|
|
889
889
|
}
|
|
890
890
|
}
|
|
@@ -897,10 +897,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
897
897
|
}
|
|
898
898
|
async initializeSession(params) {
|
|
899
899
|
const request = {
|
|
900
|
-
factoryApiVersion:
|
|
901
|
-
factoryProtocolVersion:
|
|
900
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
901
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
902
902
|
type: "request",
|
|
903
|
-
jsonrpc:
|
|
903
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
904
904
|
id: _uuid.v4.call(void 0, ),
|
|
905
905
|
method: "droid.initialize_session" /* INITIALIZE_SESSION */,
|
|
906
906
|
params
|
|
@@ -909,10 +909,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
909
909
|
request,
|
|
910
910
|
this.sessionInitTimeout
|
|
911
911
|
);
|
|
912
|
-
const response =
|
|
912
|
+
const response = _chunkYSKO6SPTjs.InitializeSessionResponseSchema.parse(rawResponse);
|
|
913
913
|
this.peerProtocolVersion = response.factoryProtocolVersion;
|
|
914
914
|
if (response.error) {
|
|
915
|
-
throw new (0,
|
|
915
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Initialize session request failed", {
|
|
916
916
|
requestId: request.id,
|
|
917
917
|
code: response.error.code,
|
|
918
918
|
message: response.error.message,
|
|
@@ -920,16 +920,16 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
922
|
this.validateMcpServersProtocolSupport(params.mcpServers);
|
|
923
|
-
const result =
|
|
923
|
+
const result = _chunkYSKO6SPTjs.InitializeSessionResultSchema.parse(response.result);
|
|
924
924
|
this.currentSessionId = result.sessionId;
|
|
925
925
|
return response;
|
|
926
926
|
}
|
|
927
927
|
async loadSession(params) {
|
|
928
928
|
const request = {
|
|
929
|
-
factoryApiVersion:
|
|
930
|
-
factoryProtocolVersion:
|
|
929
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
930
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
931
931
|
type: "request",
|
|
932
|
-
jsonrpc:
|
|
932
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
933
933
|
id: _uuid.v4.call(void 0, ),
|
|
934
934
|
method: "droid.load_session" /* LOAD_SESSION */,
|
|
935
935
|
params
|
|
@@ -938,19 +938,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
938
938
|
request,
|
|
939
939
|
this.sessionInitTimeout
|
|
940
940
|
);
|
|
941
|
-
const response =
|
|
941
|
+
const response = _chunkYSKO6SPTjs.LoadSessionResponseSchema.parse(rawResponse);
|
|
942
942
|
this.peerProtocolVersion = response.factoryProtocolVersion;
|
|
943
943
|
if (response.error) {
|
|
944
944
|
const isSessionNotFound = response.error.code === -32004 /* ENTITY_NOT_FOUND */;
|
|
945
945
|
if (isSessionNotFound) {
|
|
946
|
-
throw new (0,
|
|
946
|
+
throw new (0, _chunkYSKO6SPTjs.SessionNotFoundError)(params.sessionId, {
|
|
947
947
|
requestId: request.id,
|
|
948
948
|
code: response.error.code,
|
|
949
949
|
message: response.error.message,
|
|
950
950
|
data: response.error.data
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
|
-
throw new (0,
|
|
953
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Load session request failed", {
|
|
954
954
|
requestId: request.id,
|
|
955
955
|
code: response.error.code,
|
|
956
956
|
message: response.error.message,
|
|
@@ -963,16 +963,16 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
963
963
|
}
|
|
964
964
|
async addUserMessage(params, requestId) {
|
|
965
965
|
if (!this.currentSessionId) {
|
|
966
|
-
throw new (0,
|
|
966
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
967
967
|
"No active session. Call initializeSession or loadSession first."
|
|
968
968
|
);
|
|
969
969
|
}
|
|
970
970
|
this.completedTurnObserved = false;
|
|
971
971
|
const request = {
|
|
972
|
-
factoryApiVersion:
|
|
973
|
-
factoryProtocolVersion:
|
|
972
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
973
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
974
974
|
type: "request",
|
|
975
|
-
jsonrpc:
|
|
975
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
976
976
|
id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
|
|
977
977
|
method: "droid.add_user_message" /* ADD_USER_MESSAGE */,
|
|
978
978
|
params: {
|
|
@@ -981,9 +981,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
983
|
const rawResponse = await this.sendRequest(request);
|
|
984
|
-
const response =
|
|
984
|
+
const response = _chunkYSKO6SPTjs.AddUserMessageResponseSchema.parse(rawResponse);
|
|
985
985
|
if (response.error) {
|
|
986
|
-
throw new (0,
|
|
986
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Add user message request failed", {
|
|
987
987
|
requestId: request.id,
|
|
988
988
|
code: response.error.code,
|
|
989
989
|
message: response.error.message,
|
|
@@ -1000,23 +1000,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1000
1000
|
*/
|
|
1001
1001
|
async appendMessages(params, requestId) {
|
|
1002
1002
|
if (!this.currentSessionId) {
|
|
1003
|
-
throw new (0,
|
|
1003
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1004
1004
|
"No active session. Call initializeSession or loadSession first."
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
1007
1007
|
const request = {
|
|
1008
|
-
factoryApiVersion:
|
|
1009
|
-
factoryProtocolVersion:
|
|
1008
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1009
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1010
1010
|
type: "request",
|
|
1011
|
-
jsonrpc:
|
|
1011
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1012
1012
|
id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
|
|
1013
1013
|
method: "droid.append_messages" /* APPEND_MESSAGES */,
|
|
1014
1014
|
params
|
|
1015
1015
|
};
|
|
1016
1016
|
const rawResponse = await this.sendRequest(request);
|
|
1017
|
-
const response =
|
|
1017
|
+
const response = _chunkYSKO6SPTjs.AppendMessagesResponseSchema.parse(rawResponse);
|
|
1018
1018
|
if (response.error) {
|
|
1019
|
-
throw new (0,
|
|
1019
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Append messages request failed", {
|
|
1020
1020
|
requestId: request.id,
|
|
1021
1021
|
code: response.error.code,
|
|
1022
1022
|
message: response.error.message,
|
|
@@ -1027,23 +1027,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
async resolveQueuedUserMessage(params) {
|
|
1029
1029
|
if (!this.currentSessionId) {
|
|
1030
|
-
throw new (0,
|
|
1030
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1031
1031
|
"No active session. Call initializeSession or loadSession first."
|
|
1032
1032
|
);
|
|
1033
1033
|
}
|
|
1034
1034
|
const request = {
|
|
1035
|
-
factoryApiVersion:
|
|
1036
|
-
factoryProtocolVersion:
|
|
1035
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1036
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1037
1037
|
type: "request",
|
|
1038
|
-
jsonrpc:
|
|
1038
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1039
1039
|
id: _uuid.v4.call(void 0, ),
|
|
1040
1040
|
method: "droid.resolve_queued_user_message" /* RESOLVE_QUEUED_USER_MESSAGE */,
|
|
1041
1041
|
params
|
|
1042
1042
|
};
|
|
1043
1043
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1044
|
-
const response =
|
|
1044
|
+
const response = _chunkYSKO6SPTjs.ResolveQueuedUserMessageResponseSchema.parse(rawResponse);
|
|
1045
1045
|
if (response.error) {
|
|
1046
|
-
throw new (0,
|
|
1046
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Resolve queued user message request failed", {
|
|
1047
1047
|
requestId: request.id,
|
|
1048
1048
|
code: response.error.code,
|
|
1049
1049
|
message: response.error.message,
|
|
@@ -1054,23 +1054,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
async interruptSession(params = {}) {
|
|
1056
1056
|
if (!this.currentSessionId) {
|
|
1057
|
-
throw new (0,
|
|
1057
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1058
1058
|
"No active session. Call initializeSession or loadSession first."
|
|
1059
1059
|
);
|
|
1060
1060
|
}
|
|
1061
1061
|
const request = {
|
|
1062
|
-
factoryApiVersion:
|
|
1063
|
-
factoryProtocolVersion:
|
|
1062
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1063
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1064
1064
|
type: "request",
|
|
1065
|
-
jsonrpc:
|
|
1065
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1066
1066
|
id: _uuid.v4.call(void 0, ),
|
|
1067
1067
|
method: "droid.interrupt_session" /* INTERRUPT_SESSION */,
|
|
1068
1068
|
params
|
|
1069
1069
|
};
|
|
1070
1070
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1071
|
-
const response =
|
|
1071
|
+
const response = _chunkYSKO6SPTjs.InterruptSessionResponseSchema.parse(rawResponse);
|
|
1072
1072
|
if (response.error) {
|
|
1073
|
-
throw new (0,
|
|
1073
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Interrupt session request failed", {
|
|
1074
1074
|
requestId: request.id,
|
|
1075
1075
|
code: response.error.code,
|
|
1076
1076
|
message: response.error.message,
|
|
@@ -1081,23 +1081,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
async closeSession(params = {}) {
|
|
1083
1083
|
if (!this.currentSessionId) {
|
|
1084
|
-
throw new (0,
|
|
1084
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1085
1085
|
"No active session. Call initializeSession or loadSession first."
|
|
1086
1086
|
);
|
|
1087
1087
|
}
|
|
1088
1088
|
const request = {
|
|
1089
|
-
factoryApiVersion:
|
|
1090
|
-
factoryProtocolVersion:
|
|
1089
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1090
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1091
1091
|
type: "request",
|
|
1092
|
-
jsonrpc:
|
|
1092
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1093
1093
|
id: _uuid.v4.call(void 0, ),
|
|
1094
1094
|
method: "droid.close_session" /* CLOSE_SESSION */,
|
|
1095
1095
|
params
|
|
1096
1096
|
};
|
|
1097
1097
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1098
|
-
const response =
|
|
1098
|
+
const response = _chunkYSKO6SPTjs.CloseSessionResponseSchema.parse(rawResponse);
|
|
1099
1099
|
if (response.error) {
|
|
1100
|
-
throw new (0,
|
|
1100
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Close session request failed", {
|
|
1101
1101
|
requestId: request.id,
|
|
1102
1102
|
code: response.error.code,
|
|
1103
1103
|
message: response.error.message,
|
|
@@ -1108,23 +1108,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
async killWorkerSession(params) {
|
|
1110
1110
|
if (!this.currentSessionId) {
|
|
1111
|
-
throw new (0,
|
|
1111
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1112
1112
|
"No active session. Call initializeSession or loadSession first."
|
|
1113
1113
|
);
|
|
1114
1114
|
}
|
|
1115
1115
|
const request = {
|
|
1116
|
-
factoryApiVersion:
|
|
1117
|
-
factoryProtocolVersion:
|
|
1116
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1117
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1118
1118
|
type: "request",
|
|
1119
|
-
jsonrpc:
|
|
1119
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1120
1120
|
id: _uuid.v4.call(void 0, ),
|
|
1121
1121
|
method: "droid.kill_worker_session" /* KILL_WORKER_SESSION */,
|
|
1122
1122
|
params
|
|
1123
1123
|
};
|
|
1124
1124
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1125
|
-
const response =
|
|
1125
|
+
const response = _chunkYSKO6SPTjs.KillWorkerSessionResponseSchema.parse(rawResponse);
|
|
1126
1126
|
if (response.error) {
|
|
1127
|
-
throw new (0,
|
|
1127
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Kill worker session request failed", {
|
|
1128
1128
|
requestId: request.id,
|
|
1129
1129
|
code: response.error.code,
|
|
1130
1130
|
message: response.error.message,
|
|
@@ -1135,23 +1135,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
async updateSessionSettings(params, requestId) {
|
|
1137
1137
|
if (!this.currentSessionId) {
|
|
1138
|
-
throw new (0,
|
|
1138
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1139
1139
|
"No active session. Call initializeSession or loadSession first."
|
|
1140
1140
|
);
|
|
1141
1141
|
}
|
|
1142
1142
|
const request = {
|
|
1143
|
-
factoryApiVersion:
|
|
1144
|
-
factoryProtocolVersion:
|
|
1143
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1144
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1145
1145
|
type: "request",
|
|
1146
|
-
jsonrpc:
|
|
1146
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1147
1147
|
id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
|
|
1148
1148
|
method: "droid.update_session_settings" /* UPDATE_SESSION_SETTINGS */,
|
|
1149
1149
|
params
|
|
1150
1150
|
};
|
|
1151
1151
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1152
|
-
const responseParsed =
|
|
1152
|
+
const responseParsed = _chunkYSKO6SPTjs.UpdateSessionSettingsResponseSchema.safeParse(rawResponse);
|
|
1153
1153
|
if (!responseParsed.success) {
|
|
1154
|
-
throw new (0,
|
|
1154
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)(
|
|
1155
1155
|
"Invalid update session settings response format",
|
|
1156
1156
|
{
|
|
1157
1157
|
requestId: request.id,
|
|
@@ -1163,7 +1163,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
const response = responseParsed.data;
|
|
1165
1165
|
if (response.error) {
|
|
1166
|
-
throw new (0,
|
|
1166
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Update session settings request failed", {
|
|
1167
1167
|
requestId: request.id,
|
|
1168
1168
|
code: response.error.code,
|
|
1169
1169
|
message: response.error.message,
|
|
@@ -1174,23 +1174,23 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
async changeWorkingDirectory(params) {
|
|
1176
1176
|
if (!this.currentSessionId) {
|
|
1177
|
-
throw new (0,
|
|
1177
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1178
1178
|
"No active session. Call initializeSession or loadSession first."
|
|
1179
1179
|
);
|
|
1180
1180
|
}
|
|
1181
1181
|
const request = {
|
|
1182
|
-
factoryApiVersion:
|
|
1183
|
-
factoryProtocolVersion:
|
|
1182
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1183
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1184
1184
|
type: "request",
|
|
1185
|
-
jsonrpc:
|
|
1185
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1186
1186
|
id: _uuid.v4.call(void 0, ),
|
|
1187
1187
|
method: "droid.change_working_directory" /* CHANGE_WORKING_DIRECTORY */,
|
|
1188
1188
|
params
|
|
1189
1189
|
};
|
|
1190
1190
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1191
|
-
const response =
|
|
1191
|
+
const response = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResponseSchema.parse(rawResponse);
|
|
1192
1192
|
if (response.error) {
|
|
1193
|
-
throw new (0,
|
|
1193
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Change working directory request failed", {
|
|
1194
1194
|
requestId: request.id,
|
|
1195
1195
|
code: response.error.code,
|
|
1196
1196
|
message: response.error.message,
|
|
@@ -1201,15 +1201,15 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
async toggleMcpServer(params) {
|
|
1203
1203
|
if (!this.currentSessionId) {
|
|
1204
|
-
throw new (0,
|
|
1204
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1205
1205
|
"No active session. Call initializeSession or loadSession first."
|
|
1206
1206
|
);
|
|
1207
1207
|
}
|
|
1208
1208
|
const request = {
|
|
1209
|
-
factoryApiVersion:
|
|
1210
|
-
factoryProtocolVersion:
|
|
1209
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1210
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1211
1211
|
type: "request",
|
|
1212
|
-
jsonrpc:
|
|
1212
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1213
1213
|
id: _uuid.v4.call(void 0, ),
|
|
1214
1214
|
method: "droid.toggle_mcp_server" /* TOGGLE_MCP_SERVER */,
|
|
1215
1215
|
params: {
|
|
@@ -1219,20 +1219,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
};
|
|
1221
1221
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1222
|
-
const response =
|
|
1222
|
+
const response = _chunkYSKO6SPTjs.ToggleMcpServerResponseSchema.parse(rawResponse);
|
|
1223
1223
|
return response;
|
|
1224
1224
|
}
|
|
1225
1225
|
async authenticateMcpServer(params) {
|
|
1226
1226
|
if (!this.currentSessionId) {
|
|
1227
|
-
throw new (0,
|
|
1227
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1228
1228
|
"No active session. Call initializeSession or loadSession first."
|
|
1229
1229
|
);
|
|
1230
1230
|
}
|
|
1231
1231
|
const request = {
|
|
1232
|
-
factoryApiVersion:
|
|
1233
|
-
factoryProtocolVersion:
|
|
1232
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1233
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1234
1234
|
type: "request",
|
|
1235
|
-
jsonrpc:
|
|
1235
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1236
1236
|
id: _uuid.v4.call(void 0, ),
|
|
1237
1237
|
method: "droid.authenticate_mcp_server" /* AUTHENTICATE_MCP_SERVER */,
|
|
1238
1238
|
params: {
|
|
@@ -1240,20 +1240,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
};
|
|
1242
1242
|
const rawResponse = await this.sendRequest(request, MCP_AUTH_TIMEOUT2);
|
|
1243
|
-
const response =
|
|
1243
|
+
const response = _chunkYSKO6SPTjs.AuthenticateMcpServerResponseSchema.parse(rawResponse);
|
|
1244
1244
|
return response;
|
|
1245
1245
|
}
|
|
1246
1246
|
async cancelMcpAuth(params) {
|
|
1247
1247
|
if (!this.currentSessionId) {
|
|
1248
|
-
throw new (0,
|
|
1248
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1249
1249
|
"No active session. Call initializeSession or loadSession first."
|
|
1250
1250
|
);
|
|
1251
1251
|
}
|
|
1252
1252
|
const request = {
|
|
1253
|
-
factoryApiVersion:
|
|
1254
|
-
factoryProtocolVersion:
|
|
1253
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1254
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1255
1255
|
type: "request",
|
|
1256
|
-
jsonrpc:
|
|
1256
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1257
1257
|
id: _uuid.v4.call(void 0, ),
|
|
1258
1258
|
method: "droid.cancel_mcp_auth" /* CANCEL_MCP_AUTH */,
|
|
1259
1259
|
params: {
|
|
@@ -1261,20 +1261,20 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
};
|
|
1263
1263
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1264
|
-
const response =
|
|
1264
|
+
const response = _chunkYSKO6SPTjs.CancelMcpAuthResponseSchema.parse(rawResponse);
|
|
1265
1265
|
return response;
|
|
1266
1266
|
}
|
|
1267
1267
|
async clearMcpAuth(params) {
|
|
1268
1268
|
if (!this.currentSessionId) {
|
|
1269
|
-
throw new (0,
|
|
1269
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1270
1270
|
"No active session. Call initializeSession or loadSession first."
|
|
1271
1271
|
);
|
|
1272
1272
|
}
|
|
1273
1273
|
const request = {
|
|
1274
|
-
factoryApiVersion:
|
|
1275
|
-
factoryProtocolVersion:
|
|
1274
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1275
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1276
1276
|
type: "request",
|
|
1277
|
-
jsonrpc:
|
|
1277
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1278
1278
|
id: _uuid.v4.call(void 0, ),
|
|
1279
1279
|
method: "droid.clear_mcp_auth" /* CLEAR_MCP_AUTH */,
|
|
1280
1280
|
params: {
|
|
@@ -1282,12 +1282,12 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
};
|
|
1284
1284
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1285
|
-
const response =
|
|
1285
|
+
const response = _chunkYSKO6SPTjs.ClearMcpAuthResponseSchema.parse(rawResponse);
|
|
1286
1286
|
return response;
|
|
1287
1287
|
}
|
|
1288
1288
|
async addMcpServer(params) {
|
|
1289
1289
|
if (!this.currentSessionId) {
|
|
1290
|
-
throw new (0,
|
|
1290
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1291
1291
|
"No active session. Call initializeSession or loadSession first."
|
|
1292
1292
|
);
|
|
1293
1293
|
}
|
|
@@ -1295,302 +1295,302 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1295
1295
|
this.requireMcpOAuthOptOutSupport();
|
|
1296
1296
|
}
|
|
1297
1297
|
const request = {
|
|
1298
|
-
factoryApiVersion:
|
|
1299
|
-
factoryProtocolVersion:
|
|
1298
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1299
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1300
1300
|
type: "request",
|
|
1301
|
-
jsonrpc:
|
|
1301
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1302
1302
|
id: _uuid.v4.call(void 0, ),
|
|
1303
1303
|
method: "droid.add_mcp_server" /* ADD_MCP_SERVER */,
|
|
1304
1304
|
params
|
|
1305
1305
|
};
|
|
1306
1306
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1307
|
-
const response =
|
|
1307
|
+
const response = _chunkYSKO6SPTjs.AddMcpServerResponseSchema.parse(rawResponse);
|
|
1308
1308
|
return response;
|
|
1309
1309
|
}
|
|
1310
1310
|
async removeMcpServer(params) {
|
|
1311
1311
|
if (!this.currentSessionId) {
|
|
1312
|
-
throw new (0,
|
|
1312
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1313
1313
|
"No active session. Call initializeSession or loadSession first."
|
|
1314
1314
|
);
|
|
1315
1315
|
}
|
|
1316
1316
|
const request = {
|
|
1317
|
-
factoryApiVersion:
|
|
1318
|
-
factoryProtocolVersion:
|
|
1317
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1318
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1319
1319
|
type: "request",
|
|
1320
|
-
jsonrpc:
|
|
1320
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1321
1321
|
id: _uuid.v4.call(void 0, ),
|
|
1322
1322
|
method: "droid.remove_mcp_server" /* REMOVE_MCP_SERVER */,
|
|
1323
1323
|
params
|
|
1324
1324
|
};
|
|
1325
1325
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1326
|
-
const response =
|
|
1326
|
+
const response = _chunkYSKO6SPTjs.RemoveMcpServerResponseSchema.parse(rawResponse);
|
|
1327
1327
|
return response;
|
|
1328
1328
|
}
|
|
1329
1329
|
async listModels(params = {}) {
|
|
1330
1330
|
const request = {
|
|
1331
|
-
factoryApiVersion:
|
|
1332
|
-
factoryProtocolVersion:
|
|
1331
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1332
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1333
1333
|
type: "request",
|
|
1334
|
-
jsonrpc:
|
|
1334
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1335
1335
|
id: _uuid.v4.call(void 0, ),
|
|
1336
1336
|
method: "droid.list_models" /* LIST_MODELS */,
|
|
1337
1337
|
params
|
|
1338
1338
|
};
|
|
1339
1339
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1340
|
-
return
|
|
1340
|
+
return _chunkYSKO6SPTjs.ListModelsResponseSchema.parse(rawResponse);
|
|
1341
1341
|
}
|
|
1342
1342
|
async listMcpRegistry() {
|
|
1343
1343
|
if (!this.currentSessionId) {
|
|
1344
|
-
throw new (0,
|
|
1344
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1345
1345
|
"No active session. Call initializeSession or loadSession first."
|
|
1346
1346
|
);
|
|
1347
1347
|
}
|
|
1348
1348
|
const request = {
|
|
1349
|
-
factoryApiVersion:
|
|
1350
|
-
factoryProtocolVersion:
|
|
1349
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1350
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1351
1351
|
type: "request",
|
|
1352
|
-
jsonrpc:
|
|
1352
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1353
1353
|
id: _uuid.v4.call(void 0, ),
|
|
1354
1354
|
method: "droid.list_mcp_registry" /* LIST_MCP_REGISTRY */,
|
|
1355
1355
|
params: {}
|
|
1356
1356
|
};
|
|
1357
1357
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1358
|
-
const response =
|
|
1358
|
+
const response = _chunkYSKO6SPTjs.ListMcpRegistryResponseSchema.parse(rawResponse);
|
|
1359
1359
|
return response;
|
|
1360
1360
|
}
|
|
1361
1361
|
async listMcpTools() {
|
|
1362
1362
|
if (!this.currentSessionId) {
|
|
1363
|
-
throw new (0,
|
|
1363
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1364
1364
|
"No active session. Call initializeSession or loadSession first."
|
|
1365
1365
|
);
|
|
1366
1366
|
}
|
|
1367
1367
|
const request = {
|
|
1368
|
-
factoryApiVersion:
|
|
1369
|
-
factoryProtocolVersion:
|
|
1368
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1369
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1370
1370
|
type: "request",
|
|
1371
|
-
jsonrpc:
|
|
1371
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1372
1372
|
id: _uuid.v4.call(void 0, ),
|
|
1373
1373
|
method: "droid.list_mcp_tools" /* LIST_MCP_TOOLS */,
|
|
1374
1374
|
params: {}
|
|
1375
1375
|
};
|
|
1376
1376
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1377
|
-
const response =
|
|
1377
|
+
const response = _chunkYSKO6SPTjs.ListMcpToolsResponseSchema.parse(rawResponse);
|
|
1378
1378
|
return response;
|
|
1379
1379
|
}
|
|
1380
1380
|
async listTools(params = {}) {
|
|
1381
1381
|
const request = {
|
|
1382
|
-
factoryApiVersion:
|
|
1383
|
-
factoryProtocolVersion:
|
|
1382
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1383
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1384
1384
|
type: "request",
|
|
1385
|
-
jsonrpc:
|
|
1385
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1386
1386
|
id: _uuid.v4.call(void 0, ),
|
|
1387
1387
|
method: "droid.list_tools" /* LIST_TOOLS */,
|
|
1388
1388
|
params
|
|
1389
1389
|
};
|
|
1390
1390
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1391
|
-
const response =
|
|
1391
|
+
const response = _chunkYSKO6SPTjs.ListToolsResponseSchema.parse(rawResponse);
|
|
1392
1392
|
return response;
|
|
1393
1393
|
}
|
|
1394
1394
|
async listMcpServers() {
|
|
1395
1395
|
if (!this.currentSessionId) {
|
|
1396
|
-
throw new (0,
|
|
1396
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1397
1397
|
"No active session. Call initializeSession or loadSession first."
|
|
1398
1398
|
);
|
|
1399
1399
|
}
|
|
1400
1400
|
const request = {
|
|
1401
|
-
factoryApiVersion:
|
|
1402
|
-
factoryProtocolVersion:
|
|
1401
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1402
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1403
1403
|
type: "request",
|
|
1404
|
-
jsonrpc:
|
|
1404
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1405
1405
|
id: _uuid.v4.call(void 0, ),
|
|
1406
1406
|
method: "droid.list_mcp_servers" /* LIST_MCP_SERVERS */,
|
|
1407
1407
|
params: {}
|
|
1408
1408
|
};
|
|
1409
1409
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1410
|
-
const response =
|
|
1410
|
+
const response = _chunkYSKO6SPTjs.ListMcpServersResponseSchema.parse(rawResponse);
|
|
1411
1411
|
return response;
|
|
1412
1412
|
}
|
|
1413
1413
|
async toggleMcpTool(serverName, toolName, enabled) {
|
|
1414
1414
|
if (!this.currentSessionId) {
|
|
1415
|
-
throw new (0,
|
|
1415
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1416
1416
|
"No active session. Call initializeSession or loadSession first."
|
|
1417
1417
|
);
|
|
1418
1418
|
}
|
|
1419
1419
|
const request = {
|
|
1420
|
-
factoryApiVersion:
|
|
1421
|
-
factoryProtocolVersion:
|
|
1420
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1421
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1422
1422
|
type: "request",
|
|
1423
|
-
jsonrpc:
|
|
1423
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1424
1424
|
id: _uuid.v4.call(void 0, ),
|
|
1425
1425
|
method: "droid.toggle_mcp_tool" /* TOGGLE_MCP_TOOL */,
|
|
1426
1426
|
params: { serverName, toolName, enabled }
|
|
1427
1427
|
};
|
|
1428
1428
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1429
|
-
const response =
|
|
1429
|
+
const response = _chunkYSKO6SPTjs.ToggleMcpToolResponseSchema.parse(rawResponse);
|
|
1430
1430
|
return response;
|
|
1431
1431
|
}
|
|
1432
1432
|
async submitMcpAuthCode(params) {
|
|
1433
1433
|
if (!this.currentSessionId) {
|
|
1434
|
-
throw new (0,
|
|
1434
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1435
1435
|
"No active session. Call initializeSession or loadSession first."
|
|
1436
1436
|
);
|
|
1437
1437
|
}
|
|
1438
1438
|
const request = {
|
|
1439
|
-
factoryApiVersion:
|
|
1440
|
-
factoryProtocolVersion:
|
|
1439
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1440
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1441
1441
|
type: "request",
|
|
1442
|
-
jsonrpc:
|
|
1442
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1443
1443
|
id: _uuid.v4.call(void 0, ),
|
|
1444
1444
|
method: "droid.submit_mcp_auth_code" /* SUBMIT_MCP_AUTH_CODE */,
|
|
1445
1445
|
params
|
|
1446
1446
|
};
|
|
1447
1447
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1448
|
-
const response =
|
|
1448
|
+
const response = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResponseSchema.parse(rawResponse);
|
|
1449
1449
|
return response;
|
|
1450
1450
|
}
|
|
1451
1451
|
async submitMcpAuthError(params) {
|
|
1452
1452
|
if (!this.currentSessionId) {
|
|
1453
|
-
throw new (0,
|
|
1453
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1454
1454
|
"No active session. Call initializeSession or loadSession first."
|
|
1455
1455
|
);
|
|
1456
1456
|
}
|
|
1457
1457
|
const request = {
|
|
1458
|
-
factoryApiVersion:
|
|
1459
|
-
factoryProtocolVersion:
|
|
1458
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1459
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1460
1460
|
type: "request",
|
|
1461
|
-
jsonrpc:
|
|
1461
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1462
1462
|
id: _uuid.v4.call(void 0, ),
|
|
1463
1463
|
method: "droid.submit_mcp_auth_error" /* SUBMIT_MCP_AUTH_ERROR */,
|
|
1464
1464
|
params
|
|
1465
1465
|
};
|
|
1466
1466
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1467
|
-
const response =
|
|
1467
|
+
const response = _chunkYSKO6SPTjs.SubmitMcpAuthErrorResponseSchema.parse(rawResponse);
|
|
1468
1468
|
return response;
|
|
1469
1469
|
}
|
|
1470
1470
|
async listSkills() {
|
|
1471
1471
|
if (!this.currentSessionId) {
|
|
1472
|
-
throw new (0,
|
|
1472
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1473
1473
|
"No active session. Call initializeSession or loadSession first."
|
|
1474
1474
|
);
|
|
1475
1475
|
}
|
|
1476
1476
|
const request = {
|
|
1477
|
-
factoryApiVersion:
|
|
1478
|
-
factoryProtocolVersion:
|
|
1477
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1478
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1479
1479
|
type: "request",
|
|
1480
|
-
jsonrpc:
|
|
1480
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1481
1481
|
id: _uuid.v4.call(void 0, ),
|
|
1482
1482
|
method: "droid.list_skills" /* LIST_SKILLS */,
|
|
1483
1483
|
params: {}
|
|
1484
1484
|
};
|
|
1485
1485
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1486
|
-
const response =
|
|
1486
|
+
const response = _chunkYSKO6SPTjs.ListSkillsResponseSchema.parse(rawResponse);
|
|
1487
1487
|
return response;
|
|
1488
1488
|
}
|
|
1489
1489
|
async setSkillDisabled(skillName, disabled, settingsLevel) {
|
|
1490
1490
|
if (!this.currentSessionId) {
|
|
1491
|
-
throw new (0,
|
|
1491
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1492
1492
|
"No active session. Call initializeSession or loadSession first."
|
|
1493
1493
|
);
|
|
1494
1494
|
}
|
|
1495
1495
|
const request = {
|
|
1496
|
-
factoryApiVersion:
|
|
1497
|
-
factoryProtocolVersion:
|
|
1496
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1497
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1498
1498
|
type: "request",
|
|
1499
|
-
jsonrpc:
|
|
1499
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1500
1500
|
id: _uuid.v4.call(void 0, ),
|
|
1501
1501
|
method: "droid.set_skill_disabled" /* SET_SKILL_DISABLED */,
|
|
1502
1502
|
params: { skillName, disabled, settingsLevel }
|
|
1503
1503
|
};
|
|
1504
1504
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1505
|
-
return
|
|
1505
|
+
return _chunkYSKO6SPTjs.SetSkillDisabledResponseSchema.parse(rawResponse);
|
|
1506
1506
|
}
|
|
1507
1507
|
async listCommands() {
|
|
1508
1508
|
if (!this.currentSessionId) {
|
|
1509
|
-
throw new (0,
|
|
1509
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1510
1510
|
"No active session. Call initializeSession or loadSession first."
|
|
1511
1511
|
);
|
|
1512
1512
|
}
|
|
1513
1513
|
const request = {
|
|
1514
|
-
factoryApiVersion:
|
|
1515
|
-
factoryProtocolVersion:
|
|
1514
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1515
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1516
1516
|
type: "request",
|
|
1517
|
-
jsonrpc:
|
|
1517
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1518
1518
|
id: _uuid.v4.call(void 0, ),
|
|
1519
1519
|
method: "droid.list_commands" /* LIST_COMMANDS */,
|
|
1520
1520
|
params: {}
|
|
1521
1521
|
};
|
|
1522
1522
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1523
|
-
const response =
|
|
1523
|
+
const response = _chunkYSKO6SPTjs.ListCommandsResponseSchema.parse(rawResponse);
|
|
1524
1524
|
return response;
|
|
1525
1525
|
}
|
|
1526
1526
|
async getContextStats() {
|
|
1527
1527
|
if (!this.currentSessionId) {
|
|
1528
|
-
throw new (0,
|
|
1528
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1529
1529
|
"No active session. Call initializeSession or loadSession first."
|
|
1530
1530
|
);
|
|
1531
1531
|
}
|
|
1532
1532
|
const request = {
|
|
1533
|
-
factoryApiVersion:
|
|
1534
|
-
factoryProtocolVersion:
|
|
1533
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1534
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1535
1535
|
type: "request",
|
|
1536
|
-
jsonrpc:
|
|
1536
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1537
1537
|
id: _uuid.v4.call(void 0, ),
|
|
1538
1538
|
method: "droid.get_context_stats" /* GET_CONTEXT_STATS */,
|
|
1539
1539
|
params: {}
|
|
1540
1540
|
};
|
|
1541
1541
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1542
|
-
const response =
|
|
1542
|
+
const response = _chunkYSKO6SPTjs.GetContextStatsResponseSchema.parse(rawResponse);
|
|
1543
1543
|
return response;
|
|
1544
1544
|
}
|
|
1545
1545
|
async getContextBreakdown() {
|
|
1546
1546
|
if (!this.currentSessionId) {
|
|
1547
|
-
throw new (0,
|
|
1547
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1548
1548
|
"No active session. Call initializeSession or loadSession first."
|
|
1549
1549
|
);
|
|
1550
1550
|
}
|
|
1551
1551
|
const request = {
|
|
1552
|
-
factoryApiVersion:
|
|
1553
|
-
factoryProtocolVersion:
|
|
1552
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1553
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1554
1554
|
type: "request",
|
|
1555
|
-
jsonrpc:
|
|
1555
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1556
1556
|
id: _uuid.v4.call(void 0, ),
|
|
1557
1557
|
method: "droid.get_context_breakdown" /* GET_CONTEXT_BREAKDOWN */,
|
|
1558
1558
|
params: {}
|
|
1559
1559
|
};
|
|
1560
1560
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1561
|
-
const response =
|
|
1561
|
+
const response = _chunkYSKO6SPTjs.GetContextBreakdownResponseSchema.parse(rawResponse);
|
|
1562
1562
|
return response;
|
|
1563
1563
|
}
|
|
1564
1564
|
async submitBugReport(userComment, clientLogs, source) {
|
|
1565
1565
|
if (!this.currentSessionId) {
|
|
1566
|
-
throw new (0,
|
|
1566
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1567
1567
|
"No active session. Call initializeSession or loadSession first."
|
|
1568
1568
|
);
|
|
1569
1569
|
}
|
|
1570
1570
|
const request = {
|
|
1571
|
-
factoryApiVersion:
|
|
1572
|
-
factoryProtocolVersion:
|
|
1571
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1572
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1573
1573
|
type: "request",
|
|
1574
|
-
jsonrpc:
|
|
1574
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1575
1575
|
id: _uuid.v4.call(void 0, ),
|
|
1576
1576
|
method: "droid.submit_bug_report" /* SUBMIT_BUG_REPORT */,
|
|
1577
1577
|
params: { userComment, clientLogs, source }
|
|
1578
1578
|
};
|
|
1579
1579
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1580
|
-
const response =
|
|
1580
|
+
const response = _chunkYSKO6SPTjs.SubmitBugReportResponseSchema.parse(rawResponse);
|
|
1581
1581
|
return response;
|
|
1582
1582
|
}
|
|
1583
1583
|
async getRewindInfo(params, timeout = this.requestTimeout) {
|
|
1584
1584
|
if (!this.currentSessionId) {
|
|
1585
|
-
throw new (0,
|
|
1585
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1586
1586
|
"No active session. Call initializeSession or loadSession first."
|
|
1587
1587
|
);
|
|
1588
1588
|
}
|
|
1589
1589
|
const request = {
|
|
1590
|
-
factoryApiVersion:
|
|
1591
|
-
factoryProtocolVersion:
|
|
1590
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1591
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1592
1592
|
type: "request",
|
|
1593
|
-
jsonrpc:
|
|
1593
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1594
1594
|
id: _uuid.v4.call(void 0, ),
|
|
1595
1595
|
method: "droid.get_rewind_info" /* GET_REWIND_INFO */,
|
|
1596
1596
|
params: {
|
|
@@ -1599,19 +1599,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
};
|
|
1601
1601
|
const rawResponse = await this.sendRequest(request, timeout);
|
|
1602
|
-
return
|
|
1602
|
+
return _chunkYSKO6SPTjs.GetRewindInfoResponseSchema.parse(rawResponse);
|
|
1603
1603
|
}
|
|
1604
1604
|
async executeRewind(params) {
|
|
1605
1605
|
if (!this.currentSessionId) {
|
|
1606
|
-
throw new (0,
|
|
1606
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1607
1607
|
"No active session. Call initializeSession or loadSession first."
|
|
1608
1608
|
);
|
|
1609
1609
|
}
|
|
1610
1610
|
const request = {
|
|
1611
|
-
factoryApiVersion:
|
|
1612
|
-
factoryProtocolVersion:
|
|
1611
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1612
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1613
1613
|
type: "request",
|
|
1614
|
-
jsonrpc:
|
|
1614
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1615
1615
|
id: _uuid.v4.call(void 0, ),
|
|
1616
1616
|
method: "droid.execute_rewind" /* EXECUTE_REWIND */,
|
|
1617
1617
|
params: {
|
|
@@ -1626,19 +1626,19 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1626
1626
|
request,
|
|
1627
1627
|
this.requestTimeout * 2
|
|
1628
1628
|
);
|
|
1629
|
-
return
|
|
1629
|
+
return _chunkYSKO6SPTjs.ExecuteRewindResponseSchema.parse(rawResponse);
|
|
1630
1630
|
}
|
|
1631
1631
|
async compactSession(params) {
|
|
1632
1632
|
if (!this.currentSessionId) {
|
|
1633
|
-
throw new (0,
|
|
1633
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1634
1634
|
"No active session. Call initializeSession or loadSession first."
|
|
1635
1635
|
);
|
|
1636
1636
|
}
|
|
1637
1637
|
const request = {
|
|
1638
|
-
factoryApiVersion:
|
|
1639
|
-
factoryProtocolVersion:
|
|
1638
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1639
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1640
1640
|
type: "request",
|
|
1641
|
-
jsonrpc:
|
|
1641
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1642
1642
|
id: _uuid.v4.call(void 0, ),
|
|
1643
1643
|
method: "droid.compact_session" /* COMPACT_SESSION */,
|
|
1644
1644
|
params: {
|
|
@@ -1646,37 +1646,37 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
1648
|
const rawResponse = await this.sendRequest(request, COMPACTION_TIMEOUT2);
|
|
1649
|
-
return
|
|
1649
|
+
return _chunkYSKO6SPTjs.CompactSessionResponseSchema.parse(rawResponse);
|
|
1650
1650
|
}
|
|
1651
1651
|
async forkSession(params) {
|
|
1652
1652
|
if (!this.currentSessionId) {
|
|
1653
|
-
throw new (0,
|
|
1653
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1654
1654
|
"No active session. Call initializeSession or loadSession first."
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
1657
|
const request = {
|
|
1658
|
-
factoryApiVersion:
|
|
1659
|
-
factoryProtocolVersion:
|
|
1658
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1659
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1660
1660
|
type: "request",
|
|
1661
|
-
jsonrpc:
|
|
1661
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1662
1662
|
id: _uuid.v4.call(void 0, ),
|
|
1663
1663
|
method: "droid.fork_session" /* FORK_SESSION */,
|
|
1664
1664
|
params: _nullishCoalesce(params, () => ( {}))
|
|
1665
1665
|
};
|
|
1666
1666
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1667
|
-
return
|
|
1667
|
+
return _chunkYSKO6SPTjs.ForkSessionResponseSchema.parse(rawResponse);
|
|
1668
1668
|
}
|
|
1669
1669
|
async renameSession(params, requestId) {
|
|
1670
1670
|
if (!this.currentSessionId) {
|
|
1671
|
-
throw new (0,
|
|
1671
|
+
throw new (0, _chunkYSKO6SPTjs.SessionError)(
|
|
1672
1672
|
"No active session. Call initializeSession or loadSession first."
|
|
1673
1673
|
);
|
|
1674
1674
|
}
|
|
1675
1675
|
const request = {
|
|
1676
|
-
factoryApiVersion:
|
|
1677
|
-
factoryProtocolVersion:
|
|
1676
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1677
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1678
1678
|
type: "request",
|
|
1679
|
-
jsonrpc:
|
|
1679
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1680
1680
|
id: _nullishCoalesce(requestId, () => ( _uuid.v4.call(void 0, ))),
|
|
1681
1681
|
method: "droid.rename_session" /* RENAME_SESSION */,
|
|
1682
1682
|
params: {
|
|
@@ -1684,18 +1684,18 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
1686
1686
|
const rawResponse = await this.sendRequest(request, this.requestTimeout);
|
|
1687
|
-
return
|
|
1687
|
+
return _chunkYSKO6SPTjs.RenameSessionResponseSchema.parse(rawResponse);
|
|
1688
1688
|
}
|
|
1689
1689
|
async warmupCache() {
|
|
1690
1690
|
const response = {
|
|
1691
|
-
factoryApiVersion:
|
|
1692
|
-
factoryProtocolVersion:
|
|
1691
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
1692
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
1693
1693
|
type: "response",
|
|
1694
|
-
jsonrpc:
|
|
1694
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
1695
1695
|
id: _uuid.v4.call(void 0, ),
|
|
1696
1696
|
result: {}
|
|
1697
1697
|
};
|
|
1698
|
-
return
|
|
1698
|
+
return _chunkYSKO6SPTjs.WarmupCacheResponseSchema.parse(response);
|
|
1699
1699
|
}
|
|
1700
1700
|
onNotification(callback, filter) {
|
|
1701
1701
|
const handler = (notification) => {
|
|
@@ -1739,7 +1739,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1739
1739
|
this.askUserHandlers.delete("default");
|
|
1740
1740
|
}
|
|
1741
1741
|
async close() {
|
|
1742
|
-
const closeError = new (0,
|
|
1742
|
+
const closeError = new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
1743
1743
|
"Droid client closed: pending requests cancelled"
|
|
1744
1744
|
);
|
|
1745
1745
|
this.rejectAllPending(closeError);
|
|
@@ -1780,12 +1780,18 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1780
1780
|
if (this.transportError) {
|
|
1781
1781
|
throw this.transportError;
|
|
1782
1782
|
}
|
|
1783
|
+
const requestAttribution = _optionalChain([this, 'access', _16 => _16.getRequestAttribution, 'optionalCall', _17 => _17()]);
|
|
1784
|
+
const _meta = {
|
|
1785
|
+
...requestAttribution && { requestAttribution }
|
|
1786
|
+
};
|
|
1787
|
+
this.tracing.injectContext(_meta, this.tracing.getCurrentContext());
|
|
1788
|
+
const requestWithMeta = _meta.traceparent || _meta.requestAttribution ? { ...request, _meta } : request;
|
|
1783
1789
|
const responsePromise = new Promise(
|
|
1784
1790
|
(resolve2, reject) => {
|
|
1785
1791
|
const timeoutId = timeout ? setTimeout(() => {
|
|
1786
1792
|
this.settleRequest(request.id);
|
|
1787
1793
|
reject(
|
|
1788
|
-
new (0,
|
|
1794
|
+
new (0, _chunkYSKO6SPTjs.TimeoutError)("Send request timed out", {
|
|
1789
1795
|
requestId: request.id,
|
|
1790
1796
|
method: request.method,
|
|
1791
1797
|
timeout
|
|
@@ -1800,12 +1806,6 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1800
1806
|
});
|
|
1801
1807
|
}
|
|
1802
1808
|
);
|
|
1803
|
-
const requestAttribution = _optionalChain([this, 'access', _16 => _16.getRequestAttribution, 'optionalCall', _17 => _17()]);
|
|
1804
|
-
const _meta = {
|
|
1805
|
-
...requestAttribution && { requestAttribution }
|
|
1806
|
-
};
|
|
1807
|
-
this.tracing.injectContext(_meta, this.tracing.getCurrentContext());
|
|
1808
|
-
const requestWithMeta = _meta.traceparent || _meta.requestAttribution ? { ...request, _meta } : request;
|
|
1809
1809
|
try {
|
|
1810
1810
|
this.logger.info("[DroidClient] [daemon -> droid] sending request", {
|
|
1811
1811
|
requestId: request.id,
|
|
@@ -1820,7 +1820,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
this.settleRequest(request.id);
|
|
1822
1822
|
pending.reject(
|
|
1823
|
-
new (0,
|
|
1823
|
+
new (0, _chunkYSKO6SPTjs.ProtocolError)("[daemon -> droid] Failed to send request", {
|
|
1824
1824
|
requestId: request.id,
|
|
1825
1825
|
cause: error
|
|
1826
1826
|
})
|
|
@@ -1837,7 +1837,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1837
1837
|
} else if ("method" in parsed) {
|
|
1838
1838
|
await this.handleEvent(parsed);
|
|
1839
1839
|
} else {
|
|
1840
|
-
throw new (0,
|
|
1840
|
+
throw new (0, _chunkYSKO6SPTjs.ProtocolError)("Invalid message format", {
|
|
1841
1841
|
message
|
|
1842
1842
|
});
|
|
1843
1843
|
}
|
|
@@ -1856,116 +1856,116 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1856
1856
|
let validatedResponse;
|
|
1857
1857
|
switch (pending.method) {
|
|
1858
1858
|
case "droid.initialize_session" /* INITIALIZE_SESSION */:
|
|
1859
|
-
validatedResponse =
|
|
1859
|
+
validatedResponse = _chunkYSKO6SPTjs.InitializeSessionResponseSchema.parse(response);
|
|
1860
1860
|
break;
|
|
1861
1861
|
case "droid.load_session" /* LOAD_SESSION */:
|
|
1862
|
-
validatedResponse =
|
|
1862
|
+
validatedResponse = _chunkYSKO6SPTjs.LoadSessionResponseSchema.parse(response);
|
|
1863
1863
|
break;
|
|
1864
1864
|
case "droid.add_user_message" /* ADD_USER_MESSAGE */:
|
|
1865
|
-
validatedResponse =
|
|
1865
|
+
validatedResponse = _chunkYSKO6SPTjs.AddUserMessageResponseSchema.parse(response);
|
|
1866
1866
|
break;
|
|
1867
1867
|
case "droid.append_messages" /* APPEND_MESSAGES */:
|
|
1868
|
-
validatedResponse =
|
|
1868
|
+
validatedResponse = _chunkYSKO6SPTjs.AppendMessagesResponseSchema.parse(response);
|
|
1869
1869
|
break;
|
|
1870
1870
|
case "droid.resolve_queued_user_message" /* RESOLVE_QUEUED_USER_MESSAGE */:
|
|
1871
|
-
validatedResponse =
|
|
1871
|
+
validatedResponse = _chunkYSKO6SPTjs.ResolveQueuedUserMessageResponseSchema.parse(response);
|
|
1872
1872
|
break;
|
|
1873
1873
|
case "droid.interrupt_session" /* INTERRUPT_SESSION */:
|
|
1874
|
-
validatedResponse =
|
|
1874
|
+
validatedResponse = _chunkYSKO6SPTjs.InterruptSessionResponseSchema.parse(response);
|
|
1875
1875
|
break;
|
|
1876
1876
|
case "droid.close_session" /* CLOSE_SESSION */:
|
|
1877
|
-
validatedResponse =
|
|
1877
|
+
validatedResponse = _chunkYSKO6SPTjs.CloseSessionResponseSchema.parse(response);
|
|
1878
1878
|
break;
|
|
1879
1879
|
case "droid.update_session_settings" /* UPDATE_SESSION_SETTINGS */:
|
|
1880
|
-
validatedResponse =
|
|
1880
|
+
validatedResponse = _chunkYSKO6SPTjs.UpdateSessionSettingsResponseSchema.parse(response);
|
|
1881
1881
|
break;
|
|
1882
1882
|
case "droid.change_working_directory" /* CHANGE_WORKING_DIRECTORY */:
|
|
1883
|
-
validatedResponse =
|
|
1883
|
+
validatedResponse = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResponseSchema.parse(response);
|
|
1884
1884
|
break;
|
|
1885
1885
|
case "droid.toggle_mcp_server" /* TOGGLE_MCP_SERVER */:
|
|
1886
|
-
validatedResponse =
|
|
1886
|
+
validatedResponse = _chunkYSKO6SPTjs.ToggleMcpServerResponseSchema.parse(response);
|
|
1887
1887
|
break;
|
|
1888
1888
|
case "droid.authenticate_mcp_server" /* AUTHENTICATE_MCP_SERVER */:
|
|
1889
|
-
validatedResponse =
|
|
1889
|
+
validatedResponse = _chunkYSKO6SPTjs.AuthenticateMcpServerResponseSchema.parse(response);
|
|
1890
1890
|
break;
|
|
1891
1891
|
case "droid.cancel_mcp_auth" /* CANCEL_MCP_AUTH */:
|
|
1892
|
-
validatedResponse =
|
|
1892
|
+
validatedResponse = _chunkYSKO6SPTjs.CancelMcpAuthResponseSchema.parse(response);
|
|
1893
1893
|
break;
|
|
1894
1894
|
case "droid.clear_mcp_auth" /* CLEAR_MCP_AUTH */:
|
|
1895
|
-
validatedResponse =
|
|
1895
|
+
validatedResponse = _chunkYSKO6SPTjs.ClearMcpAuthResponseSchema.parse(response);
|
|
1896
1896
|
break;
|
|
1897
1897
|
case "droid.add_mcp_server" /* ADD_MCP_SERVER */:
|
|
1898
|
-
validatedResponse =
|
|
1898
|
+
validatedResponse = _chunkYSKO6SPTjs.AddMcpServerResponseSchema.parse(response);
|
|
1899
1899
|
break;
|
|
1900
1900
|
case "droid.remove_mcp_server" /* REMOVE_MCP_SERVER */:
|
|
1901
|
-
validatedResponse =
|
|
1901
|
+
validatedResponse = _chunkYSKO6SPTjs.RemoveMcpServerResponseSchema.parse(response);
|
|
1902
1902
|
break;
|
|
1903
1903
|
case "droid.list_models" /* LIST_MODELS */:
|
|
1904
|
-
validatedResponse =
|
|
1904
|
+
validatedResponse = _chunkYSKO6SPTjs.ListModelsResponseSchema.parse(response);
|
|
1905
1905
|
break;
|
|
1906
1906
|
case "droid.list_mcp_registry" /* LIST_MCP_REGISTRY */:
|
|
1907
|
-
validatedResponse =
|
|
1907
|
+
validatedResponse = _chunkYSKO6SPTjs.ListMcpRegistryResponseSchema.parse(response);
|
|
1908
1908
|
break;
|
|
1909
1909
|
case "droid.list_mcp_tools" /* LIST_MCP_TOOLS */:
|
|
1910
|
-
validatedResponse =
|
|
1910
|
+
validatedResponse = _chunkYSKO6SPTjs.ListMcpToolsResponseSchema.parse(response);
|
|
1911
1911
|
break;
|
|
1912
1912
|
case "droid.list_tools" /* LIST_TOOLS */:
|
|
1913
|
-
validatedResponse =
|
|
1913
|
+
validatedResponse = _chunkYSKO6SPTjs.ListToolsResponseSchema.parse(response);
|
|
1914
1914
|
break;
|
|
1915
1915
|
case "droid.toggle_mcp_tool" /* TOGGLE_MCP_TOOL */:
|
|
1916
|
-
validatedResponse =
|
|
1916
|
+
validatedResponse = _chunkYSKO6SPTjs.ToggleMcpToolResponseSchema.parse(response);
|
|
1917
1917
|
break;
|
|
1918
1918
|
case "droid.submit_mcp_auth_code" /* SUBMIT_MCP_AUTH_CODE */:
|
|
1919
|
-
validatedResponse =
|
|
1919
|
+
validatedResponse = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResponseSchema.parse(response);
|
|
1920
1920
|
break;
|
|
1921
1921
|
case "droid.submit_mcp_auth_error" /* SUBMIT_MCP_AUTH_ERROR */:
|
|
1922
|
-
validatedResponse =
|
|
1922
|
+
validatedResponse = _chunkYSKO6SPTjs.SubmitMcpAuthErrorResponseSchema.parse(response);
|
|
1923
1923
|
break;
|
|
1924
1924
|
case "droid.kill_worker_session" /* KILL_WORKER_SESSION */:
|
|
1925
|
-
validatedResponse =
|
|
1925
|
+
validatedResponse = _chunkYSKO6SPTjs.KillWorkerSessionResponseSchema.parse(response);
|
|
1926
1926
|
break;
|
|
1927
1927
|
case "droid.list_skills" /* LIST_SKILLS */:
|
|
1928
|
-
validatedResponse =
|
|
1928
|
+
validatedResponse = _chunkYSKO6SPTjs.ListSkillsResponseSchema.parse(response);
|
|
1929
1929
|
break;
|
|
1930
1930
|
case "droid.set_skill_disabled" /* SET_SKILL_DISABLED */:
|
|
1931
|
-
validatedResponse =
|
|
1931
|
+
validatedResponse = _chunkYSKO6SPTjs.SetSkillDisabledResponseSchema.parse(response);
|
|
1932
1932
|
break;
|
|
1933
1933
|
case "droid.list_commands" /* LIST_COMMANDS */:
|
|
1934
|
-
validatedResponse =
|
|
1934
|
+
validatedResponse = _chunkYSKO6SPTjs.ListCommandsResponseSchema.parse(response);
|
|
1935
1935
|
break;
|
|
1936
1936
|
case "droid.submit_bug_report" /* SUBMIT_BUG_REPORT */:
|
|
1937
|
-
validatedResponse =
|
|
1937
|
+
validatedResponse = _chunkYSKO6SPTjs.SubmitBugReportResponseSchema.parse(response);
|
|
1938
1938
|
break;
|
|
1939
1939
|
case "droid.list_mcp_servers" /* LIST_MCP_SERVERS */:
|
|
1940
|
-
validatedResponse =
|
|
1940
|
+
validatedResponse = _chunkYSKO6SPTjs.ListMcpServersResponseSchema.parse(response);
|
|
1941
1941
|
break;
|
|
1942
1942
|
case "droid.get_rewind_info" /* GET_REWIND_INFO */:
|
|
1943
|
-
validatedResponse =
|
|
1943
|
+
validatedResponse = _chunkYSKO6SPTjs.GetRewindInfoResponseSchema.parse(response);
|
|
1944
1944
|
break;
|
|
1945
1945
|
case "droid.execute_rewind" /* EXECUTE_REWIND */:
|
|
1946
|
-
validatedResponse =
|
|
1946
|
+
validatedResponse = _chunkYSKO6SPTjs.ExecuteRewindResponseSchema.parse(response);
|
|
1947
1947
|
break;
|
|
1948
1948
|
case "droid.compact_session" /* COMPACT_SESSION */:
|
|
1949
|
-
validatedResponse =
|
|
1949
|
+
validatedResponse = _chunkYSKO6SPTjs.CompactSessionResponseSchema.parse(response);
|
|
1950
1950
|
break;
|
|
1951
1951
|
case "droid.fork_session" /* FORK_SESSION */:
|
|
1952
|
-
validatedResponse =
|
|
1952
|
+
validatedResponse = _chunkYSKO6SPTjs.ForkSessionResponseSchema.parse(response);
|
|
1953
1953
|
break;
|
|
1954
1954
|
case "droid.rename_session" /* RENAME_SESSION */:
|
|
1955
|
-
validatedResponse =
|
|
1955
|
+
validatedResponse = _chunkYSKO6SPTjs.RenameSessionResponseSchema.parse(response);
|
|
1956
1956
|
break;
|
|
1957
1957
|
case "droid.get_context_stats" /* GET_CONTEXT_STATS */:
|
|
1958
|
-
validatedResponse =
|
|
1958
|
+
validatedResponse = _chunkYSKO6SPTjs.GetContextStatsResponseSchema.parse(response);
|
|
1959
1959
|
break;
|
|
1960
1960
|
case "droid.get_context_breakdown" /* GET_CONTEXT_BREAKDOWN */:
|
|
1961
|
-
validatedResponse =
|
|
1961
|
+
validatedResponse = _chunkYSKO6SPTjs.GetContextBreakdownResponseSchema.parse(response);
|
|
1962
1962
|
break;
|
|
1963
1963
|
case "droid.warmup_cache" /* WARMUP_CACHE */:
|
|
1964
|
-
validatedResponse =
|
|
1964
|
+
validatedResponse = _chunkYSKO6SPTjs.WarmupCacheResponseSchema.parse(response);
|
|
1965
1965
|
break;
|
|
1966
1966
|
default: {
|
|
1967
1967
|
const exhaustiveCheck = pending.method;
|
|
1968
|
-
throw new (0,
|
|
1968
|
+
throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
|
|
1969
1969
|
"Unsupported method in response handler",
|
|
1970
1970
|
{
|
|
1971
1971
|
method: exhaustiveCheck
|
|
@@ -1979,7 +1979,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
1979
1979
|
this.settleRequest(responseId);
|
|
1980
1980
|
pending.resolve(validatedResponse);
|
|
1981
1981
|
} else {
|
|
1982
|
-
const validatedResponse =
|
|
1982
|
+
const validatedResponse = _chunkYSKO6SPTjs.JsonRpcBaseResponseSchema.parse(response);
|
|
1983
1983
|
this.logger.info(
|
|
1984
1984
|
"[DroidClient] Received response for request not in pending map",
|
|
1985
1985
|
{
|
|
@@ -2023,10 +2023,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
this.settleRequest(responseId);
|
|
2025
2025
|
const syntheticFailure = {
|
|
2026
|
-
jsonrpc:
|
|
2026
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
2027
2027
|
type: "response",
|
|
2028
|
-
factoryApiVersion:
|
|
2029
|
-
factoryProtocolVersion:
|
|
2028
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
2029
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
2030
2030
|
id: responseId,
|
|
2031
2031
|
error: {
|
|
2032
2032
|
code,
|
|
@@ -2039,7 +2039,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
async handleEvent(event) {
|
|
2041
2041
|
try {
|
|
2042
|
-
const validatedEvent =
|
|
2042
|
+
const validatedEvent = _chunkYSKO6SPTjs.CliRequestOrNotificationSchema.parse(event);
|
|
2043
2043
|
if (validatedEvent.method === "droid.session_notification" /* SESSION_NOTIFICATION */) {
|
|
2044
2044
|
const notification = validatedEvent.params.notification;
|
|
2045
2045
|
if (notification.type === "agent_turn_completed" /* AGENT_TURN_COMPLETED */) {
|
|
@@ -2074,10 +2074,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2074
2074
|
const code = error instanceof _zod.z.ZodError ? -32600 /* INVALID_REQUEST */ : -32603 /* INTERNAL_ERROR */;
|
|
2075
2075
|
const message = code === -32600 /* INVALID_REQUEST */ ? "Invalid request format" : "Internal error while handling request";
|
|
2076
2076
|
const errorResponse = {
|
|
2077
|
-
jsonrpc:
|
|
2077
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
2078
2078
|
type: "response",
|
|
2079
|
-
factoryApiVersion:
|
|
2080
|
-
factoryProtocolVersion:
|
|
2079
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
2080
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
2081
2081
|
id,
|
|
2082
2082
|
error: {
|
|
2083
2083
|
code,
|
|
@@ -2168,11 +2168,11 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2168
2168
|
);
|
|
2169
2169
|
const handlerResult = await handlerPromise;
|
|
2170
2170
|
if (typeof handlerResult === "string" && handlerResult === "proceed_edit" /* ProceedEdit */) {
|
|
2171
|
-
throw new (0,
|
|
2171
|
+
throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
|
|
2172
2172
|
"Permission handler returned proceed_edit without editedSpecContent"
|
|
2173
2173
|
);
|
|
2174
2174
|
}
|
|
2175
|
-
const parsedHandlerResult =
|
|
2175
|
+
const parsedHandlerResult = _chunkYSKO6SPTjs.RequestPermissionResultSchema.safeParse(
|
|
2176
2176
|
typeof handlerResult === "string" ? { selectedOption: handlerResult } : handlerResult
|
|
2177
2177
|
);
|
|
2178
2178
|
if (parsedHandlerResult.success) {
|
|
@@ -2180,7 +2180,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2180
2180
|
comment = parsedHandlerResult.data.comment;
|
|
2181
2181
|
editedSpecContent = parsedHandlerResult.data.editedSpecContent;
|
|
2182
2182
|
} else {
|
|
2183
|
-
throw new (0,
|
|
2183
|
+
throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
|
|
2184
2184
|
"Permission handler returned invalid result",
|
|
2185
2185
|
{
|
|
2186
2186
|
cause: parsedHandlerResult.error
|
|
@@ -2190,7 +2190,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2190
2190
|
if (!event.params.options.some(
|
|
2191
2191
|
(option) => option.value === selectedOption
|
|
2192
2192
|
)) {
|
|
2193
|
-
throw new (0,
|
|
2193
|
+
throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
|
|
2194
2194
|
`Permission handler selected unavailable option: ${selectedOption}`
|
|
2195
2195
|
);
|
|
2196
2196
|
}
|
|
@@ -2213,9 +2213,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2213
2213
|
this.pendingPermissionRequests.delete(event.id);
|
|
2214
2214
|
const cancelResponse = {
|
|
2215
2215
|
type: "response",
|
|
2216
|
-
jsonrpc:
|
|
2217
|
-
factoryApiVersion:
|
|
2218
|
-
factoryProtocolVersion:
|
|
2216
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
2217
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
2218
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
2219
2219
|
id: event.id,
|
|
2220
2220
|
result: {
|
|
2221
2221
|
selectedOption: "cancel" /* Cancel */
|
|
@@ -2241,9 +2241,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
const response = {
|
|
2243
2243
|
type: "response",
|
|
2244
|
-
jsonrpc:
|
|
2245
|
-
factoryApiVersion:
|
|
2246
|
-
factoryProtocolVersion:
|
|
2244
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
2245
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
2246
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
2247
2247
|
id: event.id,
|
|
2248
2248
|
result: {
|
|
2249
2249
|
selectedOption,
|
|
@@ -2280,11 +2280,11 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2280
2280
|
this.pendingAskUserRequests.delete(event.id);
|
|
2281
2281
|
});
|
|
2282
2282
|
});
|
|
2283
|
-
const parsedResult =
|
|
2283
|
+
const parsedResult = _chunkYSKO6SPTjs.AskUserResultSchema.safeParse(
|
|
2284
2284
|
await handlerPromise
|
|
2285
2285
|
);
|
|
2286
2286
|
if (!parsedResult.success) {
|
|
2287
|
-
throw new (0,
|
|
2287
|
+
throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
|
|
2288
2288
|
"AskUser handler returned invalid result",
|
|
2289
2289
|
{
|
|
2290
2290
|
cause: parsedResult.error
|
|
@@ -2308,9 +2308,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2308
2308
|
);
|
|
2309
2309
|
this.pendingAskUserRequests.delete(event.id);
|
|
2310
2310
|
const cancelResponse = {
|
|
2311
|
-
jsonrpc:
|
|
2312
|
-
factoryApiVersion:
|
|
2313
|
-
factoryProtocolVersion:
|
|
2311
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
2312
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
2313
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
2314
2314
|
type: "response",
|
|
2315
2315
|
id: event.id,
|
|
2316
2316
|
result: {
|
|
@@ -2331,9 +2331,9 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
const response = {
|
|
2333
2333
|
type: "response",
|
|
2334
|
-
jsonrpc:
|
|
2335
|
-
factoryApiVersion:
|
|
2336
|
-
factoryProtocolVersion:
|
|
2334
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
2335
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
2336
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
2337
2337
|
id: event.id,
|
|
2338
2338
|
result
|
|
2339
2339
|
};
|
|
@@ -2345,17 +2345,17 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
static getErrorType(error) {
|
|
2347
2347
|
switch (error.constructor) {
|
|
2348
|
-
case
|
|
2348
|
+
case _chunkYSKO6SPTjs.ConnectionError:
|
|
2349
2349
|
return "ConnectionError" /* CONNECTION_ERROR */;
|
|
2350
|
-
case
|
|
2350
|
+
case _chunkYSKO6SPTjs.ProtocolError:
|
|
2351
2351
|
return "ProtocolError" /* PROTOCOL_ERROR */;
|
|
2352
|
-
case
|
|
2352
|
+
case _chunkYSKO6SPTjs.SessionError:
|
|
2353
2353
|
return "SessionError" /* SESSION_ERROR */;
|
|
2354
|
-
case
|
|
2354
|
+
case _chunkYSKO6SPTjs.TimeoutError:
|
|
2355
2355
|
return "TimeoutError" /* TIMEOUT_ERROR */;
|
|
2356
|
-
case
|
|
2356
|
+
case _chunkYSKO6SPTjs.ProcessExitError:
|
|
2357
2357
|
return "ProcessExitError" /* PROCESS_EXIT_ERROR */;
|
|
2358
|
-
case
|
|
2358
|
+
case _chunkYSKO6SPTjs.DroidClientError:
|
|
2359
2359
|
return "DroidClientError" /* DROID_CLIENT_ERROR */;
|
|
2360
2360
|
default:
|
|
2361
2361
|
return "Error" /* ERROR */;
|
|
@@ -2367,7 +2367,7 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2367
2367
|
message: error.message,
|
|
2368
2368
|
errorType: _DroidClient.getErrorType(error),
|
|
2369
2369
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2370
|
-
...error instanceof
|
|
2370
|
+
...error instanceof _chunkYSKO6SPTjs.ProcessExitError && error.exitCode !== void 0 ? { exitCode: error.exitCode } : {},
|
|
2371
2371
|
error: {
|
|
2372
2372
|
name: error.name,
|
|
2373
2373
|
message: error.message
|
|
@@ -2393,10 +2393,10 @@ var DroidClient = (_class = class _DroidClient extends _events2.default {
|
|
|
2393
2393
|
*/
|
|
2394
2394
|
static createNotificationEvent(notification) {
|
|
2395
2395
|
return {
|
|
2396
|
-
jsonrpc:
|
|
2396
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION2,
|
|
2397
2397
|
type: "notification",
|
|
2398
|
-
factoryApiVersion:
|
|
2399
|
-
factoryProtocolVersion:
|
|
2398
|
+
factoryApiVersion: _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION,
|
|
2399
|
+
factoryProtocolVersion: _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION,
|
|
2400
2400
|
method: "droid.session_notification" /* SESSION_NOTIFICATION */,
|
|
2401
2401
|
params: { notification }
|
|
2402
2402
|
};
|
|
@@ -2652,13 +2652,13 @@ var ManagedProcessImpl = (_class2 = class {
|
|
|
2652
2652
|
|
|
2653
2653
|
get childProcess() {
|
|
2654
2654
|
if (!this._childProcess) {
|
|
2655
|
-
throw new (0,
|
|
2655
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Process not connected");
|
|
2656
2656
|
}
|
|
2657
2657
|
return this._childProcess;
|
|
2658
2658
|
}
|
|
2659
2659
|
setupHandlers() {
|
|
2660
2660
|
if (!this.childProcess.stdout) {
|
|
2661
|
-
throw new (0,
|
|
2661
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to get process stdout");
|
|
2662
2662
|
}
|
|
2663
2663
|
this.readlineInterface = readline.createInterface({
|
|
2664
2664
|
input: this.childProcess.stdout,
|
|
@@ -2685,7 +2685,7 @@ var ManagedProcessImpl = (_class2 = class {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
2687
|
this.childProcess.on("error", (error) => {
|
|
2688
|
-
this.processError = new (0,
|
|
2688
|
+
this.processError = new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
2689
2689
|
describeSpawnError(error, this.spawnContext),
|
|
2690
2690
|
{
|
|
2691
2691
|
error,
|
|
@@ -2730,7 +2730,7 @@ var ManagedProcessImpl = (_class2 = class {
|
|
|
2730
2730
|
this.readlineInterface = null;
|
|
2731
2731
|
}
|
|
2732
2732
|
if (!this.isClosing) {
|
|
2733
|
-
this.processError = new (0,
|
|
2733
|
+
this.processError = new (0, _chunkYSKO6SPTjs.ProcessExitError)(
|
|
2734
2734
|
describeExitError(code, signal),
|
|
2735
2735
|
{
|
|
2736
2736
|
exitCode: _nullishCoalesce(code, () => ( void 0)),
|
|
@@ -2747,24 +2747,24 @@ var ManagedProcessImpl = (_class2 = class {
|
|
|
2747
2747
|
throw this.processError;
|
|
2748
2748
|
}
|
|
2749
2749
|
if (!this._childProcess || !this._childProcess.stdin) {
|
|
2750
|
-
throw new (0,
|
|
2750
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Process not connected");
|
|
2751
2751
|
}
|
|
2752
2752
|
const previousSends = this.queuedSendPromise;
|
|
2753
2753
|
this.queuedSendPromise = (async () => {
|
|
2754
2754
|
await previousSends.catch(() => {
|
|
2755
2755
|
});
|
|
2756
2756
|
if (!this._childProcess || !this._childProcess.stdin || this._childProcess.killed || this.isClosing) {
|
|
2757
|
-
throw new (0,
|
|
2757
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Process disconnected before write");
|
|
2758
2758
|
}
|
|
2759
2759
|
await new Promise((resolve2, reject) => {
|
|
2760
2760
|
try {
|
|
2761
2761
|
if (!this._childProcess || !this._childProcess.stdin) {
|
|
2762
|
-
reject(new (0,
|
|
2762
|
+
reject(new (0, _chunkYSKO6SPTjs.ConnectionError)("Process stdin unavailable"));
|
|
2763
2763
|
return;
|
|
2764
2764
|
}
|
|
2765
2765
|
const stdin = this._childProcess.stdin;
|
|
2766
2766
|
if ("writable" in stdin && !stdin.writable) {
|
|
2767
|
-
reject(new (0,
|
|
2767
|
+
reject(new (0, _chunkYSKO6SPTjs.ConnectionError)("Process stdin is not writable"));
|
|
2768
2768
|
return;
|
|
2769
2769
|
}
|
|
2770
2770
|
const childPid = _optionalChain([this, 'access', _32 => _32._childProcess, 'optionalAccess', _33 => _33.pid]);
|
|
@@ -2780,13 +2780,13 @@ var ManagedProcessImpl = (_class2 = class {
|
|
|
2780
2780
|
const errorMessage = error.message || String(error);
|
|
2781
2781
|
if (errorMessage.includes("EPIPE") || errorMessage.includes("ECONNRESET")) {
|
|
2782
2782
|
reject(
|
|
2783
|
-
new (0,
|
|
2783
|
+
new (0, _chunkYSKO6SPTjs.ConnectionError)("Process stdin closed during write", {
|
|
2784
2784
|
error
|
|
2785
2785
|
})
|
|
2786
2786
|
);
|
|
2787
2787
|
} else {
|
|
2788
2788
|
reject(
|
|
2789
|
-
new (0,
|
|
2789
|
+
new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to write to process stdin", {
|
|
2790
2790
|
error
|
|
2791
2791
|
})
|
|
2792
2792
|
);
|
|
@@ -2810,7 +2810,7 @@ var ManagedProcessImpl = (_class2 = class {
|
|
|
2810
2810
|
}
|
|
2811
2811
|
);
|
|
2812
2812
|
reject(
|
|
2813
|
-
new (0,
|
|
2813
|
+
new (0, _chunkYSKO6SPTjs.ConnectionError)("Error writing to process stdin", {
|
|
2814
2814
|
error: error instanceof Error ? error : new Error(String(error))
|
|
2815
2815
|
})
|
|
2816
2816
|
);
|
|
@@ -3004,7 +3004,7 @@ async function spawnWithWindowsJobObjectRetry(spawnFactory, options = {}) {
|
|
|
3004
3004
|
await sleep(_nullishCoalesce(_nullishCoalesce(backoff[attempt], () => ( backoff[backoff.length - 1])), () => ( 400)));
|
|
3005
3005
|
}
|
|
3006
3006
|
if (lastChild) return lastChild;
|
|
3007
|
-
throw new (0,
|
|
3007
|
+
throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
|
|
3008
3008
|
"spawnWithWindowsJobObjectRetry: exhausted retries without child",
|
|
3009
3009
|
{}
|
|
3010
3010
|
);
|
|
@@ -3109,7 +3109,7 @@ var DroidProcessManager = class {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
);
|
|
3111
3111
|
if (!childProcess.stdout || !childProcess.stdin) {
|
|
3112
|
-
throw new (0,
|
|
3112
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to get process stdio");
|
|
3113
3113
|
}
|
|
3114
3114
|
return new ManagedProcessImpl(
|
|
3115
3115
|
childProcess,
|
|
@@ -3169,7 +3169,7 @@ var DroidProcessManager = class {
|
|
|
3169
3169
|
const planned = this.prepareSpawn(config);
|
|
3170
3170
|
const childProcess = this.invokeNodeSpawn(planned);
|
|
3171
3171
|
if (!childProcess.stdout || !childProcess.stdin) {
|
|
3172
|
-
throw new (0,
|
|
3172
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Failed to get process stdio");
|
|
3173
3173
|
}
|
|
3174
3174
|
return {
|
|
3175
3175
|
logPrefix: planned.logPrefix,
|
|
@@ -3202,7 +3202,7 @@ var ProcessTransport = (_class3 = class {
|
|
|
3202
3202
|
}
|
|
3203
3203
|
async connect() {
|
|
3204
3204
|
if (this.managedProcess && this.managedProcess.isConnected) {
|
|
3205
|
-
throw new (0,
|
|
3205
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Transport already connected");
|
|
3206
3206
|
}
|
|
3207
3207
|
const config = {
|
|
3208
3208
|
execPath: this.options.droidExecPath,
|
|
@@ -3234,7 +3234,7 @@ var ProcessTransport = (_class3 = class {
|
|
|
3234
3234
|
}
|
|
3235
3235
|
async send(message) {
|
|
3236
3236
|
if (!this.managedProcess) {
|
|
3237
|
-
throw new (0,
|
|
3237
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)("Transport not connected");
|
|
3238
3238
|
}
|
|
3239
3239
|
return this.managedProcess.send(message);
|
|
3240
3240
|
}
|
|
@@ -3268,7 +3268,7 @@ var ProcessTransport = (_class3 = class {
|
|
|
3268
3268
|
function resolveApiKey(apiKey) {
|
|
3269
3269
|
const resolved = _nullishCoalesce(apiKey, () => ( process.env.FACTORY_API_KEY));
|
|
3270
3270
|
if (!resolved) {
|
|
3271
|
-
throw new (0,
|
|
3271
|
+
throw new (0, _chunkYSKO6SPTjs.DroidClientError)(
|
|
3272
3272
|
"No Factory API key found. Pass `apiKey` when creating the session, or set the FACTORY_API_KEY environment variable."
|
|
3273
3273
|
);
|
|
3274
3274
|
}
|
|
@@ -3286,7 +3286,7 @@ async function createTransport(options) {
|
|
|
3286
3286
|
...options.env,
|
|
3287
3287
|
FACTORY_API_KEY: resolveApiKey(options.apiKey),
|
|
3288
3288
|
FACTORY_UPSTREAM_CLIENT_TYPE: "sdk" /* SDK */,
|
|
3289
|
-
FACTORY_UPSTREAM_SDK:
|
|
3289
|
+
FACTORY_UPSTREAM_SDK: _chunkYSKO6SPTjs.SDK_IDENTITY
|
|
3290
3290
|
},
|
|
3291
3291
|
observability: options.observability
|
|
3292
3292
|
});
|
|
@@ -3308,7 +3308,7 @@ async function createConfiguredClient(options) {
|
|
|
3308
3308
|
const client = new DroidClient({
|
|
3309
3309
|
transport,
|
|
3310
3310
|
observability: options.observability,
|
|
3311
|
-
getRequestAttribution: () =>
|
|
3311
|
+
getRequestAttribution: () => _chunkYSKO6SPTjs.SDK_REQUEST_ATTRIBUTION
|
|
3312
3312
|
});
|
|
3313
3313
|
setupClientHandlers(client, options);
|
|
3314
3314
|
return { transport, client };
|
|
@@ -3361,7 +3361,7 @@ function buildInitParams(options) {
|
|
|
3361
3361
|
...options.disableBuiltinSkills !== void 0 && {
|
|
3362
3362
|
disableBuiltinSkills: options.disableBuiltinSkills
|
|
3363
3363
|
},
|
|
3364
|
-
tags:
|
|
3364
|
+
tags: _chunkYSKO6SPTjs.withSdkTag.call(void 0, options.tags)
|
|
3365
3365
|
};
|
|
3366
3366
|
}
|
|
3367
3367
|
|
|
@@ -3423,7 +3423,7 @@ function writeJsonError(res, statusCode, message, headers = {}) {
|
|
|
3423
3423
|
});
|
|
3424
3424
|
res.end(
|
|
3425
3425
|
JSON.stringify({
|
|
3426
|
-
jsonrpc:
|
|
3426
|
+
jsonrpc: _chunkYSKO6SPTjs.JSONRPC_VERSION,
|
|
3427
3427
|
error: { code: -32603 /* INTERNAL_ERROR */, message },
|
|
3428
3428
|
id: null
|
|
3429
3429
|
})
|
|
@@ -3628,10 +3628,10 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3628
3628
|
}
|
|
3629
3629
|
async *stream(prompt, options) {
|
|
3630
3630
|
this._ensureNotClosed();
|
|
3631
|
-
yield*
|
|
3631
|
+
yield* _chunkYSKO6SPTjs.streamFromClient.call(void 0,
|
|
3632
3632
|
{
|
|
3633
3633
|
onNotification: (handler) => this._client.onNotification((notification) => {
|
|
3634
|
-
const inner =
|
|
3634
|
+
const inner = _chunkYSKO6SPTjs.extractInnerNotification.call(void 0, notification);
|
|
3635
3635
|
if (inner) handler(inner);
|
|
3636
3636
|
}),
|
|
3637
3637
|
onError: (handler) => this._client.onError(handler),
|
|
@@ -3675,14 +3675,14 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3675
3675
|
async updateSettings(params) {
|
|
3676
3676
|
this._ensureNotClosed();
|
|
3677
3677
|
const revision = this._settingsRevision;
|
|
3678
|
-
const result =
|
|
3678
|
+
const result = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
|
|
3679
3679
|
await this._client.updateSessionSettings(params)
|
|
3680
3680
|
);
|
|
3681
3681
|
if (params.disabledToolIds !== void 0) {
|
|
3682
3682
|
this._runtime.loadParams.disabledToolIds = params.disabledToolIds;
|
|
3683
3683
|
}
|
|
3684
3684
|
if (this._settingsRevision === revision) {
|
|
3685
|
-
this._settings =
|
|
3685
|
+
this._settings = _chunkYSKO6SPTjs.mergeSessionSettings.call(void 0, this._settings, params);
|
|
3686
3686
|
}
|
|
3687
3687
|
return result;
|
|
3688
3688
|
}
|
|
@@ -3699,27 +3699,27 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3699
3699
|
}
|
|
3700
3700
|
async addMcpServer(params) {
|
|
3701
3701
|
this._ensureNotClosed();
|
|
3702
|
-
return
|
|
3702
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.addMcpServer(params));
|
|
3703
3703
|
}
|
|
3704
3704
|
async removeMcpServer(params) {
|
|
3705
3705
|
this._ensureNotClosed();
|
|
3706
|
-
return
|
|
3706
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.removeMcpServer(params));
|
|
3707
3707
|
}
|
|
3708
3708
|
async toggleMcpServer(params) {
|
|
3709
3709
|
this._ensureNotClosed();
|
|
3710
|
-
return
|
|
3710
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.toggleMcpServer(params));
|
|
3711
3711
|
}
|
|
3712
3712
|
async listMcpServers() {
|
|
3713
3713
|
this._ensureNotClosed();
|
|
3714
|
-
return
|
|
3714
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listMcpServers());
|
|
3715
3715
|
}
|
|
3716
3716
|
async listMcpTools() {
|
|
3717
3717
|
this._ensureNotClosed();
|
|
3718
|
-
return
|
|
3718
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listMcpTools()).tools;
|
|
3719
3719
|
}
|
|
3720
3720
|
async listTools(params = {}) {
|
|
3721
3721
|
this._ensureNotClosed();
|
|
3722
|
-
return
|
|
3722
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listTools(params)).tools.map(
|
|
3723
3723
|
({ id: _protocolId, llmId, currentlyAllowed, ...tool2 }) => ({
|
|
3724
3724
|
...tool2,
|
|
3725
3725
|
id: llmId,
|
|
@@ -3729,17 +3729,17 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3729
3729
|
}
|
|
3730
3730
|
async authenticateMcpServer(params) {
|
|
3731
3731
|
this._ensureNotClosed();
|
|
3732
|
-
return
|
|
3732
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
|
|
3733
3733
|
await this._client.authenticateMcpServer(params)
|
|
3734
3734
|
);
|
|
3735
3735
|
}
|
|
3736
3736
|
async listSkills() {
|
|
3737
3737
|
this._ensureNotClosed();
|
|
3738
|
-
return
|
|
3738
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.listSkills());
|
|
3739
3739
|
}
|
|
3740
3740
|
async setSkillDisabled(params) {
|
|
3741
3741
|
this._ensureNotClosed();
|
|
3742
|
-
return
|
|
3742
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
|
|
3743
3743
|
await this._client.setSkillDisabled(
|
|
3744
3744
|
params.skillName,
|
|
3745
3745
|
params.disabled,
|
|
@@ -3749,34 +3749,34 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3749
3749
|
}
|
|
3750
3750
|
async getRewindInfo(params) {
|
|
3751
3751
|
this._ensureNotClosed();
|
|
3752
|
-
return
|
|
3752
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.getRewindInfo(params));
|
|
3753
3753
|
}
|
|
3754
3754
|
async rewind(params) {
|
|
3755
3755
|
const { session, result } = await this._runReplacement(
|
|
3756
|
-
() => this._client.executeRewind(params).then(
|
|
3756
|
+
() => this._client.executeRewind(params).then(_chunkYSKO6SPTjs.unwrapResponseResult)
|
|
3757
3757
|
);
|
|
3758
3758
|
const { newSessionId: _newSessionId, ...metadata } = result;
|
|
3759
3759
|
return { session, ...metadata };
|
|
3760
3760
|
}
|
|
3761
3761
|
async compact(params) {
|
|
3762
3762
|
const { session, result } = await this._runReplacement(
|
|
3763
|
-
() => this._client.compactSession(_nullishCoalesce(params, () => ( {}))).then(
|
|
3763
|
+
() => this._client.compactSession(_nullishCoalesce(params, () => ( {}))).then(_chunkYSKO6SPTjs.unwrapResponseResult)
|
|
3764
3764
|
);
|
|
3765
3765
|
return { session, removedCount: result.removedCount };
|
|
3766
3766
|
}
|
|
3767
3767
|
async fork(params = {}) {
|
|
3768
3768
|
const { session } = await this._runReplacement(
|
|
3769
|
-
() => this._client.forkSession(params).then(
|
|
3769
|
+
() => this._client.forkSession(params).then(_chunkYSKO6SPTjs.unwrapResponseResult)
|
|
3770
3770
|
);
|
|
3771
3771
|
return session;
|
|
3772
3772
|
}
|
|
3773
3773
|
async getContextStats() {
|
|
3774
3774
|
this._ensureNotClosed();
|
|
3775
|
-
return
|
|
3775
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.getContextStats());
|
|
3776
3776
|
}
|
|
3777
3777
|
async rename(params) {
|
|
3778
3778
|
this._ensureNotClosed();
|
|
3779
|
-
|
|
3779
|
+
_chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, await this._client.renameSession(params));
|
|
3780
3780
|
}
|
|
3781
3781
|
onNotification(callback, filter) {
|
|
3782
3782
|
this._ensureNotClosed();
|
|
@@ -3790,13 +3790,13 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
_ensureNotClosed() {
|
|
3792
3792
|
if (this._status === "replaced" && this._replacementSessionId) {
|
|
3793
|
-
throw new (0,
|
|
3793
|
+
throw new (0, _chunkYSKO6SPTjs.SessionReplacedError)(
|
|
3794
3794
|
this._sessionId,
|
|
3795
3795
|
this._replacementSessionId
|
|
3796
3796
|
);
|
|
3797
3797
|
}
|
|
3798
3798
|
if (this._status !== "active") {
|
|
3799
|
-
throw new (0,
|
|
3799
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
3800
3800
|
this._status === "replacing" ? "Session replacement is already in progress." : "Session has been closed. Create a new session to continue."
|
|
3801
3801
|
);
|
|
3802
3802
|
}
|
|
@@ -3804,7 +3804,7 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3804
3804
|
_beginReplacement() {
|
|
3805
3805
|
this._ensureNotClosed();
|
|
3806
3806
|
if (this._activeBridges.size > 0) {
|
|
3807
|
-
throw new (0,
|
|
3807
|
+
throw new (0, _chunkYSKO6SPTjs.ConcurrentStreamError)(this._sessionId);
|
|
3808
3808
|
}
|
|
3809
3809
|
this._status = "replacing";
|
|
3810
3810
|
}
|
|
@@ -3820,11 +3820,11 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3820
3820
|
throw error;
|
|
3821
3821
|
}
|
|
3822
3822
|
if (this._status !== "replacing") {
|
|
3823
|
-
throw new (0,
|
|
3824
|
-
cause: new (0,
|
|
3823
|
+
throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(this._sessionId, result.newSessionId, {
|
|
3824
|
+
cause: new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
3825
3825
|
"Session closed while replacement was in progress."
|
|
3826
3826
|
),
|
|
3827
|
-
rollbackError: new (0,
|
|
3827
|
+
rollbackError: new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
3828
3828
|
"The source session was already closed."
|
|
3829
3829
|
)
|
|
3830
3830
|
});
|
|
@@ -3836,14 +3836,14 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3836
3836
|
}
|
|
3837
3837
|
async _loadReplacement(replacementSessionId) {
|
|
3838
3838
|
try {
|
|
3839
|
-
const loadResult =
|
|
3839
|
+
const loadResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
|
|
3840
3840
|
await this._client.loadSession({
|
|
3841
3841
|
...this._runtime.loadParams,
|
|
3842
3842
|
sessionId: replacementSessionId
|
|
3843
3843
|
})
|
|
3844
3844
|
);
|
|
3845
3845
|
if (this._status !== "replacing") {
|
|
3846
|
-
throw new (0,
|
|
3846
|
+
throw new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
3847
3847
|
"Session closed while replacement was loading."
|
|
3848
3848
|
);
|
|
3849
3849
|
}
|
|
@@ -3864,12 +3864,12 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3864
3864
|
return replacement;
|
|
3865
3865
|
} catch (cause) {
|
|
3866
3866
|
if (this._status !== "replacing") {
|
|
3867
|
-
throw new (0,
|
|
3867
|
+
throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(
|
|
3868
3868
|
this._sessionId,
|
|
3869
3869
|
replacementSessionId,
|
|
3870
3870
|
{
|
|
3871
3871
|
cause,
|
|
3872
|
-
rollbackError: new (0,
|
|
3872
|
+
rollbackError: new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
3873
3873
|
"The source session was closed before rollback."
|
|
3874
3874
|
)
|
|
3875
3875
|
}
|
|
@@ -3877,7 +3877,7 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3877
3877
|
}
|
|
3878
3878
|
let rollbackResult;
|
|
3879
3879
|
try {
|
|
3880
|
-
rollbackResult =
|
|
3880
|
+
rollbackResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
|
|
3881
3881
|
await this._client.loadSession({
|
|
3882
3882
|
...this._runtime.loadParams,
|
|
3883
3883
|
sessionId: this._sessionId
|
|
@@ -3885,18 +3885,18 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3885
3885
|
);
|
|
3886
3886
|
} catch (rollbackError) {
|
|
3887
3887
|
await this._disposeAfterFailedRollback();
|
|
3888
|
-
throw new (0,
|
|
3888
|
+
throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(
|
|
3889
3889
|
this._sessionId,
|
|
3890
3890
|
replacementSessionId,
|
|
3891
3891
|
{ cause, rollbackError }
|
|
3892
3892
|
);
|
|
3893
3893
|
}
|
|
3894
3894
|
if (this._status !== "replacing") {
|
|
3895
|
-
const rollbackError = new (0,
|
|
3895
|
+
const rollbackError = new (0, _chunkYSKO6SPTjs.ConnectionError)(
|
|
3896
3896
|
"Session closed while replacement rollback was loading."
|
|
3897
3897
|
);
|
|
3898
3898
|
await this._disposeAfterFailedRollback();
|
|
3899
|
-
throw new (0,
|
|
3899
|
+
throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(
|
|
3900
3900
|
this._sessionId,
|
|
3901
3901
|
replacementSessionId,
|
|
3902
3902
|
{ cause, rollbackError }
|
|
@@ -3905,22 +3905,22 @@ var DroidSession = (_class5 = class _DroidSession {
|
|
|
3905
3905
|
this._settings = rollbackResult.settings;
|
|
3906
3906
|
this._cwd = rollbackResult.cwd;
|
|
3907
3907
|
this._status = "active";
|
|
3908
|
-
throw new (0,
|
|
3908
|
+
throw new (0, _chunkYSKO6SPTjs.SessionReplacementError)(this._sessionId, replacementSessionId, {
|
|
3909
3909
|
cause
|
|
3910
3910
|
});
|
|
3911
3911
|
}
|
|
3912
3912
|
}
|
|
3913
3913
|
_bindAbortSignal() {
|
|
3914
|
-
this._cleanupAbortSignal =
|
|
3914
|
+
this._cleanupAbortSignal = _chunkYSKO6SPTjs.wireAbortSignal.call(void 0,
|
|
3915
3915
|
this._runtime.abortSignal,
|
|
3916
3916
|
() => void this.close()
|
|
3917
3917
|
);
|
|
3918
3918
|
}
|
|
3919
3919
|
_bindMetadataNotifications() {
|
|
3920
3920
|
const unsubscribe = this._client.onNotification((notification) => {
|
|
3921
|
-
const inner =
|
|
3921
|
+
const inner = _chunkYSKO6SPTjs.extractInnerNotification.call(void 0, notification);
|
|
3922
3922
|
if (_optionalChain([inner, 'optionalAccess', _53 => _53.type]) === "settings_updated" /* SETTINGS_UPDATED */) {
|
|
3923
|
-
this._settings =
|
|
3923
|
+
this._settings = _chunkYSKO6SPTjs.mergeSessionSettings.call(void 0, this._settings, inner.settings);
|
|
3924
3924
|
this._settingsRevision++;
|
|
3925
3925
|
} else if (_optionalChain([inner, 'optionalAccess', _54 => _54.type]) === "session_working_directory_changed" /* SESSION_WORKING_DIRECTORY_CHANGED */) {
|
|
3926
3926
|
this._cwd = inner.cwd;
|
|
@@ -3960,7 +3960,7 @@ function createReplacementLoadParams(options, mcpServers) {
|
|
|
3960
3960
|
async function createSession(options = {}) {
|
|
3961
3961
|
const { client } = await createConfiguredClient(options);
|
|
3962
3962
|
let cleanupInitAbortSignal = _optionalChain([options, 'access', _57 => _57.abortSignal, 'optionalAccess', _58 => _58.aborted]) ? () => {
|
|
3963
|
-
} :
|
|
3963
|
+
} : _chunkYSKO6SPTjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
|
|
3964
3964
|
void closeQuietly(client);
|
|
3965
3965
|
});
|
|
3966
3966
|
let sdkMcpServers;
|
|
@@ -3970,7 +3970,7 @@ async function createSession(options = {}) {
|
|
|
3970
3970
|
...options,
|
|
3971
3971
|
mcpServers: sdkMcpServers.mcpServers
|
|
3972
3972
|
});
|
|
3973
|
-
const initResult =
|
|
3973
|
+
const initResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
|
|
3974
3974
|
await client.initializeSession(initParams)
|
|
3975
3975
|
);
|
|
3976
3976
|
const session = new DroidSession(
|
|
@@ -4003,7 +4003,7 @@ async function createSession(options = {}) {
|
|
|
4003
4003
|
async function resumeSession(sessionId, options = {}) {
|
|
4004
4004
|
const { client } = await createConfiguredClient(options);
|
|
4005
4005
|
let cleanupLoadAbortSignal = _optionalChain([options, 'access', _63 => _63.abortSignal, 'optionalAccess', _64 => _64.aborted]) ? () => {
|
|
4006
|
-
} :
|
|
4006
|
+
} : _chunkYSKO6SPTjs.wireAbortSignal.call(void 0, options.abortSignal, () => {
|
|
4007
4007
|
void closeQuietly(client);
|
|
4008
4008
|
});
|
|
4009
4009
|
let sdkMcpServers;
|
|
@@ -4013,7 +4013,7 @@ async function resumeSession(sessionId, options = {}) {
|
|
|
4013
4013
|
options,
|
|
4014
4014
|
sdkMcpServers.mcpServers
|
|
4015
4015
|
);
|
|
4016
|
-
const loadResult =
|
|
4016
|
+
const loadResult = _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0,
|
|
4017
4017
|
await client.loadSession({ sessionId, ...replacementLoadParams })
|
|
4018
4018
|
);
|
|
4019
4019
|
const session = new DroidSession(
|
|
@@ -4046,7 +4046,7 @@ async function run(prompt, options = {}) {
|
|
|
4046
4046
|
...options,
|
|
4047
4047
|
includePartialMessages: false
|
|
4048
4048
|
})) {
|
|
4049
|
-
if (msg.type ===
|
|
4049
|
+
if (msg.type === _chunkYSKO6SPTjs.DroidMessageType.Result) {
|
|
4050
4050
|
return msg;
|
|
4051
4051
|
}
|
|
4052
4052
|
}
|
|
@@ -4121,7 +4121,7 @@ function loadSettingsFile(directory, sessionId) {
|
|
|
4121
4121
|
if (!buf) return null;
|
|
4122
4122
|
const parsed = parseJsonBuffer(buf);
|
|
4123
4123
|
if (parsed === null) return null;
|
|
4124
|
-
const result =
|
|
4124
|
+
const result = _chunkYSKO6SPTjs.SessionSettingsFileSchema.safeParse(parsed);
|
|
4125
4125
|
return result.success ? result.data : null;
|
|
4126
4126
|
}
|
|
4127
4127
|
function getMissionMetadataFromTags(settings) {
|
|
@@ -4143,7 +4143,7 @@ function parseSessionFile(candidate, ctx) {
|
|
|
4143
4143
|
const scanned = scanBufferForLines(buf);
|
|
4144
4144
|
const firstParsed = parseJsonBuffer(scanned.firstLine);
|
|
4145
4145
|
if (firstParsed === null) return null;
|
|
4146
|
-
const firstResult =
|
|
4146
|
+
const firstResult = _chunkYSKO6SPTjs.SessionStartEventSchema.safeParse(firstParsed);
|
|
4147
4147
|
if (!firstResult.success) return null;
|
|
4148
4148
|
const summary = firstResult.data;
|
|
4149
4149
|
if (ctx.requiredCwd !== void 0 && (summary.cwd === void 0 || path2.resolve(summary.cwd) !== ctx.requiredCwd)) {
|
|
@@ -4153,7 +4153,7 @@ function parseSessionFile(candidate, ctx) {
|
|
|
4153
4153
|
const settings = candidate.siblingNames.has(settingsName) ? loadSettingsFile(candidate.directory, candidate.sessionId) : null;
|
|
4154
4154
|
if (_optionalChain([settings, 'optionalAccess', _72 => _72.archivedAt])) return null;
|
|
4155
4155
|
const tagMeta = getMissionMetadataFromTags(settings);
|
|
4156
|
-
const decompSessionType = _nullishCoalesce(summary.decompSessionType, () => (
|
|
4156
|
+
const decompSessionType = _nullishCoalesce(summary.decompSessionType, () => ( _chunkYSKO6SPTjs.SessionStartDecompSessionTypeSchema.safeParse(tagMeta.decompSessionType).data));
|
|
4157
4157
|
const messageCount = Math.max(0, scanned.nonEmptyLineCount - 1);
|
|
4158
4158
|
return {
|
|
4159
4159
|
id: candidate.sessionId,
|
|
@@ -4285,7 +4285,7 @@ async function listModels(options = {}) {
|
|
|
4285
4285
|
const response = await client.listModels({
|
|
4286
4286
|
...includeDisabled !== void 0 && { includeDisabled }
|
|
4287
4287
|
});
|
|
4288
|
-
return
|
|
4288
|
+
return _chunkYSKO6SPTjs.unwrapResponseResult.call(void 0, response).models;
|
|
4289
4289
|
} finally {
|
|
4290
4290
|
await closeQuietly(client);
|
|
4291
4291
|
}
|
|
@@ -4739,5 +4739,6 @@ async function listModels(options = {}) {
|
|
|
4739
4739
|
|
|
4740
4740
|
|
|
4741
4741
|
|
|
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;
|
|
4742
|
+
|
|
4743
|
+
exports.AbortError = _chunkYSKO6SPTjs.AbortError; exports.AddMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.AddMcpServerRequestParamsSchema; exports.AddMcpServerRequestSchema = _chunkYSKO6SPTjs.AddMcpServerRequestSchema; exports.AddMcpServerResponseSchema = _chunkYSKO6SPTjs.AddMcpServerResponseSchema; exports.AddMcpServerResultSchema = _chunkYSKO6SPTjs.AddMcpServerResultSchema; exports.AddUserMessageRequestParamsSchema = _chunkYSKO6SPTjs.AddUserMessageRequestParamsSchema; exports.AddUserMessageRequestSchema = _chunkYSKO6SPTjs.AddUserMessageRequestSchema; exports.AddUserMessageResponseSchema = _chunkYSKO6SPTjs.AddUserMessageResponseSchema; exports.AddUserMessageResultSchema = _chunkYSKO6SPTjs.AddUserMessageResultSchema; exports.ApplyPatchToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.ApplyPatchToolConfirmationDetailsSchema; exports.AskUserCollectedAnswerSchema = _chunkYSKO6SPTjs.AskUserCollectedAnswerSchema; exports.AskUserConfirmationDetailsSchema = _chunkYSKO6SPTjs.AskUserConfirmationDetailsSchema; exports.AskUserQuestionSchema = _chunkYSKO6SPTjs.AskUserQuestionSchema; exports.AskUserRequestParamsSchema = _chunkYSKO6SPTjs.AskUserRequestParamsSchema; exports.AskUserRequestSchema = _chunkYSKO6SPTjs.AskUserRequestSchema; exports.AskUserResponseSchema = _chunkYSKO6SPTjs.AskUserResponseSchema; exports.AskUserResultSchema = _chunkYSKO6SPTjs.AskUserResultSchema; exports.AssistantMessageRetractedNotificationSchema = _chunkYSKO6SPTjs.AssistantMessageRetractedNotificationSchema; exports.AssistantTextCompleteNotificationSchema = _chunkYSKO6SPTjs.AssistantTextCompleteNotificationSchema; exports.AssistantTextDeltaNotificationSchema = _chunkYSKO6SPTjs.AssistantTextDeltaNotificationSchema; exports.AuthenticateMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerRequestParamsSchema; exports.AuthenticateMcpServerRequestSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerRequestSchema; exports.AuthenticateMcpServerResponseSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerResponseSchema; exports.AuthenticateMcpServerResultSchema = _chunkYSKO6SPTjs.AuthenticateMcpServerResultSchema; exports.AutonomyLevel = _chunkYSKO6SPTjs.AutonomyLevel; exports.AvailableModelConfigSchema = _chunkYSKO6SPTjs.AvailableModelConfigSchema; exports.Base64ImageSourceSchema = _chunkYSKO6SPTjs.Base64ImageSourceSchema; exports.BaseNotificationSchema = _chunkYSKO6SPTjs.BaseNotificationSchema; exports.BaseRequestSchema = _chunkYSKO6SPTjs.BaseRequestSchema; exports.BaseResponseFailureSchema = _chunkYSKO6SPTjs.BaseResponseFailureSchema; exports.BaseResponseSuccessSchema = _chunkYSKO6SPTjs.BaseResponseSuccessSchema; exports.CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC = CLI_JSONRPC_CHILD_SPAWN_LATENCY_METRIC; exports.COMPACTION_TIMEOUT = _chunkYSKO6SPTjs.COMPACTION_TIMEOUT; exports.CancelMcpAuthRequestParamsSchema = _chunkYSKO6SPTjs.CancelMcpAuthRequestParamsSchema; exports.CancelMcpAuthRequestSchema = _chunkYSKO6SPTjs.CancelMcpAuthRequestSchema; exports.CancelMcpAuthResponseSchema = _chunkYSKO6SPTjs.CancelMcpAuthResponseSchema; exports.CancelMcpAuthResultSchema = _chunkYSKO6SPTjs.CancelMcpAuthResultSchema; exports.ChangeWorkingDirectoryRequestParamsSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryRequestParamsSchema; exports.ChangeWorkingDirectoryRequestSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryRequestSchema; exports.ChangeWorkingDirectoryResponseSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResponseSchema; exports.ChangeWorkingDirectoryResultSchema = _chunkYSKO6SPTjs.ChangeWorkingDirectoryResultSchema; exports.ClearMcpAuthRequestParamsSchema = _chunkYSKO6SPTjs.ClearMcpAuthRequestParamsSchema; exports.ClearMcpAuthRequestSchema = _chunkYSKO6SPTjs.ClearMcpAuthRequestSchema; exports.ClearMcpAuthResponseSchema = _chunkYSKO6SPTjs.ClearMcpAuthResponseSchema; exports.ClearMcpAuthResultSchema = _chunkYSKO6SPTjs.ClearMcpAuthResultSchema; exports.CliRequestOrNotificationSchema = _chunkYSKO6SPTjs.CliRequestOrNotificationSchema; exports.ClientDestroyedError = _chunkYSKO6SPTjs.ClientDestroyedError; exports.ClientRequestSchema = _chunkYSKO6SPTjs.ClientRequestSchema; exports.ClientUiSurface = _chunkYSKO6SPTjs.ClientUiSurface; exports.CloseSessionRequestParamsSchema = _chunkYSKO6SPTjs.CloseSessionRequestParamsSchema; exports.CloseSessionRequestSchema = _chunkYSKO6SPTjs.CloseSessionRequestSchema; exports.CloseSessionResponseSchema = _chunkYSKO6SPTjs.CloseSessionResponseSchema; exports.CloseSessionResultSchema = _chunkYSKO6SPTjs.CloseSessionResultSchema; exports.CompactSessionRequestParamsSchema = _chunkYSKO6SPTjs.CompactSessionRequestParamsSchema; exports.CompactSessionRequestSchema = _chunkYSKO6SPTjs.CompactSessionRequestSchema; exports.CompactSessionResponseSchema = _chunkYSKO6SPTjs.CompactSessionResponseSchema; exports.CompactSessionResultSchema = _chunkYSKO6SPTjs.CompactSessionResultSchema; exports.ComputeLimitExceededError = _chunkYSKO6SPTjs.ComputeLimitExceededError; exports.ComputerConnectAttemptTrigger = _chunkYSKO6SPTjs.ComputerConnectAttemptTrigger; exports.ComputerConnectStartType = _chunkYSKO6SPTjs.ComputerConnectStartType; exports.ComputerListResponseSchema = _chunkYSKO6SPTjs.ComputerListResponseSchema; exports.ComputerMetricSchema = _chunkYSKO6SPTjs.ComputerMetricSchema; exports.ComputerMetricsResponseSchema = _chunkYSKO6SPTjs.ComputerMetricsResponseSchema; exports.ComputerSchema = _chunkYSKO6SPTjs.ComputerSchema; exports.ConcurrentStreamError = _chunkYSKO6SPTjs.ConcurrentStreamError; exports.ConnectionClosedError = _chunkYSKO6SPTjs.ConnectionClosedError; exports.ConnectionError = _chunkYSKO6SPTjs.ConnectionError; exports.ConnectionFailureReason = _chunkYSKO6SPTjs.ConnectionFailureReason; exports.ContentBlockSchema = _chunkYSKO6SPTjs.ContentBlockSchema; exports.ContextBreakdownCategorySchema = _chunkYSKO6SPTjs.ContextBreakdownCategorySchema; exports.ContextBreakdownResultSchema = _chunkYSKO6SPTjs.GetContextBreakdownResultSchema; exports.ContextStatsAccuracy = _chunkYSKO6SPTjs.ContextStatsAccuracy; exports.ContextStatsSchema = _chunkYSKO6SPTjs.ContextStatsSchema; exports.CreateMessageNotificationSchema = _chunkYSKO6SPTjs.CreateMessageNotificationSchema; exports.CreateToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.CreateToolConfirmationDetailsSchema; exports.DEFAULT_LOCAL_DAEMON_WS_URL = _chunkYSKO6SPTjs.DEFAULT_LOCAL_DAEMON_WS_URL; exports.DEFAULT_REQUEST_TIMEOUT = _chunkYSKO6SPTjs.DEFAULT_REQUEST_TIMEOUT; exports.DaemonAuthenticationMode = _chunkYSKO6SPTjs.DaemonAuthenticationMode; exports.DaemonClient = _chunkYSKO6SPTjs.DaemonClient; exports.DaemonClientMetaError = _chunkYSKO6SPTjs.MetaError; exports.DaemonDroidEvent = _chunkYSKO6SPTjs.DaemonDroidEvent; exports.DaemonRequestPermissionSchema = _chunkYSKO6SPTjs.DaemonRequestPermissionSchema; exports.DaemonSessionController = _chunkYSKO6SPTjs.DaemonSessionController; exports.DecompSessionType = _chunkYSKO6SPTjs.DecompSessionType; exports.DiscoveredIssueSchema = _chunkYSKO6SPTjs.DiscoveredIssueSchema; exports.DismissalRecordSchema = _chunkYSKO6SPTjs.DismissalRecordSchema; exports.DismissalType = _chunkYSKO6SPTjs.DismissalType; exports.DocumentBlockSchema = _chunkYSKO6SPTjs.DocumentBlockSchema; exports.DocumentSourceSchema = _chunkYSKO6SPTjs.DocumentSourceSchema; exports.DroidClient = DroidClient; exports.DroidClientError = _chunkYSKO6SPTjs.DroidClientError; exports.DroidClientEvent = DroidClientEvent; exports.DroidClientMethod = _chunkYSKO6SPTjs.DroidClientMethod; exports.DroidErrorType = _chunkYSKO6SPTjs.DroidErrorType; exports.DroidEvent = _chunkYSKO6SPTjs.DroidEvent; exports.DroidHookEventSchema = _chunkYSKO6SPTjs.DroidHookEventSchema; exports.DroidHookExecutionResultSchema = _chunkYSKO6SPTjs.DroidHookExecutionResultSchema; exports.DroidHookOutputSchema = _chunkYSKO6SPTjs.DroidHookOutputSchema; exports.DroidHookSpecificOutputSchema = _chunkYSKO6SPTjs.DroidHookSpecificOutputSchema; exports.DroidInteractionMode = _chunkYSKO6SPTjs.DroidInteractionMode; exports.DroidMessageType = _chunkYSKO6SPTjs.DroidMessageType; exports.DroidProcessManager = DroidProcessManager; exports.DroidProcessMode = DroidProcessMode; exports.DroidServerMethod = _chunkYSKO6SPTjs.DroidServerMethod; exports.DroidSession = DroidSession; exports.DroidWorkingState = _chunkYSKO6SPTjs.DroidWorkingState; exports.DroidWorkingStateChangedNotificationSchema = _chunkYSKO6SPTjs.DroidWorkingStateChangedNotificationSchema; exports.EditToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.EditToolConfirmationDetailsSchema; exports.EmptyResultSchema = _chunkYSKO6SPTjs.EmptyResultSchema; exports.ErrorDetailSchema = _chunkYSKO6SPTjs.ErrorDetailSchema; exports.ErrorNotificationSchema = _chunkYSKO6SPTjs.ErrorNotificationSchema; exports.ExecToolInfoSchema = _chunkYSKO6SPTjs.ExecToolInfoSchema; exports.ExecuteRewindRequestParamsSchema = _chunkYSKO6SPTjs.ExecuteRewindRequestParamsSchema; exports.ExecuteRewindRequestSchema = _chunkYSKO6SPTjs.ExecuteRewindRequestSchema; exports.ExecuteRewindResponseSchema = _chunkYSKO6SPTjs.ExecuteRewindResponseSchema; exports.ExecuteRewindResultSchema = _chunkYSKO6SPTjs.ExecuteRewindResultSchema; exports.ExecuteToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.ExecuteToolConfirmationDetailsSchema; exports.ExitSpecModeConfirmationDetailsSchema = _chunkYSKO6SPTjs.ExitSpecModeConfirmationDetailsSchema; exports.FACTORY_CLIENT_HEADER = _chunkYSKO6SPTjs.FACTORY_CLIENT_HEADER; exports.FACTORY_CLIENT_VERSION = _chunkYSKO6SPTjs.FACTORY_CLIENT_VERSION; exports.FACTORY_PROTOCOL_VERSION = _chunkYSKO6SPTjs.FACTORY_PROTOCOL_VERSION2; exports.FactoryDaemonTransport = _chunkYSKO6SPTjs.FactoryDaemonTransport; exports.FactoryDroidMessageRole = _chunkYSKO6SPTjs.FactoryDroidMessageRole; exports.FactoryDroidMessageSchema = _chunkYSKO6SPTjs.FactoryDroidMessageSchema; exports.FeatureStatus = _chunkYSKO6SPTjs.FeatureStatus; exports.FeatureSuccessState = _chunkYSKO6SPTjs.FeatureSuccessState; exports.FeatureSuccessStateSchema = _chunkYSKO6SPTjs.FeatureSuccessStateSchema; exports.ForkSessionRequestParamsSchema = _chunkYSKO6SPTjs.ForkSessionRequestParamsSchema; exports.ForkSessionRequestSchema = _chunkYSKO6SPTjs.ForkSessionRequestSchema; exports.ForkSessionResponseSchema = _chunkYSKO6SPTjs.ForkSessionResponseSchema; exports.ForkSessionResultSchema = _chunkYSKO6SPTjs.ForkSessionResultSchema; exports.GetContextStatsRequestParamsSchema = _chunkYSKO6SPTjs.GetContextStatsRequestParamsSchema; exports.GetContextStatsRequestSchema = _chunkYSKO6SPTjs.GetContextStatsRequestSchema; exports.GetContextStatsResponseSchema = _chunkYSKO6SPTjs.GetContextStatsResponseSchema; exports.GetContextStatsResultSchema = _chunkYSKO6SPTjs.ContextStatsSchema; exports.GetRewindInfoRequestParamsSchema = _chunkYSKO6SPTjs.GetRewindInfoRequestParamsSchema; exports.GetRewindInfoRequestSchema = _chunkYSKO6SPTjs.GetRewindInfoRequestSchema; exports.GetRewindInfoResponseSchema = _chunkYSKO6SPTjs.GetRewindInfoResponseSchema; exports.GetRewindInfoResultSchema = _chunkYSKO6SPTjs.GetRewindInfoResultSchema; exports.GitRepoInfoSchema = _chunkYSKO6SPTjs.GitRepoInfoSchema; exports.HandoffItemsDismissedEntrySchema = _chunkYSKO6SPTjs.HandoffItemsDismissedEntrySchema; exports.HandoffSchema = _chunkYSKO6SPTjs.HandoffSchema; exports.HookCommandSchema = _chunkYSKO6SPTjs.HookCommandSchema; exports.HookExecutionCompletedNotificationSchema = _chunkYSKO6SPTjs.HookExecutionCompletedNotificationSchema; exports.HookExecutionStartedNotificationSchema = _chunkYSKO6SPTjs.HookExecutionStartedNotificationSchema; exports.HookResultSchema = _chunkYSKO6SPTjs.HookResultSchema; exports.HttpHeaderSchema = _chunkYSKO6SPTjs.HttpHeaderSchema; exports.HttpMcpConfigSchema = _chunkYSKO6SPTjs.HttpMcpSchema; exports.IPC_DAEMON_URL = _chunkYSKO6SPTjs.IPC_DAEMON_URL; exports.ImageBlockSchema = _chunkYSKO6SPTjs.ImageBlockSchema; exports.InProcessDaemonClientTransport = _chunkYSKO6SPTjs.InProcessDaemonClientTransport; exports.InitializeSessionRequestParamsSchema = _chunkYSKO6SPTjs.InitializeSessionRequestParamsSchema; exports.InitializeSessionRequestSchema = _chunkYSKO6SPTjs.InitializeSessionRequestSchema; exports.InitializeSessionResponseSchema = _chunkYSKO6SPTjs.InitializeSessionResponseSchema; exports.InitializeSessionResultSchema = _chunkYSKO6SPTjs.InitializeSessionResultSchema2; exports.InteractiveCheckSchema = _chunkYSKO6SPTjs.InteractiveCheckSchema; exports.InterruptSessionRequestParamsSchema = _chunkYSKO6SPTjs.InterruptSessionRequestParamsSchema; exports.InterruptSessionRequestSchema = _chunkYSKO6SPTjs.InterruptSessionRequestSchema; exports.InterruptSessionResponseSchema = _chunkYSKO6SPTjs.InterruptSessionResponseSchema; exports.InterruptSessionResultSchema = _chunkYSKO6SPTjs.InterruptSessionResultSchema; exports.InvalidSessionCwdError = _chunkYSKO6SPTjs.InvalidSessionCwdError; exports.IpcDaemonClientTransport = _chunkYSKO6SPTjs.IpcDaemonClientTransport; exports.IssueSeverity = _chunkYSKO6SPTjs.IssueSeverity; exports.JSONRPC_VERSION = _chunkYSKO6SPTjs.JSONRPC_VERSION3; exports.JsonArraySchema = _chunkYSKO6SPTjs.JsonArraySchema; exports.JsonObjectSchema = _chunkYSKO6SPTjs.JsonObjectSchema; exports.JsonRpcEnvelopeSchema = _chunkYSKO6SPTjs.JsonRpcEnvelopeSchema; exports.JsonRpcErrorCode = _chunkYSKO6SPTjs.JsonRpcErrorCode; exports.JsonRpcErrorSchema = _chunkYSKO6SPTjs.JsonRpcErrorSchema; exports.JsonRpcMessageSchema = _chunkYSKO6SPTjs.JsonRpcMessageSchema; exports.JsonRpcMessageType = _chunkYSKO6SPTjs.JsonRpcMessageType; exports.JsonRpcNotificationSchema = _chunkYSKO6SPTjs.JsonRpcNotificationSchema; exports.JsonRpcRequestError = _chunkYSKO6SPTjs.JsonRpcRequestError; exports.JsonRpcRequestSchema = _chunkYSKO6SPTjs.JsonRpcRequestSchema; exports.JsonRpcResponseFailureSchema = _chunkYSKO6SPTjs.JsonRpcResponseFailureSchema; exports.JsonRpcResponseSchema = _chunkYSKO6SPTjs.JsonRpcResponseSchema; exports.JsonRpcResponseSuccessSchema = _chunkYSKO6SPTjs.JsonRpcResponseSuccessSchema; exports.JsonValueSchema = _chunkYSKO6SPTjs.JsonValueSchema; exports.KillWorkerSessionRequestParamsSchema = _chunkYSKO6SPTjs.KillWorkerSessionRequestParamsSchema; exports.KillWorkerSessionRequestSchema = _chunkYSKO6SPTjs.KillWorkerSessionRequestSchema; exports.KillWorkerSessionResponseSchema = _chunkYSKO6SPTjs.KillWorkerSessionResponseSchema; exports.KillWorkerSessionResultSchema = _chunkYSKO6SPTjs.KillWorkerSessionResultSchema; exports.LEGACY_FACTORY_API_VERSION = _chunkYSKO6SPTjs.LEGACY_FACTORY_API_VERSION2; exports.LOCAL_MACHINE_ID = _chunkYSKO6SPTjs.LOCAL_MACHINE_ID; exports.ListMcpRegistryRequestParamsSchema = _chunkYSKO6SPTjs.ListMcpRegistryRequestParamsSchema; exports.ListMcpRegistryRequestSchema = _chunkYSKO6SPTjs.ListMcpRegistryRequestSchema; exports.ListMcpRegistryResponseSchema = _chunkYSKO6SPTjs.ListMcpRegistryResponseSchema; exports.ListMcpRegistryResultSchema = _chunkYSKO6SPTjs.ListMcpRegistryResultSchema; exports.ListMcpServersRequestParamsSchema = _chunkYSKO6SPTjs.ListMcpServersRequestParamsSchema; exports.ListMcpServersRequestSchema = _chunkYSKO6SPTjs.ListMcpServersRequestSchema; exports.ListMcpServersResponseSchema = _chunkYSKO6SPTjs.ListMcpServersResponseSchema; exports.ListMcpServersResultSchema = _chunkYSKO6SPTjs.ListMcpServersResultSchema; exports.ListMcpToolsRequestParamsSchema = _chunkYSKO6SPTjs.ListMcpToolsRequestParamsSchema; exports.ListMcpToolsRequestSchema = _chunkYSKO6SPTjs.ListMcpToolsRequestSchema; exports.ListMcpToolsResponseSchema = _chunkYSKO6SPTjs.ListMcpToolsResponseSchema; exports.ListMcpToolsResultSchema = _chunkYSKO6SPTjs.ListMcpToolsResultSchema; exports.ListModelsOptionsSchema = _chunkYSKO6SPTjs.ListModelsOptionsSchema; exports.ListModelsResultSchema = _chunkYSKO6SPTjs.ListModelsResultSchema; exports.ListSkillsRequestParamsSchema = _chunkYSKO6SPTjs.ListSkillsRequestParamsSchema; exports.ListSkillsRequestSchema = _chunkYSKO6SPTjs.ListSkillsRequestSchema; exports.ListSkillsResponseSchema = _chunkYSKO6SPTjs.ListSkillsResponseSchema; exports.ListSkillsResultSchema = _chunkYSKO6SPTjs.ListSkillsResultSchema; exports.ListToolsRequestParamsSchema = _chunkYSKO6SPTjs.ListToolsRequestParamsSchema; exports.ListToolsRequestSchema = _chunkYSKO6SPTjs.ListToolsRequestSchema; exports.ListToolsResponseSchema = _chunkYSKO6SPTjs.ListToolsResponseSchema; exports.ListToolsResultSchema = _chunkYSKO6SPTjs.ListToolsResultSchema; exports.LoadSessionRequestParamsSchema = _chunkYSKO6SPTjs.LoadSessionRequestParamsSchema; exports.LoadSessionRequestSchema = _chunkYSKO6SPTjs.LoadSessionRequestSchema; exports.LoadSessionResponseSchema = _chunkYSKO6SPTjs.LoadSessionResponseSchema; exports.LoadSessionResultSchema = _chunkYSKO6SPTjs.LoadSessionResultSchema; exports.MACHINE_TYPE_WEBSOCKET_OVERRIDES = _chunkYSKO6SPTjs.MACHINE_TYPE_WEBSOCKET_OVERRIDES; exports.MANAGED_COMPUTER_MAX_RETRIES = _chunkYSKO6SPTjs.MANAGED_COMPUTER_MAX_RETRIES; exports.MCP_AUTH_TIMEOUT = _chunkYSKO6SPTjs.MCP_AUTH_TIMEOUT; exports.MachineTemplateBuildStatusSchema = _chunkYSKO6SPTjs.MachineTemplateBuildStatusSchema; exports.MachineTemplateListResponseSchema = _chunkYSKO6SPTjs.MachineTemplateListResponseSchema; exports.MachineTemplateSchema = _chunkYSKO6SPTjs.MachineTemplateSchema; exports.MachineType = _chunkYSKO6SPTjs.MachineType; exports.ManagedProcessImpl = ManagedProcessImpl; exports.McpAuthCompletedNotificationSchema = _chunkYSKO6SPTjs.McpAuthCompletedNotificationSchema; exports.McpAuthOutcome = _chunkYSKO6SPTjs.McpAuthOutcome; exports.McpAuthRequiredNotificationSchema = _chunkYSKO6SPTjs.McpAuthRequiredNotificationSchema; exports.McpHttpServerConfigFieldsSchema = _chunkYSKO6SPTjs.McpHttpServerConfigFieldsSchema; exports.McpRegistryServerSchema = _chunkYSKO6SPTjs.McpRegistryServerSchema; exports.McpServerConfigSchema = _chunkYSKO6SPTjs.McpServerConfigSchema; exports.McpServerStatus = _chunkYSKO6SPTjs.McpServerStatus; exports.McpServerStatusInfoSchema = _chunkYSKO6SPTjs.McpServerStatusInfoSchema; exports.McpServerType = _chunkYSKO6SPTjs.McpServerType; exports.McpSseServerConfigFieldsSchema = _chunkYSKO6SPTjs.McpSseServerConfigFieldsSchema; exports.McpStatus = _chunkYSKO6SPTjs.McpStatus; exports.McpStatusChangedNotificationSchema = _chunkYSKO6SPTjs.McpStatusChangedNotificationSchema; exports.McpStatusSummarySchema = _chunkYSKO6SPTjs.McpStatusSummarySchema; exports.McpStdioServerConfigFieldsSchema = _chunkYSKO6SPTjs.McpStdioServerConfigFieldsSchema; exports.McpToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.McpToolConfirmationDetailsSchema; exports.McpToolInfoSchema = _chunkYSKO6SPTjs.McpToolInfoSchema; exports.McpToolInputSchemaSchema = _chunkYSKO6SPTjs.McpToolInputSchemaSchema; exports.MessageVisibility = _chunkYSKO6SPTjs.MessageVisibility; exports.Metric = _chunkYSKO6SPTjs.Metric; exports.MilestoneValidationTriggeredEntrySchema = _chunkYSKO6SPTjs.MilestoneValidationTriggeredEntrySchema; exports.MissionAcceptedEntrySchema = _chunkYSKO6SPTjs.MissionAcceptedEntrySchema; exports.MissionFeatureSchema = _chunkYSKO6SPTjs.MissionFeatureSchema; exports.MissionFeaturesChangedNotificationSchema = _chunkYSKO6SPTjs.MissionFeaturesChangedNotificationSchema; exports.MissionHeartbeatNotificationSchema = _chunkYSKO6SPTjs.MissionHeartbeatNotificationSchema; exports.MissionPausedEntrySchema = _chunkYSKO6SPTjs.MissionPausedEntrySchema; exports.MissionProgressEntryNotificationSchema = _chunkYSKO6SPTjs.MissionProgressEntryNotificationSchema; exports.MissionResumedEntrySchema = _chunkYSKO6SPTjs.MissionResumedEntrySchema; exports.MissionRunStartedEntrySchema = _chunkYSKO6SPTjs.MissionRunStartedEntrySchema; exports.MissionSnapshotSchema = _chunkYSKO6SPTjs.MissionStateSchema; exports.MissionState = _chunkYSKO6SPTjs.MissionState; exports.MissionStateChangedNotificationSchema = _chunkYSKO6SPTjs.MissionStateChangedNotificationSchema; exports.MissionWorkerCompletedNotificationSchema = _chunkYSKO6SPTjs.MissionWorkerCompletedNotificationSchema; exports.MissionWorkerStartedNotificationSchema = _chunkYSKO6SPTjs.MissionWorkerStartedNotificationSchema; exports.ModelInfoSchema = _chunkYSKO6SPTjs.ModelInfoSchema; exports.ModelMetadataSchema = _chunkYSKO6SPTjs.ModelMetadataSchema; exports.ModelProvider = _chunkYSKO6SPTjs.ModelProvider; exports.MultiMissionStateManager = _chunkYSKO6SPTjs.MultiMissionStateManager; exports.MultiSessionStateManager = _chunkYSKO6SPTjs.MultiSessionStateManager; exports.OtelTracing = _chunkYSKO6SPTjs.OtelTracing; exports.OutputFormatSchema = _chunkYSKO6SPTjs.OutputFormatSchema; exports.OutputFormatType = _chunkYSKO6SPTjs.OutputFormatType; exports.PermissionResolvedNotificationSchema = _chunkYSKO6SPTjs.PermissionResolvedNotificationSchema; exports.ProcessExitError = _chunkYSKO6SPTjs.ProcessExitError; exports.ProcessTransport = ProcessTransport; exports.ProgressLogEntrySchema = _chunkYSKO6SPTjs.ProgressLogEntrySchema; exports.ProgressLogEntryType = _chunkYSKO6SPTjs.ProgressLogEntryType; exports.ProposeMissionConfirmationDetailsSchema = _chunkYSKO6SPTjs.ProposeMissionConfirmationDetailsSchema; exports.ProtocolError = _chunkYSKO6SPTjs.ProtocolError; exports.QueuedUserMessageDisplayGroup = _chunkYSKO6SPTjs.QueuedUserMessageDisplayGroup; exports.QueuedUserMessageKind = _chunkYSKO6SPTjs.QueuedUserMessageKind; exports.REWIND_TIMEOUT = _chunkYSKO6SPTjs.REWIND_TIMEOUT; exports.ReasoningEffort = _chunkYSKO6SPTjs.ReasoningEffort; exports.RedactedThinkingBlockSchema = _chunkYSKO6SPTjs.RedactedThinkingBlockSchema; exports.RefreshComputerResponseSchema = _chunkYSKO6SPTjs.RefreshComputerResponseSchema; exports.RelayConnectionError = _chunkYSKO6SPTjs.RelayConnectionError; exports.RemoteSessionListResponseSchema = _chunkYSKO6SPTjs.RemoteSessionListResponseSchema; exports.RemoteSessionSchema = _chunkYSKO6SPTjs.RemoteSessionSchema; exports.RemoveMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.RemoveMcpServerRequestParamsSchema; exports.RemoveMcpServerRequestSchema = _chunkYSKO6SPTjs.RemoveMcpServerRequestSchema; exports.RemoveMcpServerResponseSchema = _chunkYSKO6SPTjs.RemoveMcpServerResponseSchema; exports.RemoveMcpServerResultSchema = _chunkYSKO6SPTjs.RemoveMcpServerResultSchema; exports.RenameSessionRequestParamsSchema = _chunkYSKO6SPTjs.RenameSessionRequestParamsSchema; exports.RenameSessionRequestSchema = _chunkYSKO6SPTjs.RenameSessionRequestSchema; exports.RenameSessionResponseSchema = _chunkYSKO6SPTjs.RenameSessionResponseSchema; exports.RenameSessionResultSchema = _chunkYSKO6SPTjs.RenameSessionResultSchema; exports.RequestPermissionRequestParamsSchema = _chunkYSKO6SPTjs.RequestPermissionRequestParamsSchema; exports.RequestPermissionRequestSchema = _chunkYSKO6SPTjs.RequestPermissionRequestSchema; exports.RequestPermissionResponseSchema = _chunkYSKO6SPTjs.RequestPermissionResponseSchema; exports.RequestPermissionResultSchema = _chunkYSKO6SPTjs.RequestPermissionResultSchema; exports.RewindEvictedFileSchema = _chunkYSKO6SPTjs.RewindEvictedFileSchema; exports.RewindFileCreationSchema = _chunkYSKO6SPTjs.RewindFileCreationSchema; exports.RewindFileSnapshotSchema = _chunkYSKO6SPTjs.RewindFileSnapshotSchema; exports.SDK_TAG = _chunkYSKO6SPTjs.SDK_TAG; exports.SDK_VERSION = _chunkYSKO6SPTjs.SDK_VERSION; exports.SESSION_INIT_TIMEOUT = _chunkYSKO6SPTjs.SESSION_INIT_TIMEOUT; exports.SLACK_DELEGATION_MAX_RETRIES = _chunkYSKO6SPTjs.SLACK_DELEGATION_MAX_RETRIES; exports.SdkMcpServer = SdkMcpServer; exports.ServerRequestHandlerType = _chunkYSKO6SPTjs.ServerRequestHandlerType; exports.SessionError = _chunkYSKO6SPTjs.SessionError; exports.SessionMetadataSchema = _chunkYSKO6SPTjs.SessionMetadataSchema; exports.SessionNotFoundError = _chunkYSKO6SPTjs.SessionNotFoundError; exports.SessionNotificationParamsSchema = _chunkYSKO6SPTjs.SessionNotificationParamsSchema; exports.SessionNotificationPayloadSchema = _chunkYSKO6SPTjs.SessionNotificationPayloadSchema; exports.SessionNotificationSchema = _chunkYSKO6SPTjs.SessionNotificationSchema; exports.SessionNotificationSchemaList = _chunkYSKO6SPTjs.SessionNotificationSchemaList; exports.SessionNotificationType = _chunkYSKO6SPTjs.SessionNotificationType; exports.SessionPlatform = _chunkYSKO6SPTjs.SessionPlatform; exports.SessionReplacedError = _chunkYSKO6SPTjs.SessionReplacedError; exports.SessionReplacementError = _chunkYSKO6SPTjs.SessionReplacementError; exports.SessionSettingsFileSchema = _chunkYSKO6SPTjs.SessionSettingsFileSchema; exports.SessionSettingsSchema = _chunkYSKO6SPTjs.SessionSettingsSchema; exports.SessionSourceSchema = _chunkYSKO6SPTjs.SessionSourceSchema; exports.SessionStartEventSchema = _chunkYSKO6SPTjs.SessionStartEventSchema; exports.SessionTagSchema = _chunkYSKO6SPTjs.SessionTagSchema; exports.SessionTitleUpdatedNotificationSchema = _chunkYSKO6SPTjs.SessionTitleUpdatedNotificationSchema; exports.SessionTokenUsageChangedNotificationSchema = _chunkYSKO6SPTjs.SessionTokenUsageChangedNotificationSchema; exports.SetSkillDisabledRequestParamsSchema = _chunkYSKO6SPTjs.SetSkillDisabledRequestParamsSchema; exports.SetSkillDisabledRequestSchema = _chunkYSKO6SPTjs.SetSkillDisabledRequestSchema; exports.SetSkillDisabledResponseSchema = _chunkYSKO6SPTjs.SetSkillDisabledResponseSchema; exports.SetSkillDisabledResultSchema = _chunkYSKO6SPTjs.SetSkillDisabledResultSchema; exports.SettingsLevel = _chunkYSKO6SPTjs.SettingsLevel; exports.SettingsUpdatedNotificationSchema = _chunkYSKO6SPTjs.SettingsUpdatedNotificationSchema; exports.SettingsUpdatedPayloadSchema = _chunkYSKO6SPTjs.SettingsUpdatedPayloadSchema; exports.SkillDeviationSchema = _chunkYSKO6SPTjs.SkillDeviationSchema; exports.SkillFeedbackSchema = _chunkYSKO6SPTjs.SkillFeedbackSchema; exports.SkillInfoSchema = _chunkYSKO6SPTjs.SkillInfoSchema; exports.SkillLocation = _chunkYSKO6SPTjs.SkillLocation; exports.SkillResourceSchema = _chunkYSKO6SPTjs.SkillResourceSchema; exports.SpanAttribute = _chunkYSKO6SPTjs.SpanAttribute; exports.SpanEvent = _chunkYSKO6SPTjs.SpanEvent; exports.SpanName = _chunkYSKO6SPTjs.SpanName; exports.SseMcpConfigSchema = _chunkYSKO6SPTjs.SseMcpSchema; exports.StartMissionRunConfirmationDetailsSchema = _chunkYSKO6SPTjs.StartMissionRunConfirmationDetailsSchema; exports.StdioMcpConfigSchema = _chunkYSKO6SPTjs.StdioMcpSchema; exports.StreamStateTracker = _chunkYSKO6SPTjs.StreamStateTracker; exports.StructuredOutputErrorSchema = _chunkYSKO6SPTjs.StructuredOutputErrorSchema; exports.StructuredOutputNotificationSchema = _chunkYSKO6SPTjs.StructuredOutputNotificationSchema; exports.SubmitBugReportRequestParamsSchema = _chunkYSKO6SPTjs.SubmitBugReportRequestParamsSchema; exports.SubmitBugReportRequestSchema = _chunkYSKO6SPTjs.SubmitBugReportRequestSchema; exports.SubmitBugReportResponseSchema = _chunkYSKO6SPTjs.SubmitBugReportResponseSchema; exports.SubmitBugReportResultSchema = _chunkYSKO6SPTjs.SubmitBugReportResultSchema; exports.SubmitMcpAuthCodeRequestParamsSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeRequestParamsSchema; exports.SubmitMcpAuthCodeRequestSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeRequestSchema; exports.SubmitMcpAuthCodeResponseSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResponseSchema; exports.SubmitMcpAuthCodeResultSchema = _chunkYSKO6SPTjs.SubmitMcpAuthCodeResultSchema; exports.SuccessResultSchema = _chunkYSKO6SPTjs.SuccessResultSchema; exports.TestCaseSchema = _chunkYSKO6SPTjs.TestCaseSchema; exports.TestFileSchema = _chunkYSKO6SPTjs.TestFileSchema; exports.TestsSchema = _chunkYSKO6SPTjs.TestsSchema; exports.TextBlockSchema = _chunkYSKO6SPTjs.TextBlockSchema; exports.ThinkingBlockSchema = _chunkYSKO6SPTjs.ThinkingBlockSchema; exports.ThinkingTextCompleteNotificationSchema = _chunkYSKO6SPTjs.ThinkingTextCompleteNotificationSchema; exports.ThinkingTextDeltaNotificationSchema = _chunkYSKO6SPTjs.ThinkingTextDeltaNotificationSchema; exports.TimeoutError = _chunkYSKO6SPTjs.TimeoutError; exports.ToggleMcpServerRequestParamsSchema = _chunkYSKO6SPTjs.ToggleMcpServerRequestParamsSchema; exports.ToggleMcpServerRequestSchema = _chunkYSKO6SPTjs.ToggleMcpServerRequestSchema; exports.ToggleMcpServerResponseSchema = _chunkYSKO6SPTjs.ToggleMcpServerResponseSchema; exports.ToggleMcpServerResultSchema = _chunkYSKO6SPTjs.ToggleMcpServerResultSchema; exports.ToggleMcpToolRequestParamsSchema = _chunkYSKO6SPTjs.ToggleMcpToolRequestParamsSchema; exports.ToggleMcpToolRequestSchema = _chunkYSKO6SPTjs.ToggleMcpToolRequestSchema; exports.ToggleMcpToolResponseSchema = _chunkYSKO6SPTjs.ToggleMcpToolResponseSchema; exports.ToggleMcpToolResultSchema = _chunkYSKO6SPTjs.ToggleMcpToolResultSchema; exports.TokenUsageSchema = _chunkYSKO6SPTjs.TokenUsageSchema; exports.ToolCallNotificationSchema = _chunkYSKO6SPTjs.ToolCallNotificationSchema; exports.ToolConfirmationDetailsSchema = _chunkYSKO6SPTjs.ToolConfirmationDetailsSchema; exports.ToolConfirmationInfoSchema = _chunkYSKO6SPTjs.ToolConfirmationInfoSchema; exports.ToolConfirmationListItemSchema = _chunkYSKO6SPTjs.ToolConfirmationListItemSchema; exports.ToolConfirmationOutcome = _chunkYSKO6SPTjs.ToolConfirmationOutcome; exports.ToolConfirmationType = _chunkYSKO6SPTjs.ToolConfirmationType; exports.ToolProgressUpdateNotificationSchema = _chunkYSKO6SPTjs.ToolProgressUpdateNotificationSchema; exports.ToolProgressUpdateSchema = _chunkYSKO6SPTjs.ToolProgressUpdateSchema; exports.ToolResultBlockSchema = _chunkYSKO6SPTjs.ToolResultSchema; exports.ToolResultNotificationSchema = _chunkYSKO6SPTjs.ToolResultNotificationSchema; exports.ToolSelectionOverridesSchema = _chunkYSKO6SPTjs.ToolSelectionOverridesSchema; exports.ToolUseBlockSchema = _chunkYSKO6SPTjs.ToolUseSchema; exports.ToolUseSchema = _chunkYSKO6SPTjs.ToolUseSchema2; exports.TraceContextMetaSchema = _chunkYSKO6SPTjs.TraceContextMetaSchema; exports.TransportDirection = TransportDirection; exports.TunnelConnection = _chunkYSKO6SPTjs.TunnelConnection; exports.UpdateSessionSettingsRequestParamsSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsRequestParamsSchema; exports.UpdateSessionSettingsRequestSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsRequestSchema; exports.UpdateSessionSettingsResponseSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsResponseSchema; exports.UpdateSessionSettingsResultSchema = _chunkYSKO6SPTjs.UpdateSessionSettingsResultSchema; exports.VerificationCommandSchema = _chunkYSKO6SPTjs.VerificationCommandSchema; exports.VerificationSchema = _chunkYSKO6SPTjs.VerificationSchema; exports.WINDOWS_JOB_OBJECT_ERROR_MARKER = WINDOWS_JOB_OBJECT_ERROR_MARKER; exports.WebSocketConnectionError = _chunkYSKO6SPTjs.WebSocketConnectionError; exports.WebSocketDaemonTransport = _chunkYSKO6SPTjs.WebSocketDaemonTransport; exports.WorkerCompletedEntrySchema = _chunkYSKO6SPTjs.WorkerCompletedEntrySchema; exports.WorkerFailedEntrySchema = _chunkYSKO6SPTjs.WorkerFailedEntrySchema; exports.WorkerPausedEntrySchema = _chunkYSKO6SPTjs.WorkerPausedEntrySchema; exports.WorkerSelectedFeatureEntrySchema = _chunkYSKO6SPTjs.WorkerSelectedFeatureEntrySchema; exports.WorkerStartedEntrySchema = _chunkYSKO6SPTjs.WorkerStartedEntrySchema; exports.WorkerStateInfoSchema = _chunkYSKO6SPTjs.WorkerStateInfoSchema; exports.__resetTransportLoggerForTests = __resetTransportLoggerForTests; exports.buildUserMessageContentBlocks = _chunkYSKO6SPTjs.buildUserMessageContentBlocks; exports.configureDaemonCoreDeps = _chunkYSKO6SPTjs.configureDaemonCoreDeps; exports.connectAndAuthenticate = _chunkYSKO6SPTjs.connectAndAuthenticate; exports.connectToDaemon = _chunkYSKO6SPTjs.connectToDaemon; exports.connectWithRetry = _chunkYSKO6SPTjs.connectWithRetry; exports.convertNotificationToStreamMessage = _chunkYSKO6SPTjs.convertNotificationToStreamMessage; exports.createComputer = _chunkYSKO6SPTjs.createComputer; exports.createResponseSchema = _chunkYSKO6SPTjs.createResponseSchema; exports.createSdkMcpServer = createSdkMcpServer; exports.createSession = createSession; exports.createWebSocketDaemonClient = _chunkYSKO6SPTjs.createWebSocketDaemonClient; exports.defaultDaemonCoreDeps = _chunkYSKO6SPTjs.defaultDaemonCoreDeps; exports.deleteComputer = _chunkYSKO6SPTjs.deleteComputer; exports.filterMessagesForUI = _chunkYSKO6SPTjs.filterMessagesForUI; exports.getComputer = _chunkYSKO6SPTjs.getComputer; exports.getComputerByName = _chunkYSKO6SPTjs.getComputerByName; exports.getComputerMetrics = _chunkYSKO6SPTjs.getComputerMetrics; exports.getMachineTemplate = _chunkYSKO6SPTjs.getMachineTemplate; exports.getPermissionToolInputForDisplay = _chunkYSKO6SPTjs.getPermissionToolInputForDisplay; exports.getQueuedUserMessageDisplayGroup = _chunkYSKO6SPTjs.getQueuedUserMessageDisplayGroup; exports.getQueuedUserMessageReviewPriority = _chunkYSKO6SPTjs.getQueuedUserMessageReviewPriority; exports.getSubagentCallingMetadata = _chunkYSKO6SPTjs.getSubagentCallingMetadata; exports.getToolResultBlocks = _chunkYSKO6SPTjs.getToolResultBlocks; exports.getToolResultToolUseId = _chunkYSKO6SPTjs.getToolResultToolUseId; exports.hasDecoupledInteractionSettings = _chunkYSKO6SPTjs.hasDecoupledInteractionSettings; exports.hasSubagentSessionTag = _chunkYSKO6SPTjs.hasSubagentSessionTag; exports.inspectJsonRpcEnvelope = _chunkYSKO6SPTjs.inspectJsonRpcEnvelope; exports.isDaemonQueuedMessageKind = _chunkYSKO6SPTjs.isDaemonQueuedMessageKind; exports.isPendingToolResultMarker = _chunkYSKO6SPTjs.isPendingToolResultMarker; exports.isPersistedHookMessage = _chunkYSKO6SPTjs.isPersistedHookMessage; exports.isReviewableQueuedMessageKind = _chunkYSKO6SPTjs.isReviewableQueuedMessageKind; exports.isTransportLoggingEnabled = isTransportLoggingEnabled; exports.listComputers = _chunkYSKO6SPTjs.listComputers; exports.listMachineTemplates = _chunkYSKO6SPTjs.listMachineTemplates; exports.listModels = listModels; exports.listRemoteSessions = _chunkYSKO6SPTjs.listRemoteSessions; exports.listSessions = listSessions; exports.logTransportMessage = logTransportMessage; exports.machineTypeToMachineConnectionType = _chunkYSKO6SPTjs.machineTypeToMachineConnectionType; exports.noopLogger = noopLogger; exports.orderMessagesByParentChain = _chunkYSKO6SPTjs.orderMessagesByParentChain; exports.recordComputerConnectSli = _chunkYSKO6SPTjs.recordComputerConnectSli; exports.refreshComputer = _chunkYSKO6SPTjs.refreshComputer; exports.repairParentChainCorruption = _chunkYSKO6SPTjs.repairParentChainCorruption; exports.resolveExecCoreDeps = resolveExecCoreDeps; exports.restartComputer = _chunkYSKO6SPTjs.restartComputer; exports.resumeSession = resumeSession; exports.retryInstallDeps = _chunkYSKO6SPTjs.retryInstallDeps; exports.retryWithLogger = _chunkYSKO6SPTjs.retryWithLogger; exports.run = run; exports.spawnWithWindowsJobObjectRetry = spawnWithWindowsJobObjectRetry; exports.sumTokenUsage = _chunkYSKO6SPTjs.sumTokenUsage; exports.summarizeSessionToolUsage = _chunkYSKO6SPTjs.summarizeSessionToolUsage; exports.toError = _chunkYSKO6SPTjs.toError; exports.tool = tool; exports.updateComputer = _chunkYSKO6SPTjs.updateComputer;
|
|
4743
4744
|
//# sourceMappingURL=node.js.map
|