@metorial-services/shuttle-client 1.0.0 → 1.0.2

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.
@@ -1897,6 +1897,152 @@ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rp
1897
1897
  createdAt: Date;
1898
1898
  };
1899
1899
  }>;
1900
+ getForVersion: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
1901
+ tenantId: string;
1902
+ serverVersionId: string;
1903
+ }>, {
1904
+ object: string;
1905
+ id: string;
1906
+ status: import("../../../service/prisma/generated/enums").ServerDiscoveryStatus;
1907
+ authConfigSchema: Record<string, any> | null;
1908
+ configSchema: any;
1909
+ capabilities: {
1910
+ experimental?: {
1911
+ [x: string]: object;
1912
+ } | undefined;
1913
+ logging?: object | undefined;
1914
+ completions?: object | undefined;
1915
+ prompts?: {
1916
+ listChanged?: boolean | undefined;
1917
+ } | undefined;
1918
+ resources?: {
1919
+ subscribe?: boolean | undefined;
1920
+ listChanged?: boolean | undefined;
1921
+ } | undefined;
1922
+ tools?: {
1923
+ listChanged?: boolean | undefined;
1924
+ } | undefined;
1925
+ tasks?: {
1926
+ [x: string]: unknown;
1927
+ list?: object | undefined;
1928
+ cancel?: object | undefined;
1929
+ requests?: {
1930
+ [x: string]: unknown;
1931
+ tools?: {
1932
+ [x: string]: unknown;
1933
+ call?: object | undefined;
1934
+ } | undefined;
1935
+ } | undefined;
1936
+ } | undefined;
1937
+ };
1938
+ instructions: string | null;
1939
+ prompts: {
1940
+ name: string;
1941
+ description?: string | undefined;
1942
+ arguments?: {
1943
+ name: string;
1944
+ description?: string | undefined;
1945
+ required?: boolean | undefined;
1946
+ }[] | undefined;
1947
+ _meta?: {
1948
+ [x: string]: unknown;
1949
+ } | undefined;
1950
+ icons?: {
1951
+ src: string;
1952
+ mimeType?: string | undefined;
1953
+ sizes?: string[] | undefined;
1954
+ theme?: "light" | "dark" | undefined;
1955
+ }[] | undefined;
1956
+ title?: string | undefined;
1957
+ }[];
1958
+ resourceTemplates: {
1959
+ uriTemplate: string;
1960
+ name: string;
1961
+ description?: string | undefined;
1962
+ mimeType?: string | undefined;
1963
+ annotations?: {
1964
+ audience?: ("user" | "assistant")[] | undefined;
1965
+ priority?: number | undefined;
1966
+ lastModified?: string | undefined;
1967
+ } | undefined;
1968
+ _meta?: {
1969
+ [x: string]: unknown;
1970
+ } | undefined;
1971
+ icons?: {
1972
+ src: string;
1973
+ mimeType?: string | undefined;
1974
+ sizes?: string[] | undefined;
1975
+ theme?: "light" | "dark" | undefined;
1976
+ }[] | undefined;
1977
+ title?: string | undefined;
1978
+ }[];
1979
+ tools: {
1980
+ inputSchema: {
1981
+ [x: string]: unknown;
1982
+ type: "object";
1983
+ properties?: {
1984
+ [x: string]: object;
1985
+ } | undefined;
1986
+ required?: string[] | undefined;
1987
+ };
1988
+ name: string;
1989
+ description?: string | undefined;
1990
+ outputSchema?: {
1991
+ [x: string]: unknown;
1992
+ type: "object";
1993
+ properties?: {
1994
+ [x: string]: object;
1995
+ } | undefined;
1996
+ required?: string[] | undefined;
1997
+ } | undefined;
1998
+ annotations?: {
1999
+ title?: string | undefined;
2000
+ readOnlyHint?: boolean | undefined;
2001
+ destructiveHint?: boolean | undefined;
2002
+ idempotentHint?: boolean | undefined;
2003
+ openWorldHint?: boolean | undefined;
2004
+ } | undefined;
2005
+ execution?: {
2006
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
2007
+ } | undefined;
2008
+ _meta?: {
2009
+ [x: string]: unknown;
2010
+ } | undefined;
2011
+ icons?: {
2012
+ src: string;
2013
+ mimeType?: string | undefined;
2014
+ sizes?: string[] | undefined;
2015
+ theme?: "light" | "dark" | undefined;
2016
+ }[] | undefined;
2017
+ title?: string | undefined;
2018
+ }[];
2019
+ info: {
2020
+ version: string;
2021
+ name: string;
2022
+ websiteUrl?: string | undefined;
2023
+ description?: string | undefined;
2024
+ icons?: {
2025
+ src: string;
2026
+ mimeType?: string | undefined;
2027
+ sizes?: string[] | undefined;
2028
+ theme?: "light" | "dark" | undefined;
2029
+ }[] | undefined;
2030
+ title?: string | undefined;
2031
+ };
2032
+ serverConfigId: string;
2033
+ serverVersionId: string;
2034
+ serverAuthConfigId: string | undefined;
2035
+ createdAt: Date;
2036
+ } | null, {
2037
+ tenant: {
2038
+ name: string;
2039
+ identifier: string;
2040
+ oid: bigint;
2041
+ id: string;
2042
+ functionBayTenantId: string | null;
2043
+ createdAt: Date;
2044
+ };
2045
+ }>;
1900
2046
  };
1901
2047
  serverConfig: {
1902
2048
  list: import("@lowerdeck/rpc-server").Handler<Partial<Pick<{
@@ -2796,7 +2942,7 @@ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rp
2796
2942
  }>;
2797
2943
  decrypt: import("@lowerdeck/rpc-server").Handler<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
2798
2944
  tenantId: string;
2799
- slateAuthConfigId: string;
2945
+ serverAuthConfigId: string;
2800
2946
  note: string;
2801
2947
  }>, {
2802
2948
  decryptedAuthConfig: {
@@ -3426,6 +3572,7 @@ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rp
3426
3572
  id: string;
3427
3573
  type: import("../../../service/prisma/generated/enums").ServerOAuthSetupType;
3428
3574
  status: import("../../../service/prisma/generated/enums").ServerOAuthSetupStatus;
3575
+ redirectUrl: string;
3429
3576
  url: string;
3430
3577
  authConfig: {
3431
3578
  object: string;
@@ -3590,12 +3737,14 @@ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rp
3590
3737
  tenantId: string;
3591
3738
  serverCredentialsId: string | undefined;
3592
3739
  serverId: string;
3593
- redirectUri: string;
3740
+ redirectUrl: string;
3741
+ input: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{}> | undefined;
3594
3742
  }>, {
3595
3743
  object: string;
3596
3744
  id: string;
3597
3745
  type: import("../../../service/prisma/generated/enums").ServerOAuthSetupType;
3598
3746
  status: import("../../../service/prisma/generated/enums").ServerOAuthSetupStatus;
3747
+ redirectUrl: string;
3599
3748
  url: string;
3600
3749
  authConfig: {
3601
3750
  object: string;
@@ -3759,6 +3908,7 @@ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rp
3759
3908
  id: string;
3760
3909
  type: import("../../../service/prisma/generated/enums").ServerOAuthSetupType;
3761
3910
  status: import("../../../service/prisma/generated/enums").ServerOAuthSetupStatus;
3911
+ redirectUrl: string;
3762
3912
  url: string;
3763
3913
  authConfig: {
3764
3914
  object: string;
@@ -4536,7 +4686,7 @@ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rp
4536
4686
  id: string;
4537
4687
  type: import("../../../service/prisma/generated/enums").ChangeNotificationType;
4538
4688
  serverId: string | undefined;
4539
- serverVersion: string | undefined;
4689
+ serverVersionId: string | undefined;
4540
4690
  tenantId: string | undefined;
4541
4691
  createdAt: Date;
4542
4692
  }[];
@@ -4552,7 +4702,7 @@ export declare let createShuttleClient: (o: ClientOpts) => import("@lowerdeck/rp
4552
4702
  id: string;
4553
4703
  type: import("../../../service/prisma/generated/enums").ChangeNotificationType;
4554
4704
  serverId: string | undefined;
4555
- serverVersion: string | undefined;
4705
+ serverVersionId: string | undefined;
4556
4706
  tenantId: string | undefined;
4557
4707
  createdAt: Date;
4558
4708
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAG7E,eAAO,IAAI,mBAAmB,GAAI,GAAG,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmC,CAAC"}
@@ -2,7 +2,7 @@ import type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
2
2
  import type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';
3
3
  export declare let createLiveConnectionClient: (opts: {
4
4
  endpoint: string;
5
- }) => Promise<{
5
+ }) => {
6
6
  connect: (d: {
7
7
  tenantId: string;
8
8
  connectionId: string;
@@ -13,5 +13,5 @@ export declare let createLiveConnectionClient: (opts: {
13
13
  sendMcpMessage: (msg: JSONRPCMessage) => Promise<void>;
14
14
  close: () => Promise<void>;
15
15
  };
16
- }>;
16
+ };
17
17
  //# sourceMappingURL=live.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"live.d.ts","sourceRoot":"","sources":["../../../../src/live.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAElF,eAAO,IAAI,0BAA0B,GAAU,MAAM;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE;iBAC1D;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;QACpB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC;QAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB;8BAsB+B,cAAc;;;EAa9C,CAAC"}
1
+ {"version":3,"file":"live.d.ts","sourceRoot":"","sources":["../../../../src/live.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAElF,eAAO,IAAI,0BAA0B,GAAI,MAAM;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE;iBACpD;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,EAAE,MAAM,CAAC;QACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;QACpB,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC;QAC7C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB;8BAsB+B,cAAc;;;CAa9C,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- var e=require("@lowerdeck/rpc-client"),n=require("@metorial/util-websocket");exports.createLiveConnectionClient=function(e){try{return Promise.resolve({connect:function(t){var r=new n.IsomorphicWs(e.endpoint+"/"+t.tenantId+"/connection/"+t.connectionId+"/live");return r.on("open",function(){null==t.onOpen||t.onOpen()}),r.on("message",function(e){var n=JSON.parse(e);null==t.onMessage||t.onMessage({type:n.type,data:n.data})}),r.on("close",function(){null==t.onClose||t.onClose()}),{sendMcpMessage:function(e){try{return Promise.resolve(r.send(JSON.stringify({type:"mcp.message",data:e}))).then(function(){})}catch(e){return Promise.reject(e)}},close:function(){try{return r.close(),Promise.resolve()}catch(e){return Promise.reject(e)}}}}})}catch(e){return Promise.reject(e)}},exports.createShuttleClient=function(n){return e.createClient(n)};
1
+ var e=require("@lowerdeck/rpc-client"),n=require("@metorial/util-websocket");exports.createLiveConnectionClient=function(e){return{connect:function(t){var o=new n.IsomorphicWs(e.endpoint+"/"+t.tenantId+"/connection/"+t.connectionId+"/live");return o.on("open",function(){null==t.onOpen||t.onOpen()}),o.on("message",function(e){var n=JSON.parse(e);null==t.onMessage||t.onMessage({type:n.type,data:n.data})}),o.on("close",function(){null==t.onClose||t.onClose()}),{sendMcpMessage:function(e){try{return Promise.resolve(o.send(JSON.stringify({type:"mcp.message",data:e}))).then(function(){})}catch(e){return Promise.reject(e)}},close:function(){try{return o.close(),Promise.resolve()}catch(e){return Promise.reject(e)}}}}}},exports.createShuttleClient=function(n){return e.createClient(n)};
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../src/live.ts","../src/controller.ts"],"sourcesContent":["import { IsomorphicWs } from '@metorial/util-websocket';\nimport type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';\nimport type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';\n\nexport let createLiveConnectionClient = async (opts: { endpoint: string }) => ({\n connect: (d: {\n tenantId: string;\n connectionId: string;\n onOpen?: () => void;\n onMessage?: (msg: ConnectionMessage) => void;\n onClose?: () => void;\n }) => {\n let ws = new IsomorphicWs(\n `${opts.endpoint}/${d.tenantId}/connection/${d.connectionId}/live`\n );\n\n ws.on('open', () => {\n d.onOpen?.();\n });\n\n ws.on('message', (data: string) => {\n let msg: any = JSON.parse(data);\n d.onMessage?.({\n type: msg.type,\n data: msg.data\n });\n });\n\n ws.on('close', () => {\n d.onClose?.();\n });\n\n return {\n sendMcpMessage: async (msg: JSONRPCMessage) => {\n await ws.send(\n JSON.stringify({\n type: 'mcp.message',\n data: msg\n })\n );\n },\n close: async () => {\n ws.close();\n }\n };\n }\n});\n","import { createClient } from '@lowerdeck/rpc-client';\nimport { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';\nimport type { ShuttleClient } from '../../../service/src/apis/controllers';\n\nexport let createShuttleClient = (o: ClientOpts) => createClient<ShuttleClient>(o);\n"],"names":["opts","Promise","resolve","connect","d","ws","IsomorphicWs","endpoint","tenantId","connectionId","on","onOpen","data","msg","JSON","parse","onMessage","type","onClose","sendMcpMessage","send","stringify","then","e","reject","close","o","createClient"],"mappings":"gHAIqC,SAAUA,GAA0B,IAAA,OAAAC,QAAAC,QAAM,CAC7EC,QAAS,SAACC,GAOR,IAAIC,EAAK,IAAIC,eACRN,EAAKO,aAAYH,EAAEI,SAAQ,eAAeJ,EAAEK,aAAmB,SAmBpE,OAhBAJ,EAAGK,GAAG,OAAQ,WACJ,MAARN,EAAEO,QAAFP,EAAEO,QACJ,GAEAN,EAAGK,GAAG,UAAW,SAACE,GAChB,IAAIC,EAAWC,KAAKC,MAAMH,SAC1BR,EAAEY,WAAFZ,EAAEY,UAAY,CACZC,KAAMJ,EAAII,KACVL,KAAMC,EAAID,MAEd,GAEAP,EAAGK,GAAG,QAAS,WACJ,MAATN,EAAEc,SAAFd,EAAEc,SACJ,GAEO,CACLC,eAAc,SAASN,OAAuBZ,OAAAA,QAAAC,QACtCG,EAAGe,KACPN,KAAKO,UAAU,CACbJ,KAAM,cACNL,KAAMC,MAETS,KAAA,WAAA,EACH,CAAC,MAAAC,GAAAtB,OAAAA,QAAAuB,OAAAD,EAAA,CAAA,EACDE,MAAK,WAAA,IACQ,OAAXpB,EAAGoB,QAAQxB,QAAAC,SACb,CAAC,MAAAqB,GAAAtB,OAAAA,QAAAuB,OAAAD,KAEL,GACD,CAAA,MAAAA,GAAA,OAAAtB,QAAAuB,OAAAD,EAAC,CAAA,8BC1C+B,SAACG,GAAa,OAAKC,EAAAA,aAA4BD,EAAE"}
1
+ {"version":3,"file":"index.cjs","sources":["../src/live.ts","../src/controller.ts"],"sourcesContent":["import { IsomorphicWs } from '@metorial/util-websocket';\nimport type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';\nimport type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';\n\nexport let createLiveConnectionClient = (opts: { endpoint: string }) => ({\n connect: (d: {\n tenantId: string;\n connectionId: string;\n onOpen?: () => void;\n onMessage?: (msg: ConnectionMessage) => void;\n onClose?: () => void;\n }) => {\n let ws = new IsomorphicWs(\n `${opts.endpoint}/${d.tenantId}/connection/${d.connectionId}/live`\n );\n\n ws.on('open', () => {\n d.onOpen?.();\n });\n\n ws.on('message', (data: string) => {\n let msg: any = JSON.parse(data);\n d.onMessage?.({\n type: msg.type,\n data: msg.data\n });\n });\n\n ws.on('close', () => {\n d.onClose?.();\n });\n\n return {\n sendMcpMessage: async (msg: JSONRPCMessage) => {\n await ws.send(\n JSON.stringify({\n type: 'mcp.message',\n data: msg\n })\n );\n },\n close: async () => {\n ws.close();\n }\n };\n }\n});\n","import { createClient } from '@lowerdeck/rpc-client';\nimport { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';\nimport type { ShuttleClient } from '../../../service/src/apis/controllers';\n\nexport let createShuttleClient = (o: ClientOpts) => createClient<ShuttleClient>(o);\n"],"names":["opts","connect","d","ws","IsomorphicWs","endpoint","tenantId","connectionId","on","onOpen","data","msg","JSON","parse","onMessage","type","onClose","sendMcpMessage","Promise","resolve","send","stringify","then","e","reject","close","o","createClient"],"mappings":"gHAIwC,SAACA,SAAgC,CACvEC,QAAS,SAACC,GAOR,IAAIC,EAAK,IAAIC,EAAYA,aACpBJ,EAAKK,SAAQ,IAAIH,EAAEI,wBAAuBJ,EAAEK,aAAmB,SAmBpE,OAhBAJ,EAAGK,GAAG,OAAQ,WACJ,MAARN,EAAEO,QAAFP,EAAEO,QACJ,GAEAN,EAAGK,GAAG,UAAW,SAACE,GAChB,IAAIC,EAAWC,KAAKC,MAAMH,GACf,MAAXR,EAAEY,WAAFZ,EAAEY,UAAY,CACZC,KAAMJ,EAAII,KACVL,KAAMC,EAAID,MAEd,GAEAP,EAAGK,GAAG,QAAS,WACJ,MAATN,EAAEc,SAAFd,EAAEc,SACJ,GAEO,CACLC,eAAcA,SAASN,GAAmB,IAAIO,OAAAA,QAAAC,QACtChB,EAAGiB,KACPR,KAAKS,UAAU,CACbN,KAAM,cACNL,KAAMC,MAETW,KACH,WAAA,EAAA,CAAC,MAAAC,GAAA,OAAAL,QAAAM,OAAAD,EAAA,CAAA,EACDE,MAAK,WAAA,IACQ,OAAXtB,EAAGsB,QAAQP,QAAAC,SACb,CAAC,MAAAI,GAAA,OAAAL,QAAAM,OAAAD,KAEL,EACD,8BC1CgC,SAACG,GAAa,OAAKC,EAAAA,aAA4BD,EAAE"}
package/dist/index.d.ts CHANGED
@@ -2140,6 +2140,152 @@ export declare let createShuttleClient: (o: ClientOpts) => InferClient<{
2140
2140
  functionBayTenantId: string | null;
2141
2141
  };
2142
2142
  }>;
2143
+ getForVersion: Handler<UndefinedIsOptional<{
2144
+ tenantId: string;
2145
+ serverVersionId: string;
2146
+ }>, {
2147
+ object: string;
2148
+ id: string;
2149
+ status: ServerDiscoveryStatus;
2150
+ authConfigSchema: Record<string, any> | null;
2151
+ configSchema: any;
2152
+ capabilities: {
2153
+ experimental?: {
2154
+ [x: string]: object;
2155
+ } | undefined;
2156
+ logging?: object | undefined;
2157
+ completions?: object | undefined;
2158
+ prompts?: {
2159
+ listChanged?: boolean | undefined;
2160
+ } | undefined;
2161
+ resources?: {
2162
+ subscribe?: boolean | undefined;
2163
+ listChanged?: boolean | undefined;
2164
+ } | undefined;
2165
+ tools?: {
2166
+ listChanged?: boolean | undefined;
2167
+ } | undefined;
2168
+ tasks?: {
2169
+ [x: string]: unknown;
2170
+ list?: object | undefined;
2171
+ cancel?: object | undefined;
2172
+ requests?: {
2173
+ [x: string]: unknown;
2174
+ tools?: {
2175
+ [x: string]: unknown;
2176
+ call?: object | undefined;
2177
+ } | undefined;
2178
+ } | undefined;
2179
+ } | undefined;
2180
+ };
2181
+ instructions: string | null;
2182
+ prompts: {
2183
+ name: string;
2184
+ description?: string | undefined;
2185
+ arguments?: {
2186
+ name: string;
2187
+ description?: string | undefined;
2188
+ required?: boolean | undefined;
2189
+ }[] | undefined;
2190
+ _meta?: {
2191
+ [x: string]: unknown;
2192
+ } | undefined;
2193
+ icons?: {
2194
+ src: string;
2195
+ mimeType?: string | undefined;
2196
+ sizes?: string[] | undefined;
2197
+ theme?: "light" | "dark" | undefined;
2198
+ }[] | undefined;
2199
+ title?: string | undefined;
2200
+ }[];
2201
+ resourceTemplates: {
2202
+ uriTemplate: string;
2203
+ name: string;
2204
+ description?: string | undefined;
2205
+ mimeType?: string | undefined;
2206
+ annotations?: {
2207
+ audience?: ("user" | "assistant")[] | undefined;
2208
+ priority?: number | undefined;
2209
+ lastModified?: string | undefined;
2210
+ } | undefined;
2211
+ _meta?: {
2212
+ [x: string]: unknown;
2213
+ } | undefined;
2214
+ icons?: {
2215
+ src: string;
2216
+ mimeType?: string | undefined;
2217
+ sizes?: string[] | undefined;
2218
+ theme?: "light" | "dark" | undefined;
2219
+ }[] | undefined;
2220
+ title?: string | undefined;
2221
+ }[];
2222
+ tools: {
2223
+ inputSchema: {
2224
+ [x: string]: unknown;
2225
+ type: "object";
2226
+ properties?: {
2227
+ [x: string]: object;
2228
+ } | undefined;
2229
+ required?: string[] | undefined;
2230
+ };
2231
+ name: string;
2232
+ description?: string | undefined;
2233
+ outputSchema?: {
2234
+ [x: string]: unknown;
2235
+ type: "object";
2236
+ properties?: {
2237
+ [x: string]: object;
2238
+ } | undefined;
2239
+ required?: string[] | undefined;
2240
+ } | undefined;
2241
+ annotations?: {
2242
+ title?: string | undefined;
2243
+ readOnlyHint?: boolean | undefined;
2244
+ destructiveHint?: boolean | undefined;
2245
+ idempotentHint?: boolean | undefined;
2246
+ openWorldHint?: boolean | undefined;
2247
+ } | undefined;
2248
+ execution?: {
2249
+ taskSupport?: "optional" | "required" | "forbidden" | undefined;
2250
+ } | undefined;
2251
+ _meta?: {
2252
+ [x: string]: unknown;
2253
+ } | undefined;
2254
+ icons?: {
2255
+ src: string;
2256
+ mimeType?: string | undefined;
2257
+ sizes?: string[] | undefined;
2258
+ theme?: "light" | "dark" | undefined;
2259
+ }[] | undefined;
2260
+ title?: string | undefined;
2261
+ }[];
2262
+ info: {
2263
+ version: string;
2264
+ name: string;
2265
+ websiteUrl?: string | undefined;
2266
+ description?: string | undefined;
2267
+ icons?: {
2268
+ src: string;
2269
+ mimeType?: string | undefined;
2270
+ sizes?: string[] | undefined;
2271
+ theme?: "light" | "dark" | undefined;
2272
+ }[] | undefined;
2273
+ title?: string | undefined;
2274
+ };
2275
+ serverConfigId: string;
2276
+ serverVersionId: string;
2277
+ serverAuthConfigId: string | undefined;
2278
+ createdAt: Date;
2279
+ } | null, {
2280
+ tenant: {
2281
+ name: string;
2282
+ oid: bigint;
2283
+ id: string;
2284
+ createdAt: Date;
2285
+ identifier: string;
2286
+ functionBayTenantId: string | null;
2287
+ };
2288
+ }>;
2143
2289
  };
2144
2290
  serverConfig: {
2145
2291
  list: Handler<Partial<Pick<{
@@ -3039,7 +3185,7 @@ export declare let createShuttleClient: (o: ClientOpts) => InferClient<{
3039
3185
  }>;
3040
3186
  decrypt: Handler<UndefinedIsOptional<{
3041
3187
  tenantId: string;
3042
- slateAuthConfigId: string;
3188
+ serverAuthConfigId: string;
3043
3189
  note: string;
3044
3190
  }>, {
3045
3191
  decryptedAuthConfig: {
@@ -3669,6 +3815,7 @@ export declare let createShuttleClient: (o: ClientOpts) => InferClient<{
3669
3815
  id: string;
3670
3816
  type: ServerOAuthSetupType;
3671
3817
  status: ServerOAuthSetupStatus;
3818
+ redirectUrl: string;
3672
3819
  url: string;
3673
3820
  authConfig: {
3674
3821
  object: string;
@@ -3833,12 +3980,14 @@ export declare let createShuttleClient: (o: ClientOpts) => InferClient<{
3833
3980
  tenantId: string;
3834
3981
  serverCredentialsId: string | undefined;
3835
3982
  serverId: string;
3836
- redirectUri: string;
3983
+ redirectUrl: string;
3984
+ input: UndefinedIsOptional<{}> | undefined;
3837
3985
  }>, {
3838
3986
  object: string;
3839
3987
  id: string;
3840
3988
  type: ServerOAuthSetupType;
3841
3989
  status: ServerOAuthSetupStatus;
3990
+ redirectUrl: string;
3842
3991
  url: string;
3843
3992
  authConfig: {
3844
3993
  object: string;
@@ -4002,6 +4151,7 @@ export declare let createShuttleClient: (o: ClientOpts) => InferClient<{
4002
4151
  id: string;
4003
4152
  type: ServerOAuthSetupType;
4004
4153
  status: ServerOAuthSetupStatus;
4154
+ redirectUrl: string;
4005
4155
  url: string;
4006
4156
  authConfig: {
4007
4157
  object: string;
@@ -4779,7 +4929,7 @@ export declare let createShuttleClient: (o: ClientOpts) => InferClient<{
4779
4929
  id: string;
4780
4930
  type: ChangeNotificationType;
4781
4931
  serverId: string | undefined;
4782
- serverVersion: string | undefined;
4932
+ serverVersionId: string | undefined;
4783
4933
  tenantId: string | undefined;
4784
4934
  createdAt: Date;
4785
4935
  }[];
@@ -4795,7 +4945,7 @@ export declare let createShuttleClient: (o: ClientOpts) => InferClient<{
4795
4945
  id: string;
4796
4946
  type: ChangeNotificationType;
4797
4947
  serverId: string | undefined;
4798
- serverVersion: string | undefined;
4948
+ serverVersionId: string | undefined;
4799
4949
  tenantId: string | undefined;
4800
4950
  createdAt: Date;
4801
4951
  }, {
@@ -5084,7 +5234,7 @@ export type ConnectionMessage = {
5084
5234
  };
5085
5235
  export declare let createLiveConnectionClient: (opts: {
5086
5236
  endpoint: string;
5087
- }) => Promise<{
5237
+ }) => {
5088
5238
  connect: (d: {
5089
5239
  tenantId: string;
5090
5240
  connectionId: string;
@@ -5095,6 +5245,6 @@ export declare let createLiveConnectionClient: (opts: {
5095
5245
  sendMcpMessage: (msg: JSONRPCMessage) => Promise<void>;
5096
5246
  close: () => Promise<void>;
5097
5247
  };
5098
- }>;
5248
+ };
5099
5249
 
5100
5250
  export {};
@@ -1,2 +1,2 @@
1
- import{createClient as e}from"@lowerdeck/rpc-client";import{IsomorphicWs as n}from"@metorial/util-websocket";var o=function(n){return e(n)},t=function(e){try{return Promise.resolve({connect:function(o){var t=new n(e.endpoint+"/"+o.tenantId+"/connection/"+o.connectionId+"/live");return t.on("open",function(){null==o.onOpen||o.onOpen()}),t.on("message",function(e){var n=JSON.parse(e);null==o.onMessage||o.onMessage({type:n.type,data:n.data})}),t.on("close",function(){null==o.onClose||o.onClose()}),{sendMcpMessage:function(e){try{return Promise.resolve(t.send(JSON.stringify({type:"mcp.message",data:e}))).then(function(){})}catch(e){return Promise.reject(e)}},close:function(){try{return t.close(),Promise.resolve()}catch(e){return Promise.reject(e)}}}}})}catch(e){return Promise.reject(e)}};export{t as createLiveConnectionClient,o as createShuttleClient};
1
+ import{createClient as e}from"@lowerdeck/rpc-client";import{IsomorphicWs as n}from"@metorial/util-websocket";var o=function(n){return e(n)},t=function(e){return{connect:function(o){var t=new n(e.endpoint+"/"+o.tenantId+"/connection/"+o.connectionId+"/live");return t.on("open",function(){null==o.onOpen||o.onOpen()}),t.on("message",function(e){var n=JSON.parse(e);null==o.onMessage||o.onMessage({type:n.type,data:n.data})}),t.on("close",function(){null==o.onClose||o.onClose()}),{sendMcpMessage:function(e){try{return Promise.resolve(t.send(JSON.stringify({type:"mcp.message",data:e}))).then(function(){})}catch(e){return Promise.reject(e)}},close:function(){try{return t.close(),Promise.resolve()}catch(e){return Promise.reject(e)}}}}}};export{t as createLiveConnectionClient,o as createShuttleClient};
2
2
  //# sourceMappingURL=index.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.js","sources":["../src/controller.ts","../src/live.ts"],"sourcesContent":["import { createClient } from '@lowerdeck/rpc-client';\nimport { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';\nimport type { ShuttleClient } from '../../../service/src/apis/controllers';\n\nexport let createShuttleClient = (o: ClientOpts) => createClient<ShuttleClient>(o);\n","import { IsomorphicWs } from '@metorial/util-websocket';\nimport type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';\nimport type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';\n\nexport let createLiveConnectionClient = async (opts: { endpoint: string }) => ({\n connect: (d: {\n tenantId: string;\n connectionId: string;\n onOpen?: () => void;\n onMessage?: (msg: ConnectionMessage) => void;\n onClose?: () => void;\n }) => {\n let ws = new IsomorphicWs(\n `${opts.endpoint}/${d.tenantId}/connection/${d.connectionId}/live`\n );\n\n ws.on('open', () => {\n d.onOpen?.();\n });\n\n ws.on('message', (data: string) => {\n let msg: any = JSON.parse(data);\n d.onMessage?.({\n type: msg.type,\n data: msg.data\n });\n });\n\n ws.on('close', () => {\n d.onClose?.();\n });\n\n return {\n sendMcpMessage: async (msg: JSONRPCMessage) => {\n await ws.send(\n JSON.stringify({\n type: 'mcp.message',\n data: msg\n })\n );\n },\n close: async () => {\n ws.close();\n }\n };\n }\n});\n"],"names":["createShuttleClient","o","createClient","createLiveConnectionClient","opts","Promise","resolve","connect","d","ws","IsomorphicWs","endpoint","tenantId","connectionId","on","onOpen","data","msg","JSON","parse","onMessage","type","onClose","sendMcpMessage","send","stringify","then","e","reject","close"],"mappings":"6GAIW,IAAAA,EAAsB,SAACC,GAAa,OAAKC,EAA4BD,EAAE,ECAvEE,EAA0B,SAAUC,GAA0B,IAAA,OAAAC,QAAAC,QAAM,CAC7EC,QAAS,SAACC,GAOR,IAAIC,EAAK,IAAIC,EACRN,EAAKO,aAAYH,EAAEI,SAAQ,eAAeJ,EAAEK,aAAmB,SAmBpE,OAhBAJ,EAAGK,GAAG,OAAQ,WACJ,MAARN,EAAEO,QAAFP,EAAEO,QACJ,GAEAN,EAAGK,GAAG,UAAW,SAACE,GAChB,IAAIC,EAAWC,KAAKC,MAAMH,SAC1BR,EAAEY,WAAFZ,EAAEY,UAAY,CACZC,KAAMJ,EAAII,KACVL,KAAMC,EAAID,MAEd,GAEAP,EAAGK,GAAG,QAAS,WACJ,MAATN,EAAEc,SAAFd,EAAEc,SACJ,GAEO,CACLC,eAAc,SAASN,OAAuBZ,OAAAA,QAAAC,QACtCG,EAAGe,KACPN,KAAKO,UAAU,CACbJ,KAAM,cACNL,KAAMC,MAETS,KAAA,WAAA,EACH,CAAC,MAAAC,GAAAtB,OAAAA,QAAAuB,OAAAD,EAAA,CAAA,EACDE,MAAK,WAAA,IACQ,OAAXpB,EAAGoB,QAAQxB,QAAAC,SACb,CAAC,MAAAqB,GAAAtB,OAAAA,QAAAuB,OAAAD,KAEL,GACD,CAAA,MAAAA,GAAA,OAAAtB,QAAAuB,OAAAD,EAAC,CAAA"}
1
+ {"version":3,"file":"index.module.js","sources":["../src/controller.ts","../src/live.ts"],"sourcesContent":["import { createClient } from '@lowerdeck/rpc-client';\nimport { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';\nimport type { ShuttleClient } from '../../../service/src/apis/controllers';\n\nexport let createShuttleClient = (o: ClientOpts) => createClient<ShuttleClient>(o);\n","import { IsomorphicWs } from '@metorial/util-websocket';\nimport type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';\nimport type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';\n\nexport let createLiveConnectionClient = (opts: { endpoint: string }) => ({\n connect: (d: {\n tenantId: string;\n connectionId: string;\n onOpen?: () => void;\n onMessage?: (msg: ConnectionMessage) => void;\n onClose?: () => void;\n }) => {\n let ws = new IsomorphicWs(\n `${opts.endpoint}/${d.tenantId}/connection/${d.connectionId}/live`\n );\n\n ws.on('open', () => {\n d.onOpen?.();\n });\n\n ws.on('message', (data: string) => {\n let msg: any = JSON.parse(data);\n d.onMessage?.({\n type: msg.type,\n data: msg.data\n });\n });\n\n ws.on('close', () => {\n d.onClose?.();\n });\n\n return {\n sendMcpMessage: async (msg: JSONRPCMessage) => {\n await ws.send(\n JSON.stringify({\n type: 'mcp.message',\n data: msg\n })\n );\n },\n close: async () => {\n ws.close();\n }\n };\n }\n});\n"],"names":["createShuttleClient","o","createClient","createLiveConnectionClient","opts","connect","d","ws","IsomorphicWs","endpoint","tenantId","connectionId","on","onOpen","data","msg","JSON","parse","onMessage","type","onClose","sendMcpMessage","Promise","resolve","send","stringify","then","e","reject","close"],"mappings":"6GAIW,IAAAA,EAAsB,SAACC,GAAa,OAAKC,EAA4BD,EAAE,ECAvEE,EAA6B,SAACC,SAAgC,CACvEC,QAAS,SAACC,GAOR,IAAIC,EAAK,IAAIC,EACRJ,EAAKK,SAAQ,IAAIH,EAAEI,wBAAuBJ,EAAEK,aAAmB,SAmBpE,OAhBAJ,EAAGK,GAAG,OAAQ,WACJ,MAARN,EAAEO,QAAFP,EAAEO,QACJ,GAEAN,EAAGK,GAAG,UAAW,SAACE,GAChB,IAAIC,EAAWC,KAAKC,MAAMH,GACf,MAAXR,EAAEY,WAAFZ,EAAEY,UAAY,CACZC,KAAMJ,EAAII,KACVL,KAAMC,EAAID,MAEd,GAEAP,EAAGK,GAAG,QAAS,WACJ,MAATN,EAAEc,SAAFd,EAAEc,SACJ,GAEO,CACLC,eAAcA,SAASN,GAAmB,IAAIO,OAAAA,QAAAC,QACtChB,EAAGiB,KACPR,KAAKS,UAAU,CACbN,KAAM,cACNL,KAAMC,MAETW,KACH,WAAA,EAAA,CAAC,MAAAC,GAAA,OAAAL,QAAAM,OAAAD,EAAA,CAAA,EACDE,MAAK,WAAA,IACQ,OAAXtB,EAAGsB,QAAQP,QAAAC,SACb,CAAC,MAAAI,GAAA,OAAAL,QAAAM,OAAAD,KAEL,EACD"}
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@lowerdeck/rpc-client"),require("@metorial/util-websocket")):"function"==typeof define&&define.amd?define(["exports","@lowerdeck/rpc-client","@metorial/util-websocket"],n):n((e||self).shuttleClient={},e.rpcClient,e.utilWebsocket)}(this,function(e,n,t){e.createLiveConnectionClient=function(e){try{return Promise.resolve({connect:function(n){var o=new t.IsomorphicWs(e.endpoint+"/"+n.tenantId+"/connection/"+n.connectionId+"/live");return o.on("open",function(){null==n.onOpen||n.onOpen()}),o.on("message",function(e){var t=JSON.parse(e);null==n.onMessage||n.onMessage({type:t.type,data:t.data})}),o.on("close",function(){null==n.onClose||n.onClose()}),{sendMcpMessage:function(e){try{return Promise.resolve(o.send(JSON.stringify({type:"mcp.message",data:e}))).then(function(){})}catch(e){return Promise.reject(e)}},close:function(){try{return o.close(),Promise.resolve()}catch(e){return Promise.reject(e)}}}}})}catch(e){return Promise.reject(e)}},e.createShuttleClient=function(e){return n.createClient(e)}});
1
+ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@lowerdeck/rpc-client"),require("@metorial/util-websocket")):"function"==typeof define&&define.amd?define(["exports","@lowerdeck/rpc-client","@metorial/util-websocket"],n):n((e||self).shuttleClient={},e.rpcClient,e.utilWebsocket)}(this,function(e,n,t){e.createLiveConnectionClient=function(e){return{connect:function(n){var o=new t.IsomorphicWs(e.endpoint+"/"+n.tenantId+"/connection/"+n.connectionId+"/live");return o.on("open",function(){null==n.onOpen||n.onOpen()}),o.on("message",function(e){var t=JSON.parse(e);null==n.onMessage||n.onMessage({type:t.type,data:t.data})}),o.on("close",function(){null==n.onClose||n.onClose()}),{sendMcpMessage:function(e){try{return Promise.resolve(o.send(JSON.stringify({type:"mcp.message",data:e}))).then(function(){})}catch(e){return Promise.reject(e)}},close:function(){try{return o.close(),Promise.resolve()}catch(e){return Promise.reject(e)}}}}}},e.createShuttleClient=function(e){return n.createClient(e)}});
2
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/live.ts","../src/controller.ts"],"sourcesContent":["import { IsomorphicWs } from '@metorial/util-websocket';\nimport type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';\nimport type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';\n\nexport let createLiveConnectionClient = async (opts: { endpoint: string }) => ({\n connect: (d: {\n tenantId: string;\n connectionId: string;\n onOpen?: () => void;\n onMessage?: (msg: ConnectionMessage) => void;\n onClose?: () => void;\n }) => {\n let ws = new IsomorphicWs(\n `${opts.endpoint}/${d.tenantId}/connection/${d.connectionId}/live`\n );\n\n ws.on('open', () => {\n d.onOpen?.();\n });\n\n ws.on('message', (data: string) => {\n let msg: any = JSON.parse(data);\n d.onMessage?.({\n type: msg.type,\n data: msg.data\n });\n });\n\n ws.on('close', () => {\n d.onClose?.();\n });\n\n return {\n sendMcpMessage: async (msg: JSONRPCMessage) => {\n await ws.send(\n JSON.stringify({\n type: 'mcp.message',\n data: msg\n })\n );\n },\n close: async () => {\n ws.close();\n }\n };\n }\n});\n","import { createClient } from '@lowerdeck/rpc-client';\nimport { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';\nimport type { ShuttleClient } from '../../../service/src/apis/controllers';\n\nexport let createShuttleClient = (o: ClientOpts) => createClient<ShuttleClient>(o);\n"],"names":["opts","Promise","resolve","connect","d","ws","IsomorphicWs","endpoint","tenantId","connectionId","on","onOpen","data","msg","JSON","parse","onMessage","type","onClose","sendMcpMessage","send","stringify","then","e","reject","close","o","createClient"],"mappings":"4ZAIqC,SAAUA,GAA0B,IAAA,OAAAC,QAAAC,QAAM,CAC7EC,QAAS,SAACC,GAOR,IAAIC,EAAK,IAAIC,eACRN,EAAKO,aAAYH,EAAEI,SAAQ,eAAeJ,EAAEK,aAAmB,SAmBpE,OAhBAJ,EAAGK,GAAG,OAAQ,WACJ,MAARN,EAAEO,QAAFP,EAAEO,QACJ,GAEAN,EAAGK,GAAG,UAAW,SAACE,GAChB,IAAIC,EAAWC,KAAKC,MAAMH,SAC1BR,EAAEY,WAAFZ,EAAEY,UAAY,CACZC,KAAMJ,EAAII,KACVL,KAAMC,EAAID,MAEd,GAEAP,EAAGK,GAAG,QAAS,WACJ,MAATN,EAAEc,SAAFd,EAAEc,SACJ,GAEO,CACLC,eAAc,SAASN,OAAuBZ,OAAAA,QAAAC,QACtCG,EAAGe,KACPN,KAAKO,UAAU,CACbJ,KAAM,cACNL,KAAMC,MAETS,KAAA,WAAA,EACH,CAAC,MAAAC,GAAAtB,OAAAA,QAAAuB,OAAAD,EAAA,CAAA,EACDE,MAAK,WAAA,IACQ,OAAXpB,EAAGoB,QAAQxB,QAAAC,SACb,CAAC,MAAAqB,GAAAtB,OAAAA,QAAAuB,OAAAD,KAEL,GACD,CAAA,MAAAA,GAAA,OAAAtB,QAAAuB,OAAAD,EAAC,CAAA,wBC1C+B,SAACG,GAAa,OAAKC,EAAAA,aAA4BD,EAAE"}
1
+ {"version":3,"file":"index.umd.js","sources":["../src/live.ts","../src/controller.ts"],"sourcesContent":["import { IsomorphicWs } from '@metorial/util-websocket';\nimport type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';\nimport type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';\n\nexport let createLiveConnectionClient = (opts: { endpoint: string }) => ({\n connect: (d: {\n tenantId: string;\n connectionId: string;\n onOpen?: () => void;\n onMessage?: (msg: ConnectionMessage) => void;\n onClose?: () => void;\n }) => {\n let ws = new IsomorphicWs(\n `${opts.endpoint}/${d.tenantId}/connection/${d.connectionId}/live`\n );\n\n ws.on('open', () => {\n d.onOpen?.();\n });\n\n ws.on('message', (data: string) => {\n let msg: any = JSON.parse(data);\n d.onMessage?.({\n type: msg.type,\n data: msg.data\n });\n });\n\n ws.on('close', () => {\n d.onClose?.();\n });\n\n return {\n sendMcpMessage: async (msg: JSONRPCMessage) => {\n await ws.send(\n JSON.stringify({\n type: 'mcp.message',\n data: msg\n })\n );\n },\n close: async () => {\n ws.close();\n }\n };\n }\n});\n","import { createClient } from '@lowerdeck/rpc-client';\nimport { ClientOpts } from '@lowerdeck/rpc-client/dist/shared/clientBuilder';\nimport type { ShuttleClient } from '../../../service/src/apis/controllers';\n\nexport let createShuttleClient = (o: ClientOpts) => createClient<ShuttleClient>(o);\n"],"names":["opts","connect","d","ws","IsomorphicWs","endpoint","tenantId","connectionId","on","onOpen","data","msg","JSON","parse","onMessage","type","onClose","sendMcpMessage","Promise","resolve","send","stringify","then","e","reject","close","o","createClient"],"mappings":"4ZAIwC,SAACA,SAAgC,CACvEC,QAAS,SAACC,GAOR,IAAIC,EAAK,IAAIC,EAAYA,aACpBJ,EAAKK,SAAQ,IAAIH,EAAEI,wBAAuBJ,EAAEK,aAAmB,SAmBpE,OAhBAJ,EAAGK,GAAG,OAAQ,WACJ,MAARN,EAAEO,QAAFP,EAAEO,QACJ,GAEAN,EAAGK,GAAG,UAAW,SAACE,GAChB,IAAIC,EAAWC,KAAKC,MAAMH,GACf,MAAXR,EAAEY,WAAFZ,EAAEY,UAAY,CACZC,KAAMJ,EAAII,KACVL,KAAMC,EAAID,MAEd,GAEAP,EAAGK,GAAG,QAAS,WACJ,MAATN,EAAEc,SAAFd,EAAEc,SACJ,GAEO,CACLC,eAAcA,SAASN,GAAmB,IAAIO,OAAAA,QAAAC,QACtChB,EAAGiB,KACPR,KAAKS,UAAU,CACbN,KAAM,cACNL,KAAMC,MAETW,KACH,WAAA,EAAA,CAAC,MAAAC,GAAA,OAAAL,QAAAM,OAAAD,EAAA,CAAA,EACDE,MAAK,WAAA,IACQ,OAAXtB,EAAGsB,QAAQP,QAAAC,SACb,CAAC,MAAAI,GAAA,OAAAL,QAAAM,OAAAD,KAEL,EACD,wBC1CgC,SAACG,GAAa,OAAKC,EAAAA,aAA4BD,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metorial-services/shuttle-client",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/live.ts CHANGED
@@ -2,7 +2,7 @@ import { IsomorphicWs } from '@metorial/util-websocket';
2
2
  import type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
3
3
  import type { ConnectionMessage } from '../../../service/src/mcp/utils/messenger';
4
4
 
5
- export let createLiveConnectionClient = async (opts: { endpoint: string }) => ({
5
+ export let createLiveConnectionClient = (opts: { endpoint: string }) => ({
6
6
  connect: (d: {
7
7
  tenantId: string;
8
8
  connectionId: string;