@rtrvr-ai/rover 1.0.3 → 1.1.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 +40 -8
- package/dist/embed.js +16 -16
- package/dist/index.d.ts +36 -2
- package/dist/rover.js +739 -127
- package/dist/worker/rover-worker.js +853 -76
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -100,18 +100,48 @@ const RoverWidget = dynamic(() => import('./RoverWidget'), { ssr: false });
|
|
|
100
100
|
|
|
101
101
|
| Option | Type | Default | Description |
|
|
102
102
|
|---|---|---|---|
|
|
103
|
-
| `siteId` | `string` | *required* |
|
|
104
|
-
| `apiKey` | `string` |
|
|
103
|
+
| `siteId` | `string` | *required* | Site identifier |
|
|
104
|
+
| `apiKey` | `string` | — | API key from Rover Workspace |
|
|
105
|
+
| `siteKeyId` | `string` | — | Site key ID from Workspace |
|
|
106
|
+
| `authToken` | `string` | — | Optional bearer token override (takes precedence over `apiKey` when both are set) |
|
|
105
107
|
| `allowedDomains` | `string[]` | `[]` | Hostnames where Rover may operate |
|
|
106
108
|
| `domainScopeMode` | `'registrable_domain' \| 'host_only'` | `'registrable_domain'` | Domain matching strategy |
|
|
109
|
+
| `externalNavigationPolicy` | `'open_new_tab_notice' \| 'block' \| 'allow'` | `'open_new_tab_notice'` | External navigation policy |
|
|
110
|
+
| `mode` | `'full' \| 'safe'` | `'full'` | Runtime mode |
|
|
111
|
+
| `allowActions` | `boolean` | `true` | Enable or disable action tools |
|
|
107
112
|
| `openOnInit` | `boolean` | `false` | Open panel immediately on boot |
|
|
108
|
-
| `taskRouting` | `object` | `{ mode: 'act' }` | Task routing strategy |
|
|
109
|
-
| `externalNavigationPolicy` | `string` | `'open_new_tab_notice'` | Policy for out-of-scope links |
|
|
110
|
-
| `workerUrl` | `string` | auto | Custom worker URL for self-hosting |
|
|
111
|
-
| `ui.muted` | `boolean` | `false` | Start with audio muted (user can toggle via UI) |
|
|
112
|
-
| `ui.mascot.disabled` | `boolean` | `false` | Disable mascot video (removes `media-src` CSP need) |
|
|
113
|
-
| `visitorId` | `string` | auto | Stable visitor identifier |
|
|
114
113
|
| `sessionScope` | `'shared_site' \| 'tab'` | `'shared_site'` | Session sharing across tabs |
|
|
114
|
+
| `taskRouting.mode` | `'auto' \| 'act' \| 'planner'` | `'act'` | Task routing strategy |
|
|
115
|
+
| `taskRouting.plannerOnActError` | `boolean` | `true` | Retry planner when ACT fails |
|
|
116
|
+
| `taskRouting.actHeuristicThreshold` | `number` | `5` (auto mode) | Auto-routing threshold |
|
|
117
|
+
| `checkpointing.enabled` | `boolean` | `false` | Enable cloud checkpoint sync |
|
|
118
|
+
| `checkpointing.autoVisitorId` | `boolean` | `true` | Auto-generate visitor ID when needed |
|
|
119
|
+
| `checkpointing.ttlHours` | `number` | `1` | Checkpoint TTL in hours |
|
|
120
|
+
| `checkpointing.onStateChange` | `(payload) => void` | — | Checkpoint lifecycle updates (`active`, `paused_auth`) |
|
|
121
|
+
| `checkpointing.onError` | `(payload) => void` | — | Checkpoint request error callback |
|
|
122
|
+
| `telemetry.enabled` | `boolean` | `true` | Enable runtime telemetry batching |
|
|
123
|
+
| `telemetry.sampleRate` | `number` | `1` | Event sampling ratio (0..1) |
|
|
124
|
+
| `telemetry.flushIntervalMs` | `number` | `12000` | Telemetry flush cadence |
|
|
125
|
+
| `telemetry.maxBatchSize` | `number` | `30` | Max events per telemetry request |
|
|
126
|
+
| `telemetry.includePayloads` | `boolean` | `false` | Include richer event payloads |
|
|
127
|
+
| `apiMode` | `boolean` | auto (`true` when `apiKey` exists) | Force API execution mode |
|
|
128
|
+
| `apiToolsConfig.mode` | `'allowlist' \| 'profile' \| 'none'` | `'none'` | API additional tool exposure mode |
|
|
129
|
+
| `tools.web.enableExternalWebContext` | `boolean` | `false` | External tab cloud context fallback |
|
|
130
|
+
| `tools.web.scrapeMode` | `'off' \| 'on_demand'` | `'off'` | On-demand external tab scrape mode |
|
|
131
|
+
| `tools.web.allowDomains` | `string[]` | `[]` | External context allowlist |
|
|
132
|
+
| `tools.web.denyDomains` | `string[]` | `[]` | External context denylist |
|
|
133
|
+
| `tools.client` | `ClientToolDefinition[]` | `[]` | Runtime-registered client tools |
|
|
134
|
+
| `workerUrl` | `string` | auto | Custom worker URL for self-hosting |
|
|
135
|
+
| `ui.agent.name` | `string` | `'Rover'` | Custom assistant name |
|
|
136
|
+
| `ui.mascot.disabled` | `boolean` | `false` | Disable mascot video |
|
|
137
|
+
| `ui.mascot.mp4Url` | `string` | default | Custom mascot MP4 URL |
|
|
138
|
+
| `ui.mascot.webmUrl` | `string` | default | Custom mascot WebM URL |
|
|
139
|
+
| `ui.muted` | `boolean` | `false` | Start with audio muted |
|
|
140
|
+
| `ui.thoughtStyle` | `'concise_cards' \| 'minimal'` | `'concise_cards'` | Thought rendering style |
|
|
141
|
+
| `ui.panel.resizable` | `boolean` | `true` | Panel resizable preference |
|
|
142
|
+
| `ui.showTaskControls` | `boolean` | `true` | Show new/end task controls |
|
|
143
|
+
|
|
144
|
+
If you enable `tools.web.scrapeMode: 'on_demand'`, use a site key capability profile that includes cloud scrape support.
|
|
115
145
|
|
|
116
146
|
See [full configuration reference](https://github.com/rtrvr-ai/rover/blob/main/docs/INTEGRATION.md#configuration-reference).
|
|
117
147
|
|
|
@@ -165,6 +195,8 @@ rover.on('error', (err) => console.error(err));
|
|
|
165
195
|
| `navigation_guardrail` | `{ url, policy }` | Out-of-scope navigation intercepted |
|
|
166
196
|
| `task_started` | `{ reason }` | New task started |
|
|
167
197
|
| `task_ended` | `{ reason }` | Task ended |
|
|
198
|
+
| `checkpoint_state` | `{ state, reason?, action?, code?, message? }` | Checkpoint sync state updates |
|
|
199
|
+
| `checkpoint_error` | `{ action, code?, message, ... }` | Checkpoint request failure details |
|
|
168
200
|
|
|
169
201
|
## Content Security Policy (CSP)
|
|
170
202
|
|