diff --git a/templates/python/browser-use/main.py b/templates/python/browser-use/main.py index 7ce130b..83fc3ee 100644 --- a/templates/python/browser-use/main.py +++ b/templates/python/browser-use/main.py @@ -28,7 +28,7 @@ async def bu_task(ctx: kernel.KernelContext, input_data: TaskInput): An object with final_result and errors properties """ - kernel_browser = client.browsers.create(invocation_id=ctx.invocation_id) + kernel_browser = client.browsers.create(invocation_id=ctx.invocation_id, stealth=True) print("Kernel browser live view url: ", kernel_browser.browser_live_view_url) agent = Agent( #task="Compare the price of gpt-4o and DeepSeek-V3", diff --git a/templates/python/browser-use/pyproject.toml b/templates/python/browser-use/pyproject.toml index 47721ba..83dd66a 100644 --- a/templates/python/browser-use/pyproject.toml +++ b/templates/python/browser-use/pyproject.toml @@ -6,7 +6,7 @@ readme = "README.md" requires-python = ">=3.11" dependencies = [ "browser-use~=0.2.4", - "kernel==0.4.0", + "kernel>=0.5.0", "langchain-openai>=0.3.11", "pydantic>=2.10.6", ] diff --git a/templates/python/persistent-browser/main.py b/templates/python/persistent-browser/main.py index e64e2cf..2e9b3c6 100644 --- a/templates/python/persistent-browser/main.py +++ b/templates/python/persistent-browser/main.py @@ -46,7 +46,8 @@ async def get_page_title(ctx: kernel.KernelContext, input_data: PageTitleInput) # Create a browser instance using the context's invocation_id and a persistent id kernel_browser = client.browsers.create( invocation_id=ctx.invocation_id, - persistence={"id": "my-awesome-persistent-browser-2"} + persistence={"id": "my-awesome-persistent-browser-2"}, + stealth=True, ) print("Kernel browser live view url: ", kernel_browser.browser_live_view_url) diff --git a/templates/python/persistent-browser/pyproject.toml b/templates/python/persistent-browser/pyproject.toml index 3550d72..8573d1a 100644 --- a/templates/python/persistent-browser/pyproject.toml +++ b/templates/python/persistent-browser/pyproject.toml @@ -4,7 +4,7 @@ version = "0.1.0" description = "Basic Kernel application that demonstrates the use of persistent browsers" readme = "README.md" requires-python = ">=3.11" -dependencies = ["kernel==0.4.0", "playwright>=1.52.0"] +dependencies = ["kernel>=0.5.0", "playwright>=1.52.0"] [dependency-groups] dev = ["mypy>=1.15.0"] diff --git a/templates/python/sample-app/pyproject.toml b/templates/python/sample-app/pyproject.toml index 2da6c76..5ddcb78 100644 --- a/templates/python/sample-app/pyproject.toml +++ b/templates/python/sample-app/pyproject.toml @@ -4,7 +4,7 @@ version = "0.1.0" description = "Kernel application template - Python" readme = "README.md" requires-python = ">=3.11" -dependencies = ["kernel==0.4.0", "playwright>=1.52.0"] +dependencies = ["kernel>=0.5.0", "playwright>=1.52.0"] [dependency-groups] dev = ["mypy>=1.15.0"] diff --git a/templates/typescript/computer-use/package.json b/templates/typescript/computer-use/package.json index efe807f..33cca71 100644 --- a/templates/typescript/computer-use/package.json +++ b/templates/typescript/computer-use/package.json @@ -7,7 +7,7 @@ "typescript": "^5" }, "dependencies": { - "@onkernel/sdk": "0.3.0", + "@onkernel/sdk": ">=0.5.0", "playwright": "^1.52.0", "@anthropic-ai/sdk": "0.52.0", "luxon": "3.6.0" diff --git a/templates/typescript/persistent-browser/index.ts b/templates/typescript/persistent-browser/index.ts index 6c67cc4..476c384 100644 --- a/templates/typescript/persistent-browser/index.ts +++ b/templates/typescript/persistent-browser/index.ts @@ -51,6 +51,7 @@ app.action( persistence: { id: "ts-persistent-browser", }, + stealth: true, }); console.log( diff --git a/templates/typescript/persistent-browser/package.json b/templates/typescript/persistent-browser/package.json index 4795d0d..7e3b189 100644 --- a/templates/typescript/persistent-browser/package.json +++ b/templates/typescript/persistent-browser/package.json @@ -7,7 +7,7 @@ "typescript": "^5" }, "dependencies": { - "@onkernel/sdk": "0.4.0", + "@onkernel/sdk": ">=0.5.0", "playwright": "^1.52.0" } } diff --git a/templates/typescript/sample-app/package.json b/templates/typescript/sample-app/package.json index 4795d0d..7e3b189 100644 --- a/templates/typescript/sample-app/package.json +++ b/templates/typescript/sample-app/package.json @@ -7,7 +7,7 @@ "typescript": "^5" }, "dependencies": { - "@onkernel/sdk": "0.4.0", + "@onkernel/sdk": ">=0.5.0", "playwright": "^1.52.0" } } diff --git a/templates/typescript/stagehand/index.ts b/templates/typescript/stagehand/index.ts index 7f76137..14cdb51 100644 --- a/templates/typescript/stagehand/index.ts +++ b/templates/typescript/stagehand/index.ts @@ -1,5 +1,5 @@ -import { Kernel, type KernelContext } from '@onkernel/sdk'; import { Stagehand } from "@browserbasehq/stagehand"; +import { Kernel, type KernelContext } from '@onkernel/sdk'; import { z } from 'zod'; const kernel = new Kernel(); @@ -40,6 +40,7 @@ app.action( const kernelBrowser = await kernel.browsers.create({ invocation_id: ctx.invocation_id, + stealth: true, }); console.log("Kernel browser live view url: ", kernelBrowser.browser_live_view_url); diff --git a/templates/typescript/stagehand/package.json b/templates/typescript/stagehand/package.json index 15d3a6b..8e771dd 100644 --- a/templates/typescript/stagehand/package.json +++ b/templates/typescript/stagehand/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@browserbasehq/stagehand": "^2.2.1", - "@onkernel/sdk": "0.4.0", + "@onkernel/sdk": ">=0.5.0", "zod": "^3.25.7" } }