Skip to content

Update kit typings to host API v3; migrate kitchensink off agent.run - #20

Merged
Anton-Horn merged 2 commits into
mainfrom
feat/host-api-v3
Jul 18, 2026
Merged

Update kit typings to host API v3; migrate kitchensink off agent.run#20
Anton-Horn merged 2 commits into
mainfrom
feat/host-api-v3

Conversation

@Anton-Horn

Copy link
Copy Markdown
Contributor

Companion to 0-AI-UG/cate#445.

Kit typings now match host API v3: panel.list gains url and focus/list land on the panel namespace; browser.list, editor.active, browser back/forward/current, and agent.run are removed. New browser wait and press methods typed.

Kitchensink's /api/agent-run route was the only agent.run caller; it now composes agent.open -> send -> dispose with dispose in a finally. The _kit copies are the usual sync-kit output.

Kit typecheck passes.

cate.panel.list gains url and becomes the single enumeration surface;
browser.list, editor.active, browser back/forward/current, and the
agent.run sugar are removed. Kitchensink's /api/agent-run route now
composes agent.open -> send -> dispose, with dispose in a finally.
close() is exposed by the preload and documented in the Cate repo but
was missing here. panel.list spans the workspace's windows, and
screenshots now land in the OS temp dir instead of the Desktop.
@Anton-Horn

Copy link
Copy Markdown
Contributor Author

Pushed a follow-up: panel.close was missing from the kit typings, plus corrected the panel.list scope note and the new screenshot temp dir location. Companion to 0-AI-UG/cate#478.

@Anton-Horn
Anton-Horn merged commit d32f283 into main Jul 18, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant