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
2 changes: 1 addition & 1 deletion templates/python/browser-use/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion templates/python/browser-use/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
3 changes: 2 additions & 1 deletion templates/python/persistent-browser/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion templates/python/persistent-browser/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion templates/python/sample-app/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion templates/typescript/computer-use/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions templates/typescript/persistent-browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ app.action<PageTitleInput, PageTitleOutput>(
persistence: {
id: "ts-persistent-browser",
},
stealth: true,
});

console.log(
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/persistent-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"typescript": "^5"
},
"dependencies": {
"@onkernel/sdk": "0.4.0",
"@onkernel/sdk": ">=0.5.0",
"playwright": "^1.52.0"
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"typescript": "^5"
},
"dependencies": {
"@onkernel/sdk": "0.4.0",
"@onkernel/sdk": ">=0.5.0",
"playwright": "^1.52.0"
}
}
Expand Down
3 changes: 2 additions & 1 deletion templates/typescript/stagehand/index.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -40,6 +40,7 @@ app.action<SearchQueryInput, SearchQueryOutput>(

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);
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/stagehand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@browserbasehq/stagehand": "^2.2.1",
"@onkernel/sdk": "0.4.0",
"@onkernel/sdk": ">=0.5.0",
"zod": "^3.25.7"
}
}