Skip to content

Commit 54b5acb

Browse files
authored
Add instructions to CLI (#13)
* Add instructions to CLI * Remove unnecessary file * Update for cu
1 parent 0b3a7a4 commit 54b5acb

File tree

2 files changed

+28
-38
lines changed

2 files changed

+28
-38
lines changed

index.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
104130
const CONFIG = {
105131
templateBasePath: path.resolve(__dirname, "../templates"),
106132
defaultAppName: "my-kernel-app",
@@ -330,6 +356,7 @@ function printNextSteps(
330356
331357
Next 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
}

templates/python/computer-use/run_local.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)