Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,32 @@ const INVOKE_SAMPLES: Record<
},
};

const REGISTERED_APP_NAMES: Record<
LanguageKey,
Partial<Record<TemplateKey, string>>
> = {
[LANGUAGE_TYPESCRIPT]: {
[TEMPLATE_SAMPLE_APP]:
'ts-basic',
[TEMPLATE_STAGEHAND]:
'ts-stagehand',
[TEMPLATE_PERSISTENT_BROWSER]:
'ts-persistent-browser',
[TEMPLATE_COMPUTER_USE]:
'ts-cu',
},
[LANGUAGE_PYTHON]: {
[TEMPLATE_SAMPLE_APP]:
'python-basic',
[TEMPLATE_BROWSER_USE]:
'python-bu',
[TEMPLATE_PERSISTENT_BROWSER]:
'python-persistent-browser',
[TEMPLATE_COMPUTER_USE]:
'python-cu',
},
};

const CONFIG = {
templateBasePath: path.resolve(__dirname, "../templates"),
defaultAppName: "my-kernel-app",
Expand Down Expand Up @@ -330,6 +356,7 @@ function printNextSteps(

Next steps:
cd ${appName}
# Request early access for an API key: https://waitlist.onkernel.com/r/mZW2zz
export KERNEL_API_KEY=<YOUR_API_KEY>
${
language === LANGUAGE_PYTHON
Expand All @@ -338,6 +365,7 @@ Next steps:
}
${deployCommand}
${INVOKE_SAMPLES[language][template]}
kernel logs ${REGISTERED_APP_NAMES[language][template]} --follow
`)
);
}
Expand Down
38 changes: 0 additions & 38 deletions templates/python/computer-use/run_local.py

This file was deleted.