@@ -25,14 +25,13 @@ import {
2525 AppDeployResponse ,
2626 AppInvokeParams ,
2727 AppInvokeResponse ,
28- AppRetrieveInvocationResponse ,
2928 Apps ,
3029} from './resources/apps' ;
3130import { Browser , BrowserCreateSessionResponse } from './resources/browser' ;
3231import { readEnv } from './internal/utils/env' ;
3332import { formatRequestDetails , loggerFor } from './internal/utils/log' ;
3433import { isEmptyObj } from './internal/utils/values' ;
35- import { KernelApp , appRegistry } from './core/app-framework' ;
34+ import { KernelApp } from './core/app-framework' ;
3635
3736const environments = {
3837 production : 'https://api.onkernel.com/' ,
@@ -705,14 +704,16 @@ export class Kernel {
705704 }
706705 }
707706
707+ /**
708+ * Create a new KernelApp instance.
709+ *
710+ * @param name - The name of the app to create.
711+ * @returns A new KernelApp instance you can attach actions to.
712+ */
708713 public app ( name : string ) : KernelApp {
709714 return new KernelApp ( name ) ;
710715 }
711716
712- public static exportRegistry ( ) : string {
713- return appRegistry . exportJSON ( ) ;
714- }
715-
716717 static Kernel = this ;
717718 static DEFAULT_TIMEOUT = 60000 ; // 1 minute
718719
@@ -737,15 +738,13 @@ export class Kernel {
737738}
738739Kernel . Apps = Apps ;
739740Kernel . Browser = Browser ;
740- Kernel . exportRegistry = ( ) => appRegistry . exportJSON ( ) ;
741741export declare namespace Kernel {
742742 export type RequestOptions = Opts . RequestOptions ;
743743
744744 export {
745745 Apps as Apps ,
746746 type AppDeployResponse as AppDeployResponse ,
747747 type AppInvokeResponse as AppInvokeResponse ,
748- type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse ,
749748 type AppDeployParams as AppDeployParams ,
750749 type AppInvokeParams as AppInvokeParams ,
751750 } ;
0 commit comments