feat(ioscompanion): expose native typing with an explicit replace flag

This commit is contained in:
pj committed 2026-06-07 16:43:46 +05:30
1 parent a6052c6745
commit ee198d15de
3 files changed
+32 -1

No files matched your search

@@ -282,7 +282,11 @@ func (c *runnerCompanion) Uninstall(ctx context.Context, bundleID string) error
}
func (c *runnerCompanion) InputText(ctx context.Context, text string) error {
_, err := c.call(ctx, "typeText", map[string]any{"text": text, "replace": true})
return c.TypeText(ctx, text, true)
}
func (c *runnerCompanion) TypeText(ctx context.Context, text string, replace bool) error {
_, err := c.call(ctx, "typeText", map[string]any{"text": text, "replace": replace})
return err
}