diff --git a/.changeset/dialog-handling.md b/.changeset/dialog-handling.md deleted file mode 100644 index 2dd059c..0000000 --- a/.changeset/dialog-handling.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"@understudy/protocol": minor -"@understudy/connector": minor ---- - -Add JavaScript-dialog handling breadth. - -- **protocol**: new `dialog` Event (`{ type, tabId, dialogType: alert | confirm | prompt | beforeunload, message, url, defaultPrompt?, disposition: accept | dismiss }`) plus `DialogTypeSchema` / `DialogDispositionSchema` exports. Emitted unsolicited (like `page_event`) after the extension locally handles a page dialog, so a consumer learns what the page said and how it was answered. -- **connector**: `browser.observe` gains a `get_dialogs` read returning the session's recent dialogs (`ObserveOutput.dialogs`), read from `GET /v1/sessions/:id`. - -The extension now applies a type-aware local disposition (alert/beforeunload accept, confirm/prompt dismiss) instead of blindly dismissing every dialog — a `beforeunload` dismiss previously cancelled navigations. Dispositions are decided synchronously extension-side because an open dialog blocks the single CDP channel; the consumer is notified, never in the response path. diff --git a/apps/backend/CHANGELOG.md b/apps/backend/CHANGELOG.md index db67220..aaf2225 100644 --- a/apps/backend/CHANGELOG.md +++ b/apps/backend/CHANGELOG.md @@ -1,5 +1,12 @@ # @understudy/backend +## 0.0.2 + +### Patch Changes + +- Updated dependencies [432e2cc] + - @understudy/protocol@0.5.0 + ## 0.0.1 ### Patch Changes diff --git a/apps/backend/package.json b/apps/backend/package.json index 7954660..8f255d0 100644 --- a/apps/backend/package.json +++ b/apps/backend/package.json @@ -1,6 +1,6 @@ { "name": "@understudy/backend", - "version": "0.0.1", + "version": "0.0.2", "private": true, "type": "module", "scripts": { diff --git a/apps/extension/CHANGELOG.md b/apps/extension/CHANGELOG.md index 8b90033..d680103 100644 --- a/apps/extension/CHANGELOG.md +++ b/apps/extension/CHANGELOG.md @@ -1,5 +1,12 @@ # @understudy/extension +## 0.0.2 + +### Patch Changes + +- Updated dependencies [432e2cc] + - @understudy/protocol@0.5.0 + ## 0.0.1 ### Patch Changes diff --git a/apps/extension/package.json b/apps/extension/package.json index 99b5a46..bdd079d 100644 --- a/apps/extension/package.json +++ b/apps/extension/package.json @@ -1,6 +1,6 @@ { "name": "@understudy/extension", - "version": "0.0.1", + "version": "0.0.2", "private": true, "type": "module", "scripts": { diff --git a/packages/connector/CHANGELOG.md b/packages/connector/CHANGELOG.md index 2ad7232..dbe9198 100644 --- a/packages/connector/CHANGELOG.md +++ b/packages/connector/CHANGELOG.md @@ -1,5 +1,21 @@ # @understudy/connector +## 0.3.0 + +### Minor Changes + +- 432e2cc: Add JavaScript-dialog handling breadth. + + - **protocol**: new `dialog` Event (`{ type, tabId, dialogType: alert | confirm | prompt | beforeunload, message, url, defaultPrompt?, disposition: accept | dismiss }`) plus `DialogTypeSchema` / `DialogDispositionSchema` exports. Emitted unsolicited (like `page_event`) after the extension locally handles a page dialog, so a consumer learns what the page said and how it was answered. + - **connector**: `browser.observe` gains a `get_dialogs` read returning the session's recent dialogs (`ObserveOutput.dialogs`), read from `GET /v1/sessions/:id`. + + The extension now applies a type-aware local disposition (alert/beforeunload accept, confirm/prompt dismiss) instead of blindly dismissing every dialog — a `beforeunload` dismiss previously cancelled navigations. Dispositions are decided synchronously extension-side because an open dialog blocks the single CDP channel; the consumer is notified, never in the response path. + +### Patch Changes + +- Updated dependencies [432e2cc] + - @understudy/protocol@0.5.0 + ## 0.2.0 ### Minor Changes diff --git a/packages/connector/package.json b/packages/connector/package.json index 6eebf80..bfb902b 100644 --- a/packages/connector/package.json +++ b/packages/connector/package.json @@ -1,6 +1,6 @@ { "name": "@understudy/connector", - "version": "0.2.0", + "version": "0.3.0", "type": "module", "description": "Reference @proofoftech/breakwater connectors for the understudy browser-execution service: observe / act / fill_credential, approval-gated via flowsafe grants", "main": "./dist/index.js", diff --git a/packages/protocol/CHANGELOG.md b/packages/protocol/CHANGELOG.md index 643ef7b..203c5a4 100644 --- a/packages/protocol/CHANGELOG.md +++ b/packages/protocol/CHANGELOG.md @@ -1,5 +1,16 @@ # @understudy/protocol +## 0.5.0 + +### Minor Changes + +- 432e2cc: Add JavaScript-dialog handling breadth. + + - **protocol**: new `dialog` Event (`{ type, tabId, dialogType: alert | confirm | prompt | beforeunload, message, url, defaultPrompt?, disposition: accept | dismiss }`) plus `DialogTypeSchema` / `DialogDispositionSchema` exports. Emitted unsolicited (like `page_event`) after the extension locally handles a page dialog, so a consumer learns what the page said and how it was answered. + - **connector**: `browser.observe` gains a `get_dialogs` read returning the session's recent dialogs (`ObserveOutput.dialogs`), read from `GET /v1/sessions/:id`. + + The extension now applies a type-aware local disposition (alert/beforeunload accept, confirm/prompt dismiss) instead of blindly dismissing every dialog — a `beforeunload` dismiss previously cancelled navigations. Dispositions are decided synchronously extension-side because an open dialog blocks the single CDP channel; the consumer is notified, never in the response path. + ## 0.4.0 ### Minor Changes diff --git a/packages/protocol/package.json b/packages/protocol/package.json index 904bd93..e2f0167 100644 --- a/packages/protocol/package.json +++ b/packages/protocol/package.json @@ -1,6 +1,6 @@ { "name": "@understudy/protocol", - "version": "0.4.0", + "version": "0.5.0", "type": "module", "description": "The understudy browser-execution command protocol: zod-4 Command/Event discriminated unions shared by the service, the extension driver, and consumer connectors", "main": "./dist/index.js",