You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Templates: add invocation_id to browser creation; upgrade templates to Kernel SDK 0.35.0 (#116)
### Summary
- Pass **invocation_id** into browser creation for Yutori, Gemini,
OpenAGI, and Anthropic computer-use templates so the dashboard can link
browser sessions to invocations.
- **Upgrade templates to Kernel SDK 0.35.0** for those same templates.
### Changes
**1. Invocation ID (4 commits)**
- **Yutori** (TS + Python): `SessionOptions` / session options include
`invocation_id`; `browsers.create()` and action handlers receive it from
`ctx.invocation_id`.
- **Gemini** (TS + Python): Same pattern.
- **OpenAGI** (Python only): `kernel_session` and both actions pass
`invocation_id` into browser creation.
- **Anthropic** (TS + Python): Same pattern as Yutori/Gemini.
**2. SDK upgrade (1 commit)**
- **Upgrade templates to Kernel SDK 0.35.0**: TypeScript templates use
`@onkernel/sdk@^0.35.0`, Python templates use `kernel>=0.35.0` (yutori,
gemini, anthropic, openagi computer-use).
### Templates touched
- `pkg/templates/typescript/{yutori,gemini,anthropic}-computer-use/`
- `pkg/templates/python/{yutori,gemini,anthropic,openagi}-computer-use/`
### QA
- Created, deployed, and invoked all 7 apps; all invokes succeeded.
Made with [Cursor](https://cursor.com)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Template-only changes that mostly thread through an extra optional
parameter and bump SDK versions; risk is limited to potential runtime
incompatibilities if consumers rely on older SDK behavior.
>
> **Overview**
> Updates the Python and TypeScript computer-use templates (Anthropic,
Gemini, Yutori, and OpenAGI) to pass `ctx.invocation_id` through their
session helpers into `browsers.create(...)`, enabling browser
sessions/replays to be linked back to the originating invocation.
>
> Bumps template dependencies to Kernel SDK `0.35.0` (`kernel>=0.35.0`
and `@onkernel/sdk@^0.35.0`) and adjusts TypeScript session
typing/nullable assignments to accommodate the newer SDK response
shapes.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
edf1d67. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments