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