Skip to content

Emit typed Playwright modules for Sightkick tools and views - #31

Draft
chiplay wants to merge 2 commits into
mainfrom
codex/typed-code-surface
Draft

Emit typed Playwright modules for Sightkick tools and views#31
chiplay wants to merge 2 commits into
mainfrom
codex/typed-code-surface

Conversation

@chiplay

@chiplay chiplay commented Sep 10, 2026

Copy link
Copy Markdown
Member

Summary

Compile Sightkick tools into a typed Playwright module:

sightkick build examples/search --target playwright -o app.mjs

This emits app.mjs and NodeNext-compatible app.d.mts. createSightkick(page) exposes typed tool calls and view waits against a caller-owned Playwright Page. The executor reuses existing query and extraction semantics and performs trusted input, preserving guards, optional steps, structured returns, and guidance. Default JSON IR and stored-plan hashes remain unchanged.

docs/playwright.md documents usage, execution behavior, and supported APIs. Includes a minor changeset and CI checks for the embedded executor.

Validation

  • 7 Chromium/NodeNext tests passed, covering the search SPA, combobox input, scoped/accessible/shadow queries, guards, timeouts, navigation, generated types, and adversarial property names.
  • 47 existing runtime tests, TypeScript checks, Go tests, and go vet -tags e2e ./... passed.
  • Existing runtime bundle and golden JSON IR remain unchanged.

Signed-off-by: Chip Lay <chiplay@mac.com>
Signed-off-by: Chip Lay <chiplay@mac.com>
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