File tree Expand file tree Collapse file tree 2 files changed +28
-38
lines changed
templates/python/computer-use Expand file tree Collapse file tree 2 files changed +28
-38
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,32 @@ const INVOKE_SAMPLES: Record<
101101 } ,
102102} ;
103103
104+ const REGISTERED_APP_NAMES: Record<
105+ LanguageKey ,
106+ Partial < Record < TemplateKey , string > >
107+ > = {
108+ [ LANGUAGE_TYPESCRIPT ] : {
109+ [ TEMPLATE_SAMPLE_APP ] :
110+ 'ts-basic' ,
111+ [ TEMPLATE_STAGEHAND ] :
112+ 'ts-stagehand' ,
113+ [ TEMPLATE_PERSISTENT_BROWSER ] :
114+ 'ts-persistent-browser' ,
115+ [ TEMPLATE_COMPUTER_USE ] :
116+ 'ts-cu' ,
117+ } ,
118+ [ LANGUAGE_PYTHON ] : {
119+ [ TEMPLATE_SAMPLE_APP ] :
120+ 'python-basic' ,
121+ [ TEMPLATE_BROWSER_USE ] :
122+ 'python-bu' ,
123+ [ TEMPLATE_PERSISTENT_BROWSER ] :
124+ 'python-persistent-browser' ,
125+ [ TEMPLATE_COMPUTER_USE ] :
126+ 'python-cu' ,
127+ } ,
128+ } ;
129+
104130const CONFIG = {
105131 templateBasePath : path . resolve ( __dirname , "../templates" ) ,
106132 defaultAppName : "my-kernel-app" ,
@@ -330,6 +356,7 @@ function printNextSteps(
330356
331357Next steps:
332358 cd ${ appName }
359+ # Request early access for an API key: https://waitlist.onkernel.com/r/mZW2zz
333360 export KERNEL_API_KEY=<YOUR_API_KEY>
334361 ${
335362 language === LANGUAGE_PYTHON
@@ -338,6 +365,7 @@ Next steps:
338365 }
339366 ${ deployCommand }
340367 ${ INVOKE_SAMPLES [ language ] [ template ] }
368+ kernel logs ${ REGISTERED_APP_NAMES [ language ] [ template ] } --follow
341369 ` )
342370 ) ;
343371}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments