diff --git a/README.md b/README.md index 55b0798..6766747 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ kernel deploy index.ts # --env OPENAI_API_KEY=XXX if Stagehand; --env ANTHROPIC kernel deploy main.py # --env OPENAI_API_KEY=XXX if Browser Use ``` -If deploying an app that requires environment variables, make sure to [set them](https://docs.onkernel.com/launch/deploy#environment-variables) when you `deploy`. +If deploying an app that requires environment variables, make sure to [set them](https://onkernel.com/docs/launch/deploy#environment-variables) when you `deploy`. 5. Invoke your application: @@ -157,7 +157,7 @@ These are the sample apps currently available when you run `npx @onkernel/create For more information about Kernel and its features, visit: -- [Kernel Documentation](https://docs.onkernel.com/quickstart) +- [Kernel Documentation](https://onkernel.com/docs/quickstart) - [Kernel Homepage](https://onkernel.com) ## Contributing diff --git a/templates/python/browser-use/README.md b/templates/python/browser-use/README.md index 2be0d1b..d75db97 100644 --- a/templates/python/browser-use/README.md +++ b/templates/python/browser-use/README.md @@ -2,4 +2,4 @@ This is a simple Kernel application that implements the Browser Use SDK. -See the [docs](https://docs.onkernel.com/build/browser-frameworks) for information. \ No newline at end of file +See the [docs](https://onkernel.com/docs/build/browser-frameworks) for information. \ No newline at end of file diff --git a/templates/python/browser-use/main.py b/templates/python/browser-use/main.py index 7d0b59e..1ae1003 100644 --- a/templates/python/browser-use/main.py +++ b/templates/python/browser-use/main.py @@ -13,7 +13,7 @@ class TaskInput(TypedDict): task: str # LLM API Keys are set in the environment during `kernel deploy -e OPENAI_API_KEY=XXX` -# See https://docs.onkernel.com/launch/deploy#environment-variables +# See https://onkernel.com/docs/launch/deploy#environment-variables llm = ChatOpenAI(model="gpt-4.1") @app.action("bu-task") diff --git a/templates/python/computer-use/README.md b/templates/python/computer-use/README.md index 3771a0b..56140cd 100644 --- a/templates/python/computer-use/README.md +++ b/templates/python/computer-use/README.md @@ -4,4 +4,4 @@ This is a simple Kernel application that implements a prompt loop using Anthropi It generally follows the [Anthropic Reference Implementation](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo) but replaces `xodotool` and `gnome-screenshot` with Playwright. -See the [docs](https://docs.onkernel.com/quickstart) for information. \ No newline at end of file +See the [docs](https://onkernel.com/docs/quickstart) for information. \ No newline at end of file diff --git a/templates/python/cua/README.md b/templates/python/cua/README.md index 03d2dd7..f77c6b1 100644 --- a/templates/python/cua/README.md +++ b/templates/python/cua/README.md @@ -4,4 +4,4 @@ This is a Kernel application that demonstrates using the Computer Using Agent (C It generally follows the [OpenAI CUA Sample App Reference](https://github.com/openai/openai-cua-sample-app) and uses Playwright via Kernel for browser automation. -See the [docs](https://docs.onkernel.com/quickstart) for more information. \ No newline at end of file +See the [docs](https://onkernel.com/docs/quickstart) for more information. \ No newline at end of file diff --git a/templates/python/sample-app/README.md b/templates/python/sample-app/README.md index 8373354..a9bfef2 100644 --- a/templates/python/sample-app/README.md +++ b/templates/python/sample-app/README.md @@ -2,4 +2,4 @@ This is a simple Kernel application that extracts the title from a webpage. -See the [docs](https://docs.onkernel.com/quickstart) for information. \ No newline at end of file +See the [docs](https://onkernel.com/docs/quickstart) for information. \ No newline at end of file diff --git a/templates/python/sample-app/main.py b/templates/python/sample-app/main.py index 6ba3d73..15587b0 100644 --- a/templates/python/sample-app/main.py +++ b/templates/python/sample-app/main.py @@ -68,7 +68,7 @@ async def get_page_title(ctx: kernel.KernelContext, input_data: PageTitleInput) """ Example app that instantiates a persisted Kernel browser that can be reused across invocations Invoke this action to test Kernel browsers manually with our browser live view -https://docs.onkernel.com/launch/browser-persistence +https://onkernel.com/docs/browsers/persistence Args: ctx: Kernel context containing invocation information Returns: diff --git a/templates/typescript/computer-use/README.md b/templates/typescript/computer-use/README.md index 7465e25..257e064 100644 --- a/templates/typescript/computer-use/README.md +++ b/templates/typescript/computer-use/README.md @@ -4,4 +4,4 @@ This is a simple Kernel application that implements a prompt loop using Anthropi It generally follows the [Anthropic Reference Implementation](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo) but replaces `xodotool` and `gnome-screenshot` with Playwright. -See the [docs](https://docs.onkernel.com/quickstart) for information. \ No newline at end of file +See the [docs](https://onkernel.com/docs/quickstart) for information. \ No newline at end of file diff --git a/templates/typescript/computer-use/index.ts b/templates/typescript/computer-use/index.ts index 8774dd1..1212102 100644 --- a/templates/typescript/computer-use/index.ts +++ b/templates/typescript/computer-use/index.ts @@ -15,7 +15,7 @@ interface QueryOutput { } // LLM API Keys are set in the environment during `kernel deploy -e ANTHROPIC_API_KEY=XXX` -// See https://docs.onkernel.com/launch/deploy#environment-variables +// See https://onkernel.com/docs/launch/deploy#environment-variables const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY; if (!ANTHROPIC_API_KEY) { @@ -66,11 +66,11 @@ app.action( throw new Error('Failed to get the last message from the sampling loop'); } - const result = typeof lastMessage.content === 'string' - ? lastMessage.content - : lastMessage.content.map(block => - block.type === 'text' ? block.text : '' - ).join(''); + const result = typeof lastMessage.content === 'string' + ? lastMessage.content + : lastMessage.content.map(block => + block.type === 'text' ? block.text : '' + ).join(''); return { result }; } catch (error) { diff --git a/templates/typescript/cua/README.md b/templates/typescript/cua/README.md index c196bcd..8cad9d6 100644 --- a/templates/typescript/cua/README.md +++ b/templates/typescript/cua/README.md @@ -5,4 +5,4 @@ This is a Kernel application that demonstrates using the Computer Using Agent (C It generally follows the [OpenAI CUA Sample App Reference](https://github.com/openai/openai-cua-sample-app) and uses Playwright via Kernel for browser automation. Also makes use of the latest OpenAI SDK format, and has local equivalent to Kernel methods for local testing before deploying on Kernel. -See the [docs](https://docs.onkernel.com/quickstart) for information. +See the [docs](https://onkernel.com/docs/quickstart) for information. diff --git a/templates/typescript/sample-app/README.md b/templates/typescript/sample-app/README.md index 78ead59..1d85657 100644 --- a/templates/typescript/sample-app/README.md +++ b/templates/typescript/sample-app/README.md @@ -2,4 +2,4 @@ This is a simple Kernel application that extracts the title from a webpage. -See the [docs](https://docs.onkernel.com/quickstart) for information. \ No newline at end of file +See the [docs](https://onkernel.com/docs/quickstart) for information. \ No newline at end of file diff --git a/templates/typescript/sample-app/index.ts b/templates/typescript/sample-app/index.ts index c62df63..09fcaa0 100644 --- a/templates/typescript/sample-app/index.ts +++ b/templates/typescript/sample-app/index.ts @@ -78,7 +78,7 @@ app.action( /** * Example app that instantiates a persisted Kernel browser that can be reused across invocations * Invoke this action to test Kernel browsers manually with our browser live view - * https://docs.onkernel.com/launch/browser-persistence + * https://onkernel.com/docs/browsers/persistence * Args: * ctx: Kernel context containing invocation information * Returns: diff --git a/templates/typescript/stagehand/README.md b/templates/typescript/stagehand/README.md index 4486070..00f9bcf 100644 --- a/templates/typescript/stagehand/README.md +++ b/templates/typescript/stagehand/README.md @@ -2,4 +2,4 @@ This is a simple Kernel application that implements the Stagehand SDK. -See the [docs](https://docs.onkernel.com/quickstart) for information. \ No newline at end of file +See the [docs](https://onkernel.com/docs/quickstart) for information. \ No newline at end of file diff --git a/templates/typescript/stagehand/index.ts b/templates/typescript/stagehand/index.ts index 8a4d174..ec1c4e8 100644 --- a/templates/typescript/stagehand/index.ts +++ b/templates/typescript/stagehand/index.ts @@ -15,7 +15,7 @@ interface SearchQueryOutput { } // LLM API Keys are set in the environment during `kernel deploy -e OPENAI_API_KEY=XXX` -// See https://docs.onkernel.com/launch/deploy#environment-variables +// See https://onkernel.com/docs/launch/deploy#environment-variables const OPENAI_API_KEY = process.env.OPENAI_API_KEY; if (!OPENAI_API_KEY) {