@rtrvr-ai/rover 1.1.2 → 1.2.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.
- package/README.md +8 -1
- package/dist/embed.js +578 -16
- package/dist/index.d.ts +20 -0
- package/dist/rover.js +2478 -275
- package/dist/worker/rover-worker.js +708 -252
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -104,7 +104,8 @@ const RoverWidget = dynamic(() => import('./RoverWidget'), { ssr: false });
|
|
|
104
104
|
| `apiKey` | `string` | — | API key from Rover Workspace |
|
|
105
105
|
| `siteKeyId` | `string` | — | Site key ID from Workspace |
|
|
106
106
|
| `authToken` | `string` | — | Optional bearer token override (takes precedence over `apiKey` when both are set) |
|
|
107
|
-
| `
|
|
107
|
+
| `visitor` | `{ name?: string; email?: string }` | — | Optional visitor profile for greeting personalization. Recommended flow is async updates via `identify(...)` after login/user hydration. |
|
|
108
|
+
| `apiBase` | `string` | `https://extensionrouter.rtrvr.ai` | Optional API base override. Workspace snippets keep the managed default; code integrations can pass a custom base directly (no `/extensionRouter` suffix required). |
|
|
108
109
|
| `allowedDomains` | `string[]` | `[]` | Hostnames where Rover may operate |
|
|
109
110
|
| `domainScopeMode` | `'registrable_domain' \| 'host_only'` | `'registrable_domain'` | Domain matching strategy |
|
|
110
111
|
| `externalNavigationPolicy` | `'open_new_tab_notice' \| 'block' \| 'allow'` | `'open_new_tab_notice'` | External navigation policy |
|
|
@@ -141,6 +142,11 @@ const RoverWidget = dynamic(() => import('./RoverWidget'), { ssr: false });
|
|
|
141
142
|
| `ui.thoughtStyle` | `'concise_cards' \| 'minimal'` | `'concise_cards'` | Thought rendering style |
|
|
142
143
|
| `ui.panel.resizable` | `boolean` | `true` | Panel resizable preference |
|
|
143
144
|
| `ui.showTaskControls` | `boolean` | `true` | Show new/end task controls |
|
|
145
|
+
| `ui.shortcuts` | `RoverShortcut[]` | `[]` | Suggested journeys (max 100 stored, max 12 rendered by default; lower site-key policy caps are enforced) |
|
|
146
|
+
| `ui.greeting` | `{ text?, delay?, duration?, disabled? }` | — | Greeting bubble config (`{name}` token supported) |
|
|
147
|
+
|
|
148
|
+
When a site key is used, Rover also fetches cloud site config via `roverGetSiteConfig` (shortcuts + greeting).
|
|
149
|
+
If the same field exists in both cloud config and boot config, boot config wins.
|
|
144
150
|
|
|
145
151
|
If you enable `tools.web.scrapeMode: 'on_demand'`, use a site key capability profile that includes cloud scrape support.
|
|
146
152
|
|
|
@@ -174,6 +180,7 @@ rover.send('Hello');
|
|
|
174
180
|
| `getState()` | Get current runtime state |
|
|
175
181
|
| `update(config)` | Update configuration without rebooting |
|
|
176
182
|
| `registerTool(def, handler)` | Register a client-side tool |
|
|
183
|
+
| `identify(visitor)` | Update visitor profile after boot (for async login/user hydration) |
|
|
177
184
|
| `on(event, handler)` | Subscribe to events (returns unsubscribe fn) |
|
|
178
185
|
|
|
179
186
|
## Events
|