@rtrvr-ai/rover 4.2.0 → 4.2.1

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.
package/README.md CHANGED
@@ -595,13 +595,13 @@ Content-Type: application/json
595
595
 
596
596
  {
597
597
  "url": "https://www.rtrvr.ai",
598
- "goal": "Get me the latest blog post",
598
+ "prompt": "Get me the latest blog post",
599
599
  "capabilityId": "latest_blog_post",
600
600
  "accept": { "modes": ["text", "json"] }
601
601
  }
602
602
  ```
603
603
 
604
- Use the explicit A2W run envelope with `goal` for natural-language instructions and `shortcut` for saved journeys.
604
+ Use the explicit A2W run envelope with `prompt` for natural-language instructions and `shortcutId` for saved journeys. `goal` is still accepted as a compatibility alias.
605
605
 
606
606
  Callers may also provide structured visiting-agent metadata:
607
607
 
@@ -611,7 +611,7 @@ Content-Type: application/json
611
611
 
612
612
  {
613
613
  "url": "https://www.rtrvr.ai",
614
- "goal": "Get me the latest blog post",
614
+ "prompt": "Get me the latest blog post",
615
615
  "agent": {
616
616
  "key": "gpt-5.4-demo-agent",
617
617
  "name": "GPT-5.4 Demo Agent",
@@ -634,6 +634,8 @@ The returned run URL is the canonical resource:
634
634
  - `DELETE` to cancel
635
635
  - a `workflow` URL when the run belongs to an aggregated multi-site workflow
636
636
 
637
+ Run creation may return `202 Accepted` before work is complete. The payload includes `links.poll`, `links.stream`, `links.ndjson`, `terminalStatuses`, `interactiveStatuses`, and `retryAfterMs` so outside agents can keep following the run without guessing.
638
+
637
639
  Run creation may also return browser handoff URLs:
638
640
 
639
641
  - `open`: clean receipt URL for browser attach
@@ -642,7 +644,7 @@ Run creation may also return browser handoff URLs:
642
644
  The run URL remains canonical; receipt links are only a browser handoff layer over that same run.
643
645
 
644
646
  - `Prefer: execution=browser` keeps execution browser-first
645
- - `Prefer: execution=cloud` is the explicit browserless path today
647
+ - `Prefer: execution=cloud, wait=10` is the explicit browserless path for callers that want a short initial wait before following the returned links
646
648
  - `Prefer: execution=auto` prefers browser attach first; delayed cloud auto-promotion is a follow-up robustness phase
647
649
 
648
650
  Rover deep links like `?rover=` and `?rover_shortcut=` remain the simple browser-first entrypoints; `/v1/a2w/runs` is the machine-oriented protocol. Cross-site workflows and handoffs extend that same public contract rather than replacing it.
@@ -652,12 +654,13 @@ Rover deep links like `?rover=` and `?rover_shortcut=` remain the simple browser
652
654
  Rover normalizes visiting-agent attribution in this order:
653
655
 
654
656
  1. verified signed signal
655
- 2. explicit `agent` object on A2W run creation or handoffs
656
- 3. heuristic headers such as `User-Agent`, `Signature-Agent`, `Signature`, `Signature-Input`, and `X-RTRVR-Client-Id`
657
- 4. advanced local fallbacks such as RoverBook `identityResolver`
658
- 5. anonymous fallback
657
+ 2. Signature-Agent directory/signature-envelope evidence without full request verification
658
+ 3. explicit `agent` object on A2W run creation or handoffs
659
+ 4. heuristic headers such as `User-Agent`, `Signature-Agent`, `Signature`, `Signature-Input`, and `X-RTRVR-Client-Id`
660
+ 5. advanced local fallbacks such as RoverBook `identityResolver`
661
+ 6. anonymous fallback
659
662
 
660
- Trust tiers are `verified_signed`, `signed_directory_only`, `self_reported`, `heuristic`, and `anonymous`. Unsigned headers never escalate above `heuristic`.
663
+ Trust tiers are `verified_signed`, `signed_directory_only`, `self_reported`, `heuristic`, and `anonymous`. The stored `agentKey` is chosen from explicit agent key fields first, then `clientId`, then `Signature-Agent`, then previous attribution. `signed_directory_only` means the chosen identity had Signature-Agent directory/signature-envelope evidence, but no completed HTTP Message Signature verification. Loose headers without that evidence remain `heuristic`.
661
664
 
662
665
  ### Cross-site workflows and handoffs
663
666
 
@@ -525,7 +525,7 @@ function buildShortcutSkill(shortcut, config, runEndpoint) {
525
525
  endpoint: runEndpoint,
526
526
  payload: {
527
527
  url: normalizeSiteUrl(config.siteUrl),
528
- shortcut: id,
528
+ shortcutId: id,
529
529
  },
530
530
  preferExecution: config.preferExecution || 'auto',
531
531
  },
@@ -881,6 +881,7 @@ export function createRoverAgentCard(config) {
881
881
  instructions: [
882
882
  'Prefer exact Rover shortcuts and explicit site tools over raw DOM automation when the user goal matches a published skill.',
883
883
  'Use POST /v1/a2w/runs when you need structured A2W progress, continuation input, or a stable final result channel.',
884
+ 'For browserless calls, send Prefer: execution=cloud, wait=10 and follow links.stream, links.ndjson, or links.poll until terminal or input_required.',
884
885
  'Fall back to generic DOM automation only when no matching Rover shortcut or explicit tool exists for the requested outcome.',
885
886
  ],
886
887
  capabilitiesGraph: capabilityGraph.capabilities,