turno-browser 0.7.0 → 0.8.0

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 (47) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +5 -1
  3. package/dist/act.js +4 -29
  4. package/dist/agent-cursor-overlay.d.ts +10 -0
  5. package/dist/agent-cursor-overlay.js +50 -5
  6. package/dist/agent-cursor.d.ts +39 -7
  7. package/dist/agent-cursor.js +106 -20
  8. package/dist/cli/flows.js +3 -0
  9. package/dist/cli/identity.js +3 -4
  10. package/dist/cli/init.js +4 -2
  11. package/dist/engine-camoufox.js +1 -0
  12. package/dist/engine-lightpanda.js +1 -0
  13. package/dist/host.d.ts +7 -0
  14. package/dist/host.js +313 -76
  15. package/dist/human-step-overlay.d.ts +73 -0
  16. package/dist/human-step-overlay.js +285 -0
  17. package/dist/human-step.d.ts +128 -0
  18. package/dist/human-step.js +521 -0
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/live-server.d.ts +7 -3
  22. package/dist/live-server.js +13 -15
  23. package/dist/live.d.ts +20 -1
  24. package/dist/live.js +52 -10
  25. package/dist/network-redact.d.ts +28 -0
  26. package/dist/network-redact.js +202 -0
  27. package/dist/recorder.d.ts +0 -21
  28. package/dist/recorder.js +1 -41
  29. package/dist/recordings.d.ts +5 -0
  30. package/dist/recordings.js +4 -2
  31. package/dist/redact.d.ts +7 -0
  32. package/dist/redact.js +32 -1
  33. package/dist/replay.d.ts +2 -0
  34. package/dist/replay.js +33 -14
  35. package/dist/reputation.d.ts +5 -0
  36. package/dist/reputation.js +12 -7
  37. package/dist/sensitive.d.ts +79 -0
  38. package/dist/sensitive.js +275 -0
  39. package/dist/session.d.ts +12 -0
  40. package/dist/session.js +24 -0
  41. package/dist/tools.d.ts +5 -0
  42. package/dist/tools.js +9 -1
  43. package/dist/upstream.d.ts +5 -0
  44. package/dist/watch.d.ts +60 -0
  45. package/dist/watch.js +114 -0
  46. package/npm-shrinkwrap.json +2 -2
  47. package/package.json +1 -1
package/dist/host.d.ts CHANGED
@@ -4,6 +4,7 @@ import type { SecretStore } from "turno-core/secrets";
4
4
  import { type Engine, type EngineFlags, type IdentityRef } from "./engine.js";
5
5
  import { type LiveFlags } from "./live.js";
6
6
  import { LiveServer } from "./live-server.js";
7
+ import { type ChallengeEvent } from "./reputation.js";
7
8
  import { type TabLockPolicy } from "./tab-locks.js";
8
9
  import { type Providers, type TurnoTool } from "./tools.js";
9
10
  import { type Tuning, type TuningFlags } from "./tuning.js";
@@ -47,6 +48,8 @@ export interface Host {
47
48
  }
48
49
  /** Upstream joins the text parts of a result into one (`mergeTextParts`). */
49
50
  export declare function mergeTextParts(result: ToolResult): ToolResult;
51
+ /** What the agent reads when the page it ended on is a challenge (`reputation.ts`). */
52
+ export declare function challengeNote(event: Omit<ChallengeEvent, "ts">): string;
50
53
  /**
51
54
  * One MCP session. Implements upstream's server backend contract, so upstream's HTTP server
52
55
  * can serve it as well as turno's stdio server.
@@ -114,3 +117,7 @@ export declare function runHost(args: string[], options?: {
114
117
  */
115
118
  serve?: (host: Host) => Promise<void>;
116
119
  }): Promise<void>;
120
+ /** Why the person cannot see a headless Chrome now, or undefined when the live view shows it. */
121
+ export declare function unseenReason(live: {
122
+ viewerCount: number;
123
+ } | undefined, id: string | undefined): string | undefined;