effect-browser 0.3.0-beta.23 → 0.3.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/README.md +124 -5
  2. package/dist/ActionPort.d.mts +1 -1
  3. package/dist/ActionPort.mjs +1 -1
  4. package/dist/{Browser-BKPAbyys.mjs → Browser-CAQFhTkM.mjs} +559 -333
  5. package/dist/Browser-CAQFhTkM.mjs.map +1 -0
  6. package/dist/{Browser-wZhwZSlG.d.mts → Browser-DGR6ZEYo.d.mts} +9 -3
  7. package/dist/Browser.d.mts +1 -1
  8. package/dist/Browser.mjs +1 -1
  9. package/dist/{BrowserEvent-lLqJ3GJS.d.mts → BrowserEvent-C2p-NwuU.d.mts} +30 -6
  10. package/dist/BrowserEvent.d.mts +2 -2
  11. package/dist/BrowserEvent.mjs +20 -1
  12. package/dist/BrowserEvent.mjs.map +1 -1
  13. package/dist/{Change-Ba7INmay.d.mts → Change-CxT1mp2e.d.mts} +13 -2
  14. package/dist/Change.d.mts +1 -1
  15. package/dist/Change.mjs +7 -1
  16. package/dist/Change.mjs.map +1 -1
  17. package/dist/Clock-Du5nP-nK.d.mts +57 -0
  18. package/dist/Clock.d.mts +2 -57
  19. package/dist/Layout.d.mts +2 -0
  20. package/dist/Layout.mjs +81 -0
  21. package/dist/Layout.mjs.map +1 -0
  22. package/dist/Matching-MtcWZ_hA.d.mts +266 -0
  23. package/dist/Matching.d.mts +2 -37
  24. package/dist/Matching.mjs +22 -17
  25. package/dist/Matching.mjs.map +1 -1
  26. package/dist/Overlay-CoGw5tL_.d.mts +27 -0
  27. package/dist/Overlay.d.mts +2 -0
  28. package/dist/Overlay.mjs +30 -0
  29. package/dist/Overlay.mjs.map +1 -0
  30. package/dist/{Page-BF5izr8R.mjs → Page-BaAOshxo.mjs} +3 -1
  31. package/dist/Page-BaAOshxo.mjs.map +1 -0
  32. package/dist/{Page-CvsOEorc.d.mts → Page-CLzh5E9w.d.mts} +158 -6
  33. package/dist/Page.d.mts +2 -2
  34. package/dist/Page.mjs +1 -1
  35. package/dist/PageTime-68UPUZpZ.d.mts +29 -0
  36. package/dist/PageTime.d.mts +2 -0
  37. package/dist/PageTime.mjs +7 -0
  38. package/dist/PageTime.mjs.map +1 -0
  39. package/dist/Pose-2qqGzPvb.d.mts +32 -0
  40. package/dist/Pose.d.mts +2 -0
  41. package/dist/Pose.mjs +44 -0
  42. package/dist/Pose.mjs.map +1 -0
  43. package/dist/Site.d.mts +714 -0
  44. package/dist/Site.mjs +102 -0
  45. package/dist/Site.mjs.map +1 -0
  46. package/dist/{Stillness-CNlvayIo.mjs → Stillness-BwP0RdI4.mjs} +27 -6
  47. package/dist/Stillness-BwP0RdI4.mjs.map +1 -0
  48. package/dist/{Style-AO4V7Czt.mjs → Style-T3ezDYLI.mjs} +25 -2
  49. package/dist/{Style-AO4V7Czt.mjs.map → Style-T3ezDYLI.mjs.map} +1 -1
  50. package/dist/Style.d.mts +15 -2
  51. package/dist/Style.mjs +2 -2
  52. package/dist/Url-B7P-TWwL.d.mts +26 -0
  53. package/dist/Url.d.mts +2 -26
  54. package/dist/{Window-CMddGMt1.d.mts → Window-BDa8MtNP.d.mts} +4 -4
  55. package/dist/Window.d.mts +1 -1
  56. package/dist/{connection-CK83pvqP.mjs → connection-C_jWYIwe.mjs} +2 -2
  57. package/dist/{connection-CK83pvqP.mjs.map → connection-C_jWYIwe.mjs.map} +1 -1
  58. package/dist/{connection-2KHI4_KN.d.mts → connection-Db-YtlbE.d.mts} +2 -2
  59. package/dist/film/Film.d.mts +265 -0
  60. package/dist/film/Film.mjs +246 -0
  61. package/dist/film/Film.mjs.map +1 -0
  62. package/dist/fold.inpage-CyVZQHZL.d.mts +49 -0
  63. package/dist/index.d.mts +11 -8
  64. package/dist/index.mjs +8 -4
  65. package/dist/moment/Moment.d.mts +5 -5
  66. package/dist/plan/index.d.mts +2 -2
  67. package/dist/plan/index.mjs +2 -2
  68. package/dist/policy/Policy.d.mts +1 -1
  69. package/dist/policy/Policy.mjs +1 -1
  70. package/dist/pose.inpage-CLq7Mfdr.mjs +2042 -0
  71. package/dist/pose.inpage-CLq7Mfdr.mjs.map +1 -0
  72. package/dist/presentation/Presentation.d.mts +8 -1
  73. package/dist/presentation/Presentation.mjs +3 -1
  74. package/dist/presentation/Presentation.mjs.map +1 -1
  75. package/dist/presentation/Stage.d.mts +1 -1
  76. package/dist/providers/Cdp.d.mts +2 -2
  77. package/dist/providers/Cdp.mjs +1 -1
  78. package/dist/providers/Chromium.d.mts +1 -1
  79. package/dist/providers/Chromium.mjs +1 -1
  80. package/dist/stillness/Stillness.d.mts +1 -1
  81. package/dist/stillness/Stillness.mjs +1 -1
  82. package/dist/testing/index.d.mts +4 -30
  83. package/dist/testing/index.mjs +8 -2
  84. package/dist/testing/index.mjs.map +1 -1
  85. package/dist/workerd/Cdp.d.mts +2 -2
  86. package/dist/workerd/Cdp.mjs +1 -1
  87. package/package.json +32 -2
  88. package/src/Browser.ts +11 -6
  89. package/src/BrowserEvent.ts +19 -0
  90. package/src/Change.ts +7 -1
  91. package/src/Layout.ts +116 -0
  92. package/src/Matching.ts +24 -15
  93. package/src/Overlay.ts +37 -0
  94. package/src/Page.ts +45 -0
  95. package/src/PageTime.ts +47 -0
  96. package/src/Pose.ts +50 -0
  97. package/src/Site.ts +124 -0
  98. package/src/Style.ts +36 -0
  99. package/src/film/Film.ts +384 -0
  100. package/src/index.ts +4 -0
  101. package/src/internal/input/perform.ts +31 -3
  102. package/src/internal/input/pointer.ts +7 -4
  103. package/src/internal/input/targets.ts +1 -1
  104. package/src/internal/page/bridge.ts +65 -33
  105. package/src/internal/page/clock.inpage.ts +306 -0
  106. package/src/internal/page/compose.inpage.ts +101 -0
  107. package/src/internal/page/context.ts +2 -0
  108. package/src/internal/page/overlay.inpage.ts +96 -0
  109. package/src/internal/page/overlay.ts +89 -0
  110. package/src/internal/page/page.ts +12 -0
  111. package/src/internal/page/pose.inpage.ts +200 -0
  112. package/src/internal/page/pose.ts +80 -0
  113. package/src/internal/page/time.inpage.ts +49 -0
  114. package/src/internal/page/time.ts +122 -0
  115. package/src/internal/page/viewport.ts +3 -2
  116. package/src/internal/pictures/pictures.ts +93 -32
  117. package/src/internal/reading/layout.inpage.ts +193 -0
  118. package/src/internal/reading/layout.ts +101 -0
  119. package/src/internal/reading/names.inpage.ts +15 -0
  120. package/src/internal/reading/outline.inpage.ts +2 -18
  121. package/src/internal/reading/reading.ts +22 -2
  122. package/src/internal/reading/ready.inpage.ts +18 -23
  123. package/src/internal/reading/ready.ts +23 -3
  124. package/src/internal/reading/text.inpage.ts +1 -14
  125. package/src/internal/timeline/changes.inpage.ts +7 -15
  126. package/src/internal/timeline/changes.ts +14 -1
  127. package/src/internal/timeline/record.inpage.ts +15 -6
  128. package/src/presentation/Presentation.ts +13 -0
  129. package/src/stillness/Pixels.ts +26 -0
  130. package/src/stillness/Stillness.ts +30 -5
  131. package/src/testing/page.ts +5 -0
  132. package/dist/Browser-BKPAbyys.mjs.map +0 -1
  133. package/dist/Page-BF5izr8R.mjs.map +0 -1
  134. package/dist/Stillness-CNlvayIo.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import { t as BrowserError } from "../BrowserError-BlcmLVzn.mjs";
2
- import { E as WheelScrolled, S as TextInserted, T as TrackPlanned, a as CursorChanged, c as Disconnected, d as PageClosed, f as PageLoaded, g as PointerReleased, h as PointerPressed, l as KeyChanged, m as PageUntracked, o as DialogShown, p as PageOpened, t as Action, u as Navigated, v as RequestRefused, w as TrackPerformed, y as SessionEnding } from "../BrowserEvent-lLqJ3GJS.mjs";
3
- import { r as Changes, t as Change } from "../Change-Ba7INmay.mjs";
2
+ import { C as TextInserted, D as WheelScrolled, E as TrackPlanned, T as TrackPerformed, _ as PointerReleased, b as SessionEnding, d as Navigated, f as PageClosed, g as PointerPressed, h as PageUntracked, l as Disconnected, m as PageOpened, n as ActionAnnounced, o as CursorChanged, p as PageLoaded, s as DialogShown, t as Action, u as KeyChanged, y as RequestRefused } from "../BrowserEvent-C2p-NwuU.mjs";
3
+ import { r as Changes, t as Change } from "../Change-CxT1mp2e.mjs";
4
4
  import { r as Frame } from "../Frame-UEH2hO5T.mjs";
5
+ import { A as WindowOptions, f as Page, p as Page_d_exports } from "../Page-CLzh5E9w.mjs";
5
6
  import { n as Snapshot, r as SnapshotOptions } from "../Snapshot-CtBVOtuu.mjs";
6
- import { t as Window } from "../Window-CMddGMt1.mjs";
7
- import { f as Page, k as WindowOptions, p as Page_d_exports } from "../Page-CvsOEorc.mjs";
7
+ import { t as Window } from "../Window-BDa8MtNP.mjs";
8
8
  import { Effect, Schema } from "effect";
9
9
  import { Prompt } from "effect/ai";
10
10
  //#region src/moment/words.d.ts
@@ -16,7 +16,7 @@ declare const Moment_base: Schema.Class<Moment, Schema.Struct<{
16
16
  readonly page: Schema.String;
17
17
  readonly since: Schema.Finite;
18
18
  readonly until: Schema.Finite;
19
- readonly events: Schema.$Array<Schema.Union<readonly [typeof RequestRefused, typeof PageOpened, typeof PageClosed, typeof PageUntracked, typeof Navigated, typeof PageLoaded, typeof Action, typeof TrackPlanned, typeof TrackPerformed, typeof PointerPressed, typeof PointerReleased, typeof WheelScrolled, typeof KeyChanged, typeof TextInserted, typeof CursorChanged, typeof DialogShown, typeof Disconnected, typeof SessionEnding]>>;
19
+ readonly events: Schema.$Array<Schema.Union<readonly [typeof RequestRefused, typeof PageOpened, typeof PageClosed, typeof PageUntracked, typeof Navigated, typeof PageLoaded, typeof Action, typeof ActionAnnounced, typeof TrackPlanned, typeof TrackPerformed, typeof PointerPressed, typeof PointerReleased, typeof WheelScrolled, typeof KeyChanged, typeof TextInserted, typeof CursorChanged, typeof DialogShown, typeof Disconnected, typeof SessionEnding]>>;
20
20
  readonly changes: Schema.optional<typeof Changes>;
21
21
  readonly frames: Schema.$Array<typeof Frame>;
22
22
  readonly missing: Schema.$Array<typeof BrowserError>;
@@ -1,6 +1,6 @@
1
1
  import { t as BrowserError } from "../BrowserError-BlcmLVzn.mjs";
2
- import { b as Subject, r as BrowserEvent } from "../BrowserEvent-lLqJ3GJS.mjs";
3
- import { c as Found, f as Page, g as ReadyOptions } from "../Page-CvsOEorc.mjs";
2
+ import { i as BrowserEvent, x as Subject } from "../BrowserEvent-C2p-NwuU.mjs";
3
+ import { _ as ReadyOptions, c as Found, f as Page } from "../Page-CLzh5E9w.mjs";
4
4
  import { Duration, Effect, Schema } from "effect";
5
5
  //#region src/plan/choose.d.ts
6
6
  declare const Missing_base: Schema.Class<Missing, Schema.TaggedStruct<"Missing", {}>, import("effect/Cause").YieldableError>;
@@ -1,9 +1,9 @@
1
1
  import { Action, targetOf } from "../Action.mjs";
2
2
  import { Box, Subject } from "../BrowserEvent.mjs";
3
3
  import { BrowserError, InvalidRequest, undispatched } from "../BrowserError.mjs";
4
- import { p as redacted } from "../Page-BF5izr8R.mjs";
4
+ import { p as redacted } from "../Page-BaAOshxo.mjs";
5
5
  import { match } from "../Matching.mjs";
6
- import { t as wait } from "../Stillness-CNlvayIo.mjs";
6
+ import { t as wait } from "../Stillness-BwP0RdI4.mjs";
7
7
  import { Clock, Duration, Effect, Exit, Option, Schedule, Schema } from "effect";
8
8
  //#region src/plan/choose.ts
9
9
  /**
@@ -1,4 +1,4 @@
1
- import { d as InputRequest, o as Fact, u as InputGuard } from "../Page-CvsOEorc.mjs";
1
+ import { d as InputRequest, o as Fact, u as InputGuard } from "../Page-CLzh5E9w.mjs";
2
2
  import { Context, Duration, Effect, Schema } from "effect";
3
3
  import { AiError, DecisionModel, LanguageModel } from "effect/ai";
4
4
  //#region src/policy/Policy.d.ts
@@ -1,5 +1,5 @@
1
1
  import { PolicyDenied } from "../BrowserError.mjs";
2
- import { i as InputRequest, n as Fact } from "../Page-BF5izr8R.mjs";
2
+ import { i as InputRequest, n as Fact } from "../Page-BaAOshxo.mjs";
3
3
  import { Cause, Context, Duration, Effect, Record, Result, Schema } from "effect";
4
4
  import { Decision, DecisionModel, LanguageModel, Prompt } from "effect/ai";
5
5
  //#region src/policy/Policy.ts